summaryrefslogtreecommitdiff
path: root/ui/main_dlg.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:12:46 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:12:46 +0200
commitb338e29fd3eaf700f8c8360aa0310048ba941d54 (patch)
tree122f8ef3790d12cd10275ef7453a9e8053322d78 /ui/main_dlg.h
parent3.18 (diff)
downloadFreeFileSync-b338e29fd3eaf700f8c8360aa0310048ba941d54.tar.gz
FreeFileSync-b338e29fd3eaf700f8c8360aa0310048ba941d54.tar.bz2
FreeFileSync-b338e29fd3eaf700f8c8360aa0310048ba941d54.zip
3.19
Diffstat (limited to 'ui/main_dlg.h')
-rw-r--r--ui/main_dlg.h35
1 files changed, 23 insertions, 12 deletions
diff --git a/ui/main_dlg.h b/ui/main_dlg.h
index 4d00ff2a..47adf4a9 100644
--- a/ui/main_dlg.h
+++ b/ui/main_dlg.h
@@ -46,8 +46,8 @@ public:
~MainDialog();
- void disableAllElements(bool enableAbort); //dis-/enables all elements (except abort button) that might receive user input during long-running processes: comparison, deletion
- void enableAllElements(); //
+ void disableAllElements(bool enableAbort); //dis-/enables all elements (except abort button) that might receive user input
+ void enableAllElements(); //during long-running processes: comparison, deletion
private:
friend class CompareStatusHandler;
@@ -68,18 +68,23 @@ private:
void cleanUp(bool saveLastUsedConfig);
//configuration load/save
- bool readConfigurationFromXml(const wxString& filename);
- bool writeConfigurationToXml(const wxString& filename);
void setLastUsedConfig(const wxString& filename, const xmlAccess::XmlGuiConfig& guiConfig);
+ void setLastUsedConfig(const std::vector<wxString>& filenames, const xmlAccess::XmlGuiConfig& guiConfig);
- xmlAccess::XmlGuiConfig getCurrentConfiguration() const;
- void setCurrentConfiguration(const xmlAccess::XmlGuiConfig& newGuiCfg);
+ xmlAccess::XmlGuiConfig getConfig() const;
+ void setConfig(const xmlAccess::XmlGuiConfig& newGuiCfg);
+
+ void loadConfiguration(const wxString& filename);
+ void loadConfiguration(const std::vector<wxString>& filenames);
+
+ bool trySaveConfig(); //return true if saved successfully
+ bool saveOldConfig(); //return false on user abort
static const wxString& lastRunConfigName();
xmlAccess::XmlGuiConfig lastConfigurationSaved; //support for: "Save changed configuration?" dialog
//used when saving configuration
- wxString currentConfigFileName;
+ std::vector<wxString> activeConfigFiles; //name of currently loaded config file (may be more than 1)
void readGlobalSettings();
void writeGlobalSettings();
@@ -87,7 +92,8 @@ private:
void initViewFilterButtons();
void updateFilterButtons();
- void addFileToCfgHistory(const wxString& filename);
+ void addFileToCfgHistory(const std::vector<wxString>& filenames);
+
void addLeftFolderToHistory(const wxString& leftFolder);
void addRightFolderToHistory(const wxString& rightFolder);
@@ -131,6 +137,14 @@ private:
void OnContextSetLayout( wxMouseEvent& event);
void OnGlobalKeyEvent( wxKeyEvent& event);
+ void OnContextSelectCompVariant( wxMouseEvent& event);
+ void OnContextSelectSyncVariant( wxMouseEvent& event);
+
+ void applyCompareConfig();
+
+ void OnSetCompVariant(wxCommandEvent& event);
+ void OnSetSyncVariant(wxCommandEvent& event);
+
//context menu handler methods
void OnContextFilterTemp (wxCommandEvent& event);
void OnContextExcludeExtension (wxCommandEvent& event);
@@ -182,15 +196,12 @@ private:
void OnSaveConfig( wxCommandEvent& event);
void OnLoadConfig( wxCommandEvent& event);
void OnLoadFromHistory( wxCommandEvent& event);
- bool trySaveConfig(); //return true if saved successfully
- bool saveOldConfig(); //return false on user abort
- void loadConfiguration(const wxString& filename);
void OnCfgHistoryKeyEvent( wxKeyEvent& event);
void OnRegularUpdateCheck( wxIdleEvent& event);
void OnLayoutWindowAsync( wxIdleEvent& event);
- void refreshGridAfterFilterChange(const int delay);
+ void refreshGridAfterFilterChange(int delay);
void OnResize( wxSizeEvent& event);
//void OnResizeTopButtons( wxEvent& event);
bgstack15