1
0
mirror of https://github.com/winscp/winscp.git synced 2026-10-24 02:28:55 +03:00
Files
winscp/source/forms/SynchronizeProgress.h
Martin Prikryl e5316ce97f TSynchronizeProgressForm is used for comparison only since 4df7eca5
Source commit: ff419e77c38157cfb87104761c4a3e894394665d
2019-06-25 01:22:38 +02:00

77 lines
2.2 KiB
C++

//---------------------------------------------------------------------------
#ifndef SynchronizeProgressH
#define SynchronizeProgressH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "PathLabel.hpp"
#include <ExtCtrls.hpp>
#include "PngImageList.hpp"
#include "TB2Dock.hpp"
#include "TB2Item.hpp"
#include "TB2Toolbar.hpp"
#include "TBX.hpp"
#include <Vcl.ImgList.hpp>
#include <GUITools.h>
//---------------------------------------------------------------------------
class TSynchronizeProgressForm : public TForm
{
__published:
TLabel *Label1;
TLabel *Label2;
TPathLabel *RemoteDirectoryLabel;
TPathLabel *LocalDirectoryLabel;
TLabel *StartTimeLabel;
TLabel *Label4;
TLabel *Label3;
TLabel *TimeElapsedLabel;
TTimer *UpdateTimer;
TPngImageList *ImageList;
TPanel *ToolbarPanel;
TTBXDock *Dock;
TTBXToolbar *Toolbar;
TTBXItem *CancelItem;
TTBXItem *MinimizeItem;
TPaintBox *AnimationPaintBox;
TPanel *ComponentsPanel;
TPngImageList *ImageList120;
TPngImageList *ImageList144;
TPngImageList *ImageList192;
void __fastcall UpdateTimerTimer(TObject *Sender);
void __fastcall MinimizeItemClick(TObject *Sender);
void __fastcall CancelItemClick(TObject *Sender);
public:
__fastcall TSynchronizeProgressForm(TComponent * Owner, bool AllowMinimize);
virtual __fastcall ~TSynchronizeProgressForm();
void __fastcall Start();
void __fastcall SetData(const UnicodeString LocalDirectory,
const UnicodeString RemoteDirectory, bool & Continue);
__property bool Started = { read = FStarted };
protected:
virtual void __fastcall Dispatch(void * Message);
private:
TDateTime FStartTime;
TDateTime FElapsed;
bool FStarted;
bool FCanceled;
void * FShowAsModalStorage;
bool FMinimizedByMe;
TFrameAnimation FFrameAnimation;
void __fastcall UpdateControls();
void __fastcall GlobalMinimize(TObject * Sender);
void __fastcall CancelOperation();
void __fastcall CMDialogKey(TCMDialogKey & Message);
INTERFACE_HOOK;
};
//---------------------------------------------------------------------------
#endif