1
0

CopyParams.h 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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 "RightsExt.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. void __fastcall ControlChange(TObject *Sender);
  52. void __fastcall ValidateMaskComboExit(TObject *Sender);
  53. void __fastcall RightsEditButtonClick(TObject *Sender);
  54. void __fastcall RightsEditExit(TObject *Sender);
  55. void __fastcall RightsEditContextPopup(TObject *Sender, TPoint &MousePos,
  56. bool &Handled);
  57. void __fastcall SpeedComboExit(TObject *Sender);
  58. void __fastcall IncludeFileMaskButtonClick(TObject *Sender);
  59. private:
  60. UnicodeString FOrigMasks;
  61. TCopyParamType * FParams;
  62. int FCopyParamAttrs;
  63. TRightsExtFrame * FRightsFrame;
  64. bool FRemoveCtrlZ;
  65. void __fastcall SetParams(TCopyParamType value);
  66. TCopyParamType __fastcall GetParams();
  67. void __fastcall SetCopyParamAttrs(int value);
  68. void __fastcall RightsFrameChange(TObject * Sender);
  69. protected:
  70. void __fastcall UpdateControls();
  71. virtual void __fastcall SetEnabled(Boolean Value);
  72. void __fastcall UpdateRightsByStr();
  73. virtual void __fastcall CreateWnd();
  74. public:
  75. __fastcall TCopyParamsFrame(TComponent* Owner);
  76. __fastcall ~TCopyParamsFrame();
  77. void __fastcall BeforeExecute();
  78. void __fastcall AfterExecute();
  79. __property int CopyParamAttrs = { read = FCopyParamAttrs, write = SetCopyParamAttrs };
  80. __property TCopyParamType Params = { read = GetParams, write = SetParams };
  81. };
  82. //---------------------------------------------------------------------------
  83. #endif