summaryrefslogtreecommitdiff
path: root/ui/main_dlg.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:21:59 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:21:59 +0200
commitd4af25c52a28b93484ffb55e0a8027bc4ce7856f (patch)
tree853d57468d6b370711e7a5dd2c3dc7d5bac81b10 /ui/main_dlg.h
parent5.8 (diff)
downloadFreeFileSync-d4af25c52a28b93484ffb55e0a8027bc4ce7856f.tar.gz
FreeFileSync-d4af25c52a28b93484ffb55e0a8027bc4ce7856f.tar.bz2
FreeFileSync-d4af25c52a28b93484ffb55e0a8027bc4ce7856f.zip
5.9
Diffstat (limited to 'ui/main_dlg.h')
-rw-r--r--ui/main_dlg.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/ui/main_dlg.h b/ui/main_dlg.h
index 47630670..f5f07624 100644
--- a/ui/main_dlg.h
+++ b/ui/main_dlg.h
@@ -18,6 +18,7 @@
#include "custom_grid.h"
#include "tree_view.h"
#include <wx+/file_drop.h>
+#include "folder_history_box.h"
//class FolderHistory;
class DirectoryPair;
@@ -77,8 +78,7 @@ private:
void setGlobalCfgOnInit(const xmlAccess::XmlGlobalSettings& globalSettings); //messes with Maximize(), window sizes, so call just once!
xmlAccess::XmlGlobalSettings getGlobalCfgBeforeExit(); //destructive "get" thanks to "Iconize(false), Maximize(false)"
- void loadConfiguration(const wxString& filename);
- void loadConfiguration(const std::vector<wxString>& filenames);
+ bool loadConfiguration(const std::vector<wxString>& filenames); //return true if loaded successfully
bool trySaveConfig(const wxString* fileName); //return true if saved successfully
bool saveOldConfig(); //return false on user abort
@@ -89,10 +89,10 @@ private:
//used when saving configuration
std::vector<wxString> activeConfigFiles; //name of currently loaded config file (may be more than 1)
- void initViewFilterButtons();
+ void initViewFilterButtons(const zen::MainConfiguration& mainCfg);
void updateFilterButtons();
- void addFileToCfgHistory(const std::vector<wxString>& filenames);
+ void addFileToCfgHistory(const std::vector<wxString>& filenames); //= update/insert + apply selection
void addFolderPair(const std::vector<zen::FolderPairEnh>& newPairs, bool addFront = false);
void removeAddFolderPair(size_t pos);
@@ -102,6 +102,8 @@ private:
//main method for putting gridDataView on UI: updates data respecting current view settings
void updateGui(); //kitchen-sink update
+ void updateGuiDelayedIf(bool condition); // 400 ms delay
+
void updateGridViewData(); //
void updateStatistics(); // more fine-grained updaters
void updateUnsavedCfgStatus(); //
@@ -111,7 +113,7 @@ private:
std::vector<zen::FileSystemObject*> getTreeSelection() const;
void setSyncDirManually(const std::vector<zen::FileSystemObject*>& selection, zen::SyncDirection direction);
- void setManualFilter(const std::vector<zen::FileSystemObject*>& selection, bool setIncluded);
+ void setFilterManually(const std::vector<zen::FileSystemObject*>& selection, bool setIncluded);
void copySelectionToClipboard();
void deleteSelectedFiles(const std::vector<zen::FileSystemObject*>& selectionLeft,
const std::vector<zen::FileSystemObject*>& selectionRight);
@@ -194,6 +196,7 @@ private:
void OnConfigSaveAs (wxCommandEvent& event);
void OnConfigLoad (wxCommandEvent& event);
void OnLoadFromHistory(wxCommandEvent& event);
+ void OnLoadFromHistoryDoubleClick(wxCommandEvent& event);
void OnCfgHistoryKeyEvent(wxKeyEvent& event);
void OnRegularUpdateCheck(wxIdleEvent& event);
@@ -212,8 +215,6 @@ private:
void OnStartSync (wxCommandEvent& event);
void OnClose (wxCloseEvent& event);
- void updateGuiAfterFilterChange(int delay);
-
void excludeExtension(const Zstring& extension);
void excludeShortname(const zen::FileSystemObject& fsObj);
void excludeItems(const std::vector<zen::FileSystemObject*>& selection);
bgstack15