home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / borland / cb / setup / cbuilder / data.z / FMXWIN.H < prev    next >
C/C++ Source or Header  |  1997-02-28  |  3KB  |  82 lines

  1. //----------------------------------------------------------------------------
  2. //Borland C++Builder
  3. //Copyright (c) 1987, 1997 Borland International Inc. All Rights Reserved.
  4. //----------------------------------------------------------------------------
  5. //---------------------------------------------------------------------------
  6. #ifndef FmxwinH
  7. #define FmxwinH
  8. //---------------------------------------------------------------------------
  9. #include <vcl\Classes.hpp>
  10. #include <vcl\Controls.hpp>
  11. #include <vcl\StdCtrls.hpp>
  12. #include <vcl\Forms.hpp>
  13. #include <vcl\ExtCtrls.hpp>
  14. #include <vcl\Tabs.hpp>
  15. #include <vcl\Menus.hpp>
  16. #include <vcl\FileCtrl.hpp>
  17. #include <vcl\Outline.hpp>
  18. #include <vcl\Grids.hpp>
  19. #include <sampreg.h>
  20. //---------------------------------------------------------------------------
  21. class TFormMain : public TForm
  22. {
  23. __published:    // IDE-managed Components
  24.     TPanel *StatusPanel;
  25.     TPanel *DirectoryPanel;
  26.     TPanel *FilePanel;
  27.     TTabSet *DriveTabSet;
  28.     TImage *Floppy;
  29.     TImage *Fixed;
  30.     TImage *Network;
  31.     TMainMenu *MainMenu1;
  32.     TFileListBox *FileList;
  33.     TDirectoryOutline *DirectoryOutline;
  34.     TMenuItem *File1;
  35.     TMenuItem *Open1;
  36.     TMenuItem *Move1;
  37.     TMenuItem *Copy1;
  38.     TMenuItem *Delete1;
  39.     TMenuItem *Rename1;
  40.     TMenuItem *Properties1;
  41.     TMenuItem *N1;
  42.     TMenuItem *Exit1;
  43.     void __fastcall Exit1Click(TObject *Sender);
  44.     void __fastcall Properties1Click(TObject *Sender);
  45.     void __fastcall DirectoryOutlineChange(TObject *Sender);
  46.     void __fastcall DirectoryOutlineDragDrop(TObject *Sender, TObject *Source,
  47.      int X, int Y);
  48.     void __fastcall DirectoryOutlineDragOver(TObject *Sender,TObject *Source,
  49.     int X, int Y, TDragState State,bool &Accept);
  50.     void __fastcall FormCreate(TObject *Sender);
  51.     void __fastcall FileListChange(TObject *Sender);
  52.     void __fastcall FileListEndDrag(TObject *Sender, TObject *Target,
  53.       int X, int Y);
  54.     void __fastcall FileListMouseDown(TObject *Sender, TMouseButton Button,
  55.      TShiftState Shift, int X, int Y);
  56.     void __fastcall DriveTabSetClick(TObject *Sender);
  57.     void __fastcall DriveTabSetDrawTab(TObject *Sender, TCanvas *TabCanvas,
  58.      TRect &R, int Index, bool Selected);
  59.     void __fastcall DriveTabSetMeasureTab(TObject *Sender, int Index,
  60.                       int &TabWidth);
  61.     void __fastcall FileChange(TObject *Sender);
  62.     void __fastcall File1Click(TObject *Sender);
  63.     void __fastcall Delete1Click(TObject *Sender);
  64.     void __fastcall Open1Click(TObject *Sender);
  65.     
  66.     
  67.     
  68.     
  69.     void __fastcall FileListDblClick(TObject *Sender);
  70. private:    // User declarations
  71.   bool FileSelected;
  72.   void __fastcall ConfirmChange(const AnsiString ACaption,AnsiString FromFile,
  73.         AnsiString ToFile);
  74.  
  75. public:        // User declarations
  76.     virtual __fastcall TFormMain(TComponent* Owner);
  77. };
  78. //---------------------------------------------------------------------------
  79. extern TFormMain *FormMain;
  80. //---------------------------------------------------------------------------
  81. #endif
  82.