CopyParams.h 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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 *SpeedLabel2;
  46. THistoryComboBox *SpeedCombo;
  47. TButton *IncludeFileMaskButton;
  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. void __fastcall IncludeFileMaskButtonClick(TObject *Sender);
  56. private:
  57. UnicodeString FOrigMasks;
  58. TCopyParamType * FParams;
  59. int FCopyParamAttrs;
  60. TRightsExtFrame * FRightsFrame;
  61. void __fastcall SetParams(TCopyParamType value);
  62. TCopyParamType __fastcall GetParams();
  63. void __fastcall SetCopyParamAttrs(int value);
  64. void __fastcall RightsFrameChange(TObject * Sender);
  65. protected:
  66. void __fastcall UpdateControls();
  67. virtual void __fastcall SetEnabled(Boolean Value);
  68. void __fastcall UpdateRightsByStr();
  69. public:
  70. __fastcall TCopyParamsFrame(TComponent* Owner);
  71. __fastcall ~TCopyParamsFrame();
  72. void __fastcall BeforeExecute();
  73. void __fastcall AfterExecute();
  74. __property int CopyParamAttrs = { read = FCopyParamAttrs, write = SetCopyParamAttrs };
  75. __property TCopyParamType Params = { read = GetParams, write = SetParams };
  76. };
  77. //---------------------------------------------------------------------------
  78. #endif