| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- //---------------------------------------------------------------------------
- #ifndef CopyParamsH
- #define CopyParamsH
- //---------------------------------------------------------------------------
- #include <Classes.hpp>
- #include <Controls.hpp>
- #include <StdCtrls.hpp>
- #include <Forms.hpp>
- #include <ExtCtrls.hpp>
- #include <HistoryComboBox.hpp>
- #include <XPGroupBox.hpp>
- #include <WinInterface.h>
- #include "Rights.h"
- //---------------------------------------------------------------------------
- class TCopyParamsFrame : public TFrame
- {
- __published:
- TXPGroupBox *TransferModeGroup;
- TLabel *AsciiFileMaskLabel;
- TRadioButton *TMTextButton;
- TRadioButton *TMBinaryButton;
- TRadioButton *TMAutomaticButton;
- THistoryComboBox *AsciiFileMaskCombo;
- TXPGroupBox *RemotePropertiesGroup;
- TRightsFrame *RightsFrame;
- TCheckBox *RemotePreserveTimeCheck;
- TXPGroupBox *LocalPropertiesGroup;
- TCheckBox *PreserveReadOnlyCheck;
- TCheckBox *LocalPreserveTimeCheck;
- TCheckBox *PreserveRightsCheck;
- TXPGroupBox *ChangeCaseGroup;
- TRadioButton *CCNoChangeButton;
- TRadioButton *CCUpperCaseButton;
- TRadioButton *CCLowerCaseButton;
- TRadioButton *CCFirstUpperCaseButton;
- TXPGroupBox *CommonPropertiesGroup;
- TCheckBox *CommonPreserveTimestampCheck;
- TCheckBox *ReplaceInvalidCharsCheck;
- TCheckBox *CommonCalculateSizeCheck;
- void __fastcall ControlChange(TObject *Sender);
- private:
- TParamsForDirection FDirection;
- AnsiString FOrigMasks;
- Boolean FAllowTransferMode;
- TCopyParamType * FParams;
- bool FForcePreserveTime;
- Boolean __fastcall GetAllowTransferMode();
- AnsiString __fastcall GetAsciiFileMask();
- void __fastcall SetParams(TCopyParamType value);
- TCopyParamType __fastcall GetParams();
- void __fastcall SetAllowTransferMode(Boolean value);
- void __fastcall SetDirection(TParamsForDirection value);
- TCheckBox * __fastcall GetPreserveTimeCheck();
- void __fastcall SetForcePreserveTime(bool value);
- protected:
- void __fastcall UpdateControls();
- virtual void __fastcall SetEnabled(Boolean Value);
- public:
- __fastcall ~TCopyParamsFrame();
- void __fastcall BeforeExecute();
- void __fastcall AfterExecute();
- void __fastcall SelectMask(Integer Start, Integer Length);
- __fastcall TCopyParamsFrame(TComponent* Owner);
- __property Boolean AllowTransferMode = { read = GetAllowTransferMode, write = SetAllowTransferMode };
- __property AnsiString AsciiFileMask = { read = GetAsciiFileMask };
- __property TParamsForDirection Direction = { read = FDirection, write = SetDirection };
- __property TCopyParamType Params = { read = GetParams, write = SetParams };
- __property TCheckBox * PreserveTimeCheck = { read = GetPreserveTimeCheck };
- __property bool ForcePreserveTime = { read = FForcePreserveTime, write = SetForcePreserveTime };
- };
- //---------------------------------------------------------------------------
- #endif
|