summaryrefslogtreecommitdiffhomepage
path: root/gui/main-window.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-02-22 16:44:18 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-02-23 08:54:24 +0100
commit4d39055d720fea1cf05069a14fe05af94cd7b336 (patch)
treee869434208d34fb0a86f8717470a0057c22ac866 /gui/main-window.hpp
parent86e9c380bb033d4ffa36acf5883516727278c299 (diff)
gui/main-window: simplify
Diffstat (limited to 'gui/main-window.hpp')
-rw-r--r--gui/main-window.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/gui/main-window.hpp b/gui/main-window.hpp
index 0dfc0259..71e372f0 100644
--- a/gui/main-window.hpp
+++ b/gui/main-window.hpp
@@ -60,6 +60,7 @@ class MainWindow : public QMainWindow, private State
ptr<IFilterDialog> pFilterDialog;
ptr<IProtocolDialog> pProtocolDialog;
ptr<ITrackerDialog> pTrackerDialog;
+
process_detector_worker det;
QMenu profile_menu;
@@ -96,6 +97,18 @@ class MainWindow : public QMainWindow, private State
void closeEvent(QCloseEvent*) override;
bool maybe_hide_to_tray(QEvent* e);
+ // only use in impl file since no definition in header!
+ template<typename t>
+ bool mk_dialog(mem<dylib> lib, ptr<t>& d);
+
+ // idem
+ template<typename t, typename... Args>
+ inline bool mk_window(ptr<t>& place, Args&&... params);
+
+ // idem
+ template<typename t, typename F>
+ bool mk_window_common(ptr<t>& d, F&& ctor);
+
private slots:
void save_modules();
void exit();