CopyParams.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. //---------------------------------------------------------------------------
  2. #ifndef CopyParamsH
  3. #define CopyParamsH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <ExtCtrls.hpp>
  10. #include <HistoryComboBox.hpp>
  11. #include <WinInterface.h>
  12. #include "Rights.h"
  13. #include "ComboEdit.hpp"
  14. #include <Mask.hpp>
  15. //---------------------------------------------------------------------------
  16. class TCopyParamsFrame : public TFrame
  17. {
  18. __published:
  19. TGroupBox *TransferModeGroup;
  20. TLabel *AsciiFileMaskLabel;
  21. TRadioButton *TMTextButton;
  22. TRadioButton *TMBinaryButton;
  23. TRadioButton *TMAutomaticButton;
  24. THistoryComboBox *AsciiFileMaskCombo;
  25. TGroupBox *RemotePropertiesGroup;
  26. TGroupBox *LocalPropertiesGroup;
  27. TCheckBox *PreserveReadOnlyCheck;
  28. TCheckBox *PreserveRightsCheck;
  29. TGroupBox *ChangeCaseGroup;
  30. TRadioButton *CCNoChangeButton;
  31. TRadioButton *CCUpperCaseButton;
  32. TRadioButton *CCLowerCaseButton;
  33. TGroupBox *CommonPropertiesGroup;
  34. TCheckBox *PreserveTimeCheck;
  35. TCheckBox *ReplaceInvalidCharsCheck;
  36. TCheckBox *CommonCalculateSizeCheck;
  37. TGroupBox *OtherGroup;
  38. TLabel *IncludeFileMaskLabel;
  39. THistoryComboBox *IncludeFileMaskCombo;
  40. TRadioButton *CCLowerCaseShortButton;
  41. TComboEdit *RightsEdit;
  42. TCheckBox *IgnorePermErrorsCheck;
  43. TCheckBox *ClearArchiveCheck;
  44. TStaticText *IncludeFileMaskHintText;
  45. TLabel *SpeedLabel3;
  46. THistoryComboBox *SpeedCombo;
  47. TButton *IncludeFileMaskButton;
  48. TCheckBox *NewerOnlyCheck;
  49. TCheckBox *RemoveCtrlZAndBOMCheck;
  50. TCheckBox *PreserveTimeDirsCheck;
  51. TCheckBox *EncryptNewFilesCheck;
  52. TCheckBox *ExcludeHiddenFilesCheck;
  53. TCheckBox *ExcludeEmptyDirectoriesCheck;
  54. void __fastcall ControlChange(TObject *Sender);
  55. void __fastcall ValidateMaskComboExit(TObject *Sender);
  56. void __fastcall RightsEditButtonClick(TObject *Sender);
  57. void __fastcall RightsEditExit(TObject *Sender);
  58. void __fastcall RightsEditContextPopup(TObject *Sender, TPoint &MousePos,
  59. bool &Handled);
  60. void __fastcall SpeedComboExit(TObject *Sender);
  61. void __fastcall IncludeFileMaskButtonClick(TObject *Sender);
  62. private:
  63. UnicodeString FOrigMasks;
  64. TCopyParamType * FParams;
  65. int FCopyParamAttrs;
  66. TRightsFrame * FRightsFrame;
  67. bool FRemoveCtrlZ;
  68. void __fastcall SetParams(TCopyParamType value);
  69. TCopyParamType __fastcall GetParams();
  70. void __fastcall SetCopyParamAttrs(int value);
  71. void __fastcall RightsFrameChange(TObject * Sender);
  72. protected:
  73. void __fastcall UpdateControls();
  74. virtual void __fastcall SetEnabled(Boolean Value);
  75. void __fastcall UpdateRightsByStr();
  76. virtual void __fastcall CreateWnd();
  77. INTERFACE_HOOK_CUSTOM(TFrame)
  78. public:
  79. __fastcall TCopyParamsFrame(TComponent* Owner);
  80. __fastcall ~TCopyParamsFrame();
  81. void __fastcall BeforeExecute();
  82. void __fastcall AfterExecute();
  83. __property int CopyParamAttrs = { read = FCopyParamAttrs, write = SetCopyParamAttrs };
  84. __property TCopyParamType Params = { read = GetParams, write = SetParams };
  85. };
  86. //---------------------------------------------------------------------------
  87. #endif