CopyParams.h 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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 <XPThemes.hpp>
  12. #include <WinInterface.h>
  13. #include "RightsExt.h"
  14. #include "ComboEdit.hpp"
  15. #include <Mask.hpp>
  16. //---------------------------------------------------------------------------
  17. class TCopyParamsFrame : public TFrame
  18. {
  19. __published:
  20. TXPGroupBox *TransferModeGroup;
  21. TLabel *AsciiFileMaskLabel;
  22. TRadioButton *TMTextButton;
  23. TRadioButton *TMBinaryButton;
  24. TRadioButton *TMAutomaticButton;
  25. THistoryComboBox *AsciiFileMaskCombo;
  26. TXPGroupBox *RemotePropertiesGroup;
  27. TCheckBox *RemotePreserveTimeCheck;
  28. TXPGroupBox *LocalPropertiesGroup;
  29. TCheckBox *PreserveReadOnlyCheck;
  30. TCheckBox *LocalPreserveTimeCheck;
  31. TCheckBox *PreserveRightsCheck;
  32. TXPGroupBox *ChangeCaseGroup;
  33. TRadioButton *CCNoChangeButton;
  34. TRadioButton *CCUpperCaseButton;
  35. TRadioButton *CCLowerCaseButton;
  36. TRadioButton *CCFirstUpperCaseButton;
  37. TXPGroupBox *CommonPropertiesGroup;
  38. TCheckBox *CommonPreserveTimestampCheck;
  39. TCheckBox *ReplaceInvalidCharsCheck;
  40. TCheckBox *CommonCalculateSizeCheck;
  41. TXPGroupBox *OtherGroup;
  42. TLabel *ExclusionFileMaskLabel;
  43. THistoryComboBox *ExcludeFileMaskCombo;
  44. TRadioButton *CCLowerCaseShortButton;
  45. TCheckBox *ClearArchiveCheck;
  46. TComboBox *NegativeExcludeCombo;
  47. TStaticText *ExcludeFileMaskHintText;
  48. TComboEdit *RightsEdit;
  49. TCheckBox *IgnorePermErrorsCheck;
  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. private:
  55. TParamsForDirection FDirection;
  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 SetDirection(TParamsForDirection value);
  63. TCheckBox * __fastcall GetPreserveTimeCheck();
  64. void __fastcall SetCopyParamAttrs(int value);
  65. void __fastcall RightsFrameChange(TObject * Sender);
  66. protected:
  67. void __fastcall UpdateControls();
  68. virtual void __fastcall SetEnabled(Boolean Value);
  69. void __fastcall UpdateRightsByStr();
  70. __property TCheckBox * PreserveTimeCheck = { read = GetPreserveTimeCheck };
  71. public:
  72. __fastcall TCopyParamsFrame(TComponent* Owner);
  73. __fastcall ~TCopyParamsFrame();
  74. void __fastcall BeforeExecute();
  75. void __fastcall AfterExecute();
  76. __property int CopyParamAttrs = { read = FCopyParamAttrs, write = SetCopyParamAttrs };
  77. __property TParamsForDirection Direction = { read = FDirection, write = SetDirection };
  78. __property TCopyParamType Params = { read = GetParams, write = SetParams };
  79. };
  80. //---------------------------------------------------------------------------
  81. #endif