CopyParams.h 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 <XPGroupBox.hpp>
  12. #include <WinInterface.h>
  13. #include "Rights.h"
  14. //---------------------------------------------------------------------------
  15. class TCopyParamsFrame : public TFrame
  16. {
  17. __published:
  18. TXPGroupBox *TransferModeGroup;
  19. TLabel *AsciiFileMaskLabel;
  20. TRadioButton *TMTextButton;
  21. TRadioButton *TMBinaryButton;
  22. TRadioButton *TMAutomaticButton;
  23. THistoryComboBox *AsciiFileMaskCombo;
  24. TXPGroupBox *RemotePropertiesGroup;
  25. TRightsFrame *RightsFrame;
  26. TCheckBox *RemotePreserveTimeCheck;
  27. TXPGroupBox *LocalPropertiesGroup;
  28. TCheckBox *PreserveReadOnlyCheck;
  29. TCheckBox *LocalPreserveTimeCheck;
  30. TCheckBox *PreserveRightsCheck;
  31. TXPGroupBox *ChangeCaseGroup;
  32. TRadioButton *CCNoChangeButton;
  33. TRadioButton *CCUpperCaseButton;
  34. TRadioButton *CCLowerCaseButton;
  35. TRadioButton *CCFirstUpperCaseButton;
  36. TXPGroupBox *CommonPropertiesGroup;
  37. TCheckBox *CommonPreserveTimestampCheck;
  38. TCheckBox *ReplaceInvalidCharsCheck;
  39. TCheckBox *CommonCalculateSizeCheck;
  40. void __fastcall ControlChange(TObject *Sender);
  41. private:
  42. TParamsForDirection FDirection;
  43. AnsiString FOrigMasks;
  44. Boolean FAllowTransferMode;
  45. TCopyParamType * FParams;
  46. bool FForcePreserveTime;
  47. Boolean __fastcall GetAllowTransferMode();
  48. AnsiString __fastcall GetAsciiFileMask();
  49. void __fastcall SetParams(TCopyParamType value);
  50. TCopyParamType __fastcall GetParams();
  51. void __fastcall SetAllowTransferMode(Boolean value);
  52. void __fastcall SetDirection(TParamsForDirection value);
  53. TCheckBox * __fastcall GetPreserveTimeCheck();
  54. void __fastcall SetForcePreserveTime(bool value);
  55. protected:
  56. void __fastcall UpdateControls();
  57. virtual void __fastcall SetEnabled(Boolean Value);
  58. public:
  59. __fastcall ~TCopyParamsFrame();
  60. void __fastcall BeforeExecute();
  61. void __fastcall AfterExecute();
  62. void __fastcall SelectMask(Integer Start, Integer Length);
  63. __fastcall TCopyParamsFrame(TComponent* Owner);
  64. __property Boolean AllowTransferMode = { read = GetAllowTransferMode, write = SetAllowTransferMode };
  65. __property AnsiString AsciiFileMask = { read = GetAsciiFileMask };
  66. __property TParamsForDirection Direction = { read = FDirection, write = SetDirection };
  67. __property TCopyParamType Params = { read = GetParams, write = SetParams };
  68. __property TCheckBox * PreserveTimeCheck = { read = GetPreserveTimeCheck };
  69. __property bool ForcePreserveTime = { read = FForcePreserveTime, write = SetForcePreserveTime };
  70. };
  71. //---------------------------------------------------------------------------
  72. #endif