diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:24:35 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:24:35 +0200 |
commit | 460091fb0b2ff114cc741372f15bb43b702ea3b1 (patch) | |
tree | 0562c2eda4c66969c6e6d0910080db9f5b0def3e /ui/main_dlg.h | |
parent | 5.15 (diff) | |
download | FreeFileSync-460091fb0b2ff114cc741372f15bb43b702ea3b1.tar.gz FreeFileSync-460091fb0b2ff114cc741372f15bb43b702ea3b1.tar.bz2 FreeFileSync-460091fb0b2ff114cc741372f15bb43b702ea3b1.zip |
5.16
Diffstat (limited to 'ui/main_dlg.h')
-rw-r--r-- | ui/main_dlg.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/ui/main_dlg.h b/ui/main_dlg.h index 70f78e93..2d132814 100644 --- a/ui/main_dlg.h +++ b/ui/main_dlg.h @@ -127,9 +127,13 @@ private: void openExternalApplication(const wxString& commandline, const std::vector<zen::FileSystemObject*>& selection, bool leftSide); //selection may be empty //don't use wxWidgets idle handling => repeated idle requests/consumption hogs 100% cpu! - void startProcessingAsyncTasks() { timerForAsyncTasks.Start(50); } //timer interval in [ms] void onProcessAsyncTasks(wxEvent& event); + template <class Fun, class Fun2> + void processAsync(Fun doAsync, Fun2 evalOnGui) { asyncTasks.add(doAsync, evalOnGui); timerForAsyncTasks.Start(50); /*timer interval in [ms] */ } + template <class Fun, class Fun2> + void processAsync2(Fun doAsync, Fun2 evalOnGui) { asyncTasks.add2(doAsync, evalOnGui); timerForAsyncTasks.Start(50); /*timer interval in [ms] */ } + //status bar supports one of the following two states at a time: void setStatusBarFullText(const wxString& msg); void setStatusBarFileStatistics(size_t filesOnLeftView, size_t foldersOnLeftView, size_t filesOnRightView, size_t foldersOnRightView, zen::UInt64 filesizeLeftView, zen::UInt64 filesizeRightView); @@ -186,6 +190,7 @@ private: void onGridLabelContextR(zen::GridClickEvent& event); void onGridLabelContext(zen::Grid& grid, zen::ColumnTypeRim type, const std::vector<zen::ColumnAttributeRim>& defaultColumnAttributes); + void OnToggleViewType (wxCommandEvent& event); void OnToggleViewButton(wxCommandEvent& event); void OnConfigNew (wxCommandEvent& event); @@ -279,9 +284,10 @@ private: bool processingGlobalKeyEvent; //indicator to notify recursion in OnGlobalKeyEvent() - bool showSyncAction_; //toggle to display configuration preview instead of comparison result - //use this methods when changing values! - void showSyncAction(bool value); + //toggle to display configuration preview instead of comparison result: + //for read access use: m_bpButtonViewTypeSyncAction->isActive() + //when changing value use: + void setViewTypeSyncAction(bool value); wxAuiManager auiMgr; //implement dockable GUI design |