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/MainDialog.h | |
parent | 1.9 (diff) | |
download | FreeFileSync-583d6a1fd6701e3d42c87285265b0b4f7657ab7c.tar.gz FreeFileSync-583d6a1fd6701e3d42c87285265b0b4f7657ab7c.tar.bz2 FreeFileSync-583d6a1fd6701e3d42c87285265b0b4f7657ab7c.zip |
1.10
Diffstat (limited to 'ui/MainDialog.h')
-rw-r--r-- | ui/MainDialog.h | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/ui/MainDialog.h b/ui/MainDialog.h index 3ef7dbf5..4bf5504c 100644 --- a/ui/MainDialog.h +++ b/ui/MainDialog.h @@ -10,7 +10,6 @@ #ifndef MAINDIALOG_H #define MAINDIALOG_H -#include "../library/wxWidgets.h" #include "guiGenerated.h" #include "../FreeFileSync.h" #include "syncDialog.h" @@ -36,6 +35,7 @@ extern int leadingPanel; class CompareStatusUpdater; class FileDropEvent; +class TiXmlElement; class MainDialog : public GuiGenerated { @@ -47,9 +47,16 @@ public: ~MainDialog(); private: + void loadDefaultConfiguration(); + + void readConfigurationFromXml(const wxString& filename, bool programStartup = false); + bool parseXmlData(TiXmlElement* root, bool programStartup); + void writeConfigurationToXml(const wxString& filename); + + //deprecated void readConfigurationFromHD(const wxString& filename, bool programStartup = false); void writeConfigurationToHD(const wxString& filename); - void loadDefaultConfiguration(); + // void updateViewFilterButtons(); void updateFilterButton(wxBitmapButton* filterButton, bool isActive); @@ -137,6 +144,7 @@ private: void OnMenuLangEnglish( wxCommandEvent& event); void OnMenuLangGerman( wxCommandEvent& event); void OnMenuLangFrench( wxCommandEvent& event); + void OnMenuLangJapanese( wxCommandEvent& event); void enableSynchronization(bool value); @@ -174,6 +182,9 @@ private: wxLongLong lastStatusChange; stack<wxString> stackObjects; + //compare status panel (hidden on start, shown when comparing) + CompareStatus* compareStatus; + //save the last used config filenames wxConfig* cfgFileHistory; vector<wxString> cfgFileNames; @@ -228,11 +239,12 @@ public: void updateProcessedData(int objectsProcessed, double dataProcessed); int reportError(const wxString& text); - void triggerUI_Refresh(bool asyncProcessActive); + void forceUiRefresh(); private: + void abortThisProcess(); + MainDialog* mainDialog; - CompareStatus* statusPanel; bool continueOnError; int currentProcess; }; @@ -249,11 +261,12 @@ public: void updateProcessedData(int objectsProcessed, double dataProcessed); int reportError(const wxString& text); - void triggerUI_Refresh(bool asyncProcessActive); + void forceUiRefresh(); private: - SyncStatus* syncStatusFrame; + void abortThisProcess(); + SyncStatus* syncStatusFrame; bool continueError; wxArrayString unhandledErrors; //list of non-resolved errors }; |