diff options
Diffstat (limited to 'gui/main-window.hpp')
-rw-r--r-- | gui/main-window.hpp | 13 |
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(); |