CopyParams.h 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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 *ExclusionFileMaskLabel;
  39. THistoryComboBox *ExcludeFileMaskCombo;
  40. TRadioButton *CCLowerCaseShortButton;
  41. TComboBox *NegativeExcludeCombo;
  42. TComboEdit *RightsEdit;
  43. TCheckBox *IgnorePermErrorsCheck;
  44. TCheckBox *ClearArchiveCheck;
  45. TStaticText *ExcludeFileMaskHintText;
  46. TLabel *SpeedLabel2;
  47. THistoryComboBox *SpeedCombo;
  48. void __fastcall ControlChange(TObject *Sender);
  49. void __fastcall ValidateMaskComboExit(TObject *Sender);
  50. void __fastcall RightsEditButtonClick(TObject *Sender);
  51. void __fastcall RightsEditExit(TObject *Sender);
  52. void __fastcall RightsEditContextPopup(TObject *Sender, TPoint &MousePos,
  53. bool &Handled);
  54. void __fastcall SpeedComboExit(TObject *Sender);
  55. private:
  56. AnsiString FOrigMasks;
  57. TCopyParamType * FParams;
  58. int FCopyParamAttrs;
  59. TRightsExtFrame * FRightsFrame;
  60. void __fastcall SetParams(TCopyParamType value);
  61. TCopyParamType __fastcall GetParams();
  62. void __fastcall SetCopyParamAttrs(int value);
  63. void __fastcall RightsFrameChange(TObject * Sender);
  64. protected:
  65. void __fastcall UpdateControls();
  66. virtual void __fastcall SetEnabled(Boolean Value);
  67. void __fastcall UpdateRightsByStr();
  68. public:
  69. __fastcall TCopyParamsFrame(TComponent* Owner);
  70. __fastcall ~TCopyParamsFrame();
  71. void __fastcall BeforeExecute();
  72. void __fastcall AfterExecute();
  73. __property int CopyParamAttrs = { read = FCopyParamAttrs, write = SetCopyParamAttrs };
  74. __property TCopyParamType Params = { read = GetParams, write = SetParams };
  75. };
  76. //---------------------------------------------------------------------------
  77. #endif