CopyParams.h 3.0 KB

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