diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 16:53:07 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 16:53:07 +0200 |
commit | 583d6a1fd6701e3d42c87285265b0b4f7657ab7c (patch) | |
tree | 78461dd1a74685252eef77b8e7d3b622d1be67ea /ui/SmallDialogs.h | |
parent | 1.9 (diff) | |
download | FreeFileSync-583d6a1fd6701e3d42c87285265b0b4f7657ab7c.tar.gz FreeFileSync-583d6a1fd6701e3d42c87285265b0b4f7657ab7c.tar.bz2 FreeFileSync-583d6a1fd6701e3d42c87285265b0b4f7657ab7c.zip |
1.10
Diffstat (limited to 'ui/SmallDialogs.h')
-rw-r--r-- | ui/SmallDialogs.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/ui/SmallDialogs.h b/ui/SmallDialogs.h index e97362d5..b70e6105 100644 --- a/ui/SmallDialogs.h +++ b/ui/SmallDialogs.h @@ -38,6 +38,7 @@ public: static const int okayButtonPressed = 25; private: + void OnHelp(wxCommandEvent& event); void OnDefault(wxCommandEvent& event); void OnOK(wxCommandEvent& event); void OnCancel(wxCommandEvent& event); @@ -164,7 +165,9 @@ public: CompareStatus(wxWindow* parentWindow); ~CompareStatus(); - void resetCmpGauge(int totalCmpObjectsToProcess, double totalCmpDataToProcess); + void init(); //initialize all status values + + void switchToCompareBytewise(int totalCmpObjectsToProcess, double totalCmpDataToProcess); void incScannedObjects_NoUpdate(int number); void incProcessedCmpData_NoUpdate(int objectsProcessed, double dataProcessed); void setStatusText_NoUpdate(const wxString& text); @@ -175,12 +178,14 @@ private: unsigned int scannedObjects; wxString currentStatusText; + wxStopWatch timeElapsed; + //gauge variables + double scalingFactorCmp; //nr of elements has to be normalized to smaller nr. because of range of int limitation double totalCmpData; //each data element represents one byte for proper progress indicator scaling double processedCmpData; - double scalingFactorCmp; //nr of elements has to be normalized to smaller nr. because of range of int limitation - int processedCmpObjects; //each object represents a file or directory processed int totalCmpObjects; + int processedCmpObjects; //each object represents a file or directory processed /* //remaining time RemainingTime calcTimeLeft; |