CopyParams.h 3.1 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 <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. AnsiString FAddXToDirectoriesSuffix;
  61. void __fastcall SetParams(TCopyParamType value);
  62. TCopyParamType __fastcall GetParams();
  63. void __fastcall SetDirection(TParamsForDirection value);
  64. TCheckBox * __fastcall GetPreserveTimeCheck();
  65. void __fastcall SetCopyParamAttrs(int value);
  66. void __fastcall RightsFrameChange(TObject * Sender);
  67. protected:
  68. void __fastcall UpdateControls();
  69. virtual void __fastcall SetEnabled(Boolean Value);
  70. void __fastcall UpdateRightsByStr();
  71. __property TCheckBox * PreserveTimeCheck = { read = GetPreserveTimeCheck };
  72. public:
  73. __fastcall TCopyParamsFrame(TComponent* Owner);
  74. __fastcall ~TCopyParamsFrame();
  75. void __fastcall BeforeExecute();
  76. void __fastcall AfterExecute();
  77. __property int CopyParamAttrs = { read = FCopyParamAttrs, write = SetCopyParamAttrs };
  78. __property TParamsForDirection Direction = { read = FDirection, write = SetDirection };
  79. __property TCopyParamType Params = { read = GetParams, write = SetParams };
  80. };
  81. //---------------------------------------------------------------------------
  82. #endif