CopyLocal.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. void __fastcall FormAfterMonitorDpiChanged(TObject *Sender, int OldDPI, int NewDPI);
  33. private:
  34. int FOptions;
  35. void UpdateControls();
  36. void ValidateDirectoryEdit();
  37. UnicodeString GetDirectory();
  38. UnicodeString GetFileMask();
  39. void SetDirectoryAndFileMask(const UnicodeString & Directory, const UnicodeString & FileMask);
  40. INTERFACE_HOOK;
  41. public:
  42. TCopyLocalDialog(TComponent * Owner, bool Move, int Options);
  43. bool Execute(UnicodeString & TargetDirectory, UnicodeString & FileMask, int & OutputOptions);
  44. };
  45. //---------------------------------------------------------------------------
  46. #endif