CopyLocal.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. //---------------------------------------------------------------------------
  2. #ifndef CopyLocalH
  3. #define CopyLocalH
  4. //---------------------------------------------------------------------------
  5. #include <System.Classes.hpp>
  6. #include <Vcl.Controls.hpp>
  7. #include <Vcl.StdCtrls.hpp>
  8. #include <Vcl.Forms.hpp>
  9. #include "HistoryComboBox.hpp"
  10. #include <Vcl.ExtCtrls.hpp>
  11. #include <GUITools.h>
  12. //---------------------------------------------------------------------------
  13. class TCopyLocalDialog : public TForm
  14. {
  15. __published:
  16. TImage *Image;
  17. TLabel *DirectoryLabel;
  18. THistoryComboBox *DirectoryEdit;
  19. TButton *OkButton;
  20. TButton *CancelButton;
  21. TButton *LocalDirectoryBrowseButton;
  22. TButton *HelpButton;
  23. TCheckBox *NeverShowAgainCheck;
  24. TPanel *ShortCutHintPanel;
  25. TLabel *ShortCutHintLabel;
  26. void __fastcall ShortCutHintLabelClick(TObject *Sender);
  27. void __fastcall FormShow(TObject *Sender);
  28. void __fastcall DirectoryEditExit(TObject *Sender);
  29. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  30. void __fastcall HelpButtonClick(TObject *Sender);
  31. void __fastcall LocalDirectoryBrowseButtonClick(TObject *Sender);
  32. private:
  33. int FOptions;
  34. void UpdateControls();
  35. void ValidateDirectoryEdit();
  36. UnicodeString GetDirectory();
  37. UnicodeString GetFileMask();
  38. void SetDirectoryAndFileMask(const UnicodeString & Directory, const UnicodeString & FileMask);
  39. INTERFACE_HOOK;
  40. public:
  41. TCopyLocalDialog(TComponent * Owner, bool Move, int Options);
  42. bool Execute(UnicodeString & TargetDirectory, UnicodeString & FileMask, int & OutputOptions);
  43. };
  44. //---------------------------------------------------------------------------
  45. #endif