From d4af25c52a28b93484ffb55e0a8027bc4ce7856f Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 17:21:59 +0200 Subject: 5.9 --- ui/main_dlg.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'ui/main_dlg.h') 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 +#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& filenames); + bool loadConfiguration(const std::vector& 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 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& filenames); + void addFileToCfgHistory(const std::vector& filenames); //= update/insert + apply selection void addFolderPair(const std::vector& 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 getTreeSelection() const; void setSyncDirManually(const std::vector& selection, zen::SyncDirection direction); - void setManualFilter(const std::vector& selection, bool setIncluded); + void setFilterManually(const std::vector& selection, bool setIncluded); void copySelectionToClipboard(); void deleteSelectedFiles(const std::vector& selectionLeft, const std::vector& 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& selection); -- cgit