summaryrefslogtreecommitdiff
path: root/ui/SmallDialogs.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:02:17 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:02:17 +0200
commitb9203ee84953006547f4afd58f405874c87bf0dc (patch)
tree9e41f1533f120e9268e86658c52458630ffd718a /ui/SmallDialogs.h
parent3.0 (diff)
downloadFreeFileSync-b9203ee84953006547f4afd58f405874c87bf0dc.tar.gz
FreeFileSync-b9203ee84953006547f4afd58f405874c87bf0dc.tar.bz2
FreeFileSync-b9203ee84953006547f4afd58f405874c87bf0dc.zip
3.1
Diffstat (limited to 'ui/SmallDialogs.h')
-rw-r--r--ui/SmallDialogs.h22
1 files changed, 15 insertions, 7 deletions
diff --git a/ui/SmallDialogs.h b/ui/SmallDialogs.h
index 3a07167a..ca22afa9 100644
--- a/ui/SmallDialogs.h
+++ b/ui/SmallDialogs.h
@@ -9,6 +9,7 @@
class Statistics;
class StatusHandler;
+class MinimizeToTray;
namespace FreeFileSync
{
@@ -320,17 +321,22 @@ public:
void setCurrentStatus(SyncStatusID id);
void processHasFinished(SyncStatusID id, const wxString& finalMessage); //essential to call this in StatusUpdater derived class destructor at the LATEST(!) to prevent access to currentStatusUpdater
+ void minimizeToTray();
+
private:
- void OnOkay(wxCommandEvent& event);
- void OnPause(wxCommandEvent& event);
- void OnAbort(wxCommandEvent& event);
- void OnClose(wxCloseEvent& event);
+ virtual void OnOkay(wxCommandEvent& event);
+ virtual void OnPause(wxCommandEvent& event);
+ virtual void OnAbort(wxCommandEvent& event);
+ virtual void OnClose(wxCloseEvent& event);
+ virtual void OnIconize(wxIconizeEvent& event);
+
+ void resumeFromSystray();
+ bool currentProcessIsRunning();
wxStopWatch timeElapsed;
- StatusHandler* currentStatusHandler;
- wxWindow* windowToDis;
- bool currentProcessIsRunning;
+ StatusHandler* processStatusHandler;
+ wxWindow* mainDialog;
//gauge variables
int totalObjects;
@@ -347,6 +353,8 @@ private:
std::auto_ptr<Statistics> statistics;
long lastStatCallSpeed; //used for calculating intervals between statistics update
long lastStatCallRemTime; //
+
+ boost::shared_ptr<MinimizeToTray> minimizedToSysTray; //optional: if filled, hides all visible windows, shows again if destroyed
};
#endif // SMALLDIALOGS_H_INCLUDED
bgstack15