Copy.h 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. //---------------------------------------------------------------------------
  2. #ifndef CopyH
  3. #define CopyH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <Mask.hpp>
  10. #include <MoreButton.hpp>
  11. #include <ExtCtrls.hpp>
  12. #include <HistoryComboBox.hpp>
  13. #include "Rights.h"
  14. #include "CopyParams.h"
  15. #include <Menus.hpp>
  16. //---------------------------------------------------------------------------
  17. class TCopyDialog : public TForm
  18. {
  19. __published:
  20. TLabel *DirectoryLabel;
  21. THistoryComboBox *LocalDirectoryEdit;
  22. THistoryComboBox *RemoteDirectoryEdit;
  23. TMoreButton *MoreButton;
  24. TButton *CopyButton;
  25. TButton *CancelButton;
  26. TPanel *MorePanel;
  27. TCheckBox *SaveSettingsCheck;
  28. TCopyParamsFrame *CopyParamsFrame;
  29. TButton *LocalDirectoryBrowseButton;
  30. TCheckBox *QueueCheck;
  31. TCheckBox *QueueNoConfirmationCheck;
  32. TCheckBox *NewerOnlyCheck;
  33. TButton *PresetsButton;
  34. TButton *HelpButton;
  35. void __fastcall FormShow(TObject *Sender);
  36. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  37. void __fastcall LocalDirectoryBrowseButtonClick(TObject *Sender);
  38. void __fastcall ControlChange(TObject *Sender);
  39. void __fastcall PresetsButtonClick(TObject *Sender);
  40. void __fastcall HelpButtonClick(TObject *Sender);
  41. private:
  42. bool FToRemote;
  43. TStrings * FFileList;
  44. bool FMove;
  45. int FOptions;
  46. int FOutputOptions;
  47. TGUICopyParamType FParams;
  48. TPopupMenu * FPresetsMenu;
  49. AnsiString FPreset;
  50. AnsiString __fastcall GetDirectory();
  51. void __fastcall SetToRemote(bool value);
  52. THistoryComboBox * __fastcall GetDirectoryEdit();
  53. void __fastcall SetParams(const TGUICopyParamType & value);
  54. TGUICopyParamType __fastcall GetParams();
  55. void __fastcall SetDirectory(AnsiString value);
  56. void __fastcall SetFileList(TStrings * value);
  57. void __fastcall SetMove(bool value);
  58. AnsiString __fastcall GetFileMask();
  59. void __fastcall SetOptions(int value);
  60. void __fastcall SetOutputOptions(int value);
  61. int __fastcall GetOutputOptions();
  62. void __fastcall CopyParamClick(TObject * Sender);
  63. protected:
  64. void __fastcall UpdateControls();
  65. void __fastcall AdjustControls();
  66. public:
  67. __fastcall TCopyDialog(TComponent* Owner);
  68. virtual __fastcall ~TCopyDialog();
  69. bool __fastcall Execute();
  70. __property bool ToRemote = { read = FToRemote, write = SetToRemote };
  71. __property AnsiString Directory = { read = GetDirectory, write = SetDirectory };
  72. __property THistoryComboBox * DirectoryEdit = { read = GetDirectoryEdit };
  73. __property TStrings * FileList = { read = FFileList, write = SetFileList };
  74. __property TGUICopyParamType Params = { read = GetParams, write = SetParams };
  75. __property bool Move = { read = FMove, write = SetMove };
  76. __property int Options = { read = FOptions, write = SetOptions };
  77. __property int OutputOptions = { read = GetOutputOptions, write = SetOutputOptions };
  78. };
  79. //---------------------------------------------------------------------------
  80. #endif