| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- //----------------------------------------------------------------------------
- #ifndef SynchronizeH
- #define SynchronizeH
- //----------------------------------------------------------------------------
- #include <vcl\System.hpp>
- #include <vcl\Windows.hpp>
- #include <vcl\SysUtils.hpp>
- #include <vcl\Classes.hpp>
- #include <vcl\Graphics.hpp>
- #include <vcl\StdCtrls.hpp>
- #include <vcl\Forms.hpp>
- #include <vcl\Controls.hpp>
- #include <vcl\Buttons.hpp>
- #include <vcl\ExtCtrls.hpp>
- #include <MoreButton.hpp>
- #include <WinInterface.h>
- #include "CopyParams.h"
- //----------------------------------------------------------------------------
- class TSynchronizeDialog : public TForm
- {
- __published:
- TButton *StartButton;
- TButton *StopButton;
- TButton *CloseButton;
- TLabel *StatusLabel;
- TPanel *MorePanel;
- TCopyParamsFrame *CopyParamsFrame;
- TCheckBox *SaveSettingsCheck;
- TMoreButton *MoreButton;
- TButton *MinimizeButton;
- TCheckBox *ExistingOnlyCheck;
- void __fastcall FormShow(TObject *Sender);
- void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
- void __fastcall StartButtonClick(TObject *Sender);
- void __fastcall StopButtonClick(TObject *Sender);
- void __fastcall MinimizeButtonClick(TObject *Sender);
- private:
- TSynchronizeStartStopEvent FOnStartStop;
- bool FSynchronizing;
- TSynchronizeParamType FParams;
- bool FWasExpanded;
- bool FMinimizedByMe;
- void __fastcall SetParams(TSynchronizeParamType value);
- TSynchronizeParamType __fastcall GetParams();
- bool __fastcall GetExistingOnly();
- void __fastcall SetExistingOnly(bool value);
- protected:
- void __fastcall UpdateControls();
- void __fastcall Validate();
- virtual void __fastcall DoStartStop(Boolean Start, TSynchronizeParamType Params);
- void __fastcall MinimizeApp();
- public:
- virtual __fastcall TSynchronizeDialog(TComponent* AOwner);
- bool __fastcall Execute();
- void __fastcall Stop();
- __property TSynchronizeParamType Params = { read = GetParams, write = SetParams };
- __property TSynchronizeStartStopEvent OnStartStop = { read=FOnStartStop, write=FOnStartStop };
- __property bool ExistingOnly = { read=GetExistingOnly, write=SetExistingOnly };
- };
- //----------------------------------------------------------------------------
- #endif
|