diff options
Diffstat (limited to 'gui/ui.h')
-rw-r--r-- | gui/ui.h | 18 |
1 files changed, 5 insertions, 13 deletions
@@ -32,10 +32,11 @@ #include "curve-config.h" #include "options-dialog.hpp" #include "process_detector.h" +#include "software-update-dialog.hpp" using namespace options; -class MainWindow : public QMainWindow, private State +class MainWindow : public QMainWindow, public State { Q_OBJECT @@ -49,27 +50,18 @@ class MainWindow : public QMainWindow, private State mem<OptionsDialog> options_widget; mem<MapWidget> mapping_widget; QShortcut kbd_quit; - mem<IFilterDialog> pFilterDialog; mem<IProtocolDialog> pProtocolDialog; - mem<ITrackerDialog> pTrackerDialog; process_detector_worker det; QMenu profile_menu; bool is_refreshing_profiles; volatile bool keys_paused; QTimer save_timer; + update_dialog::query update_query; - mem<dylib> current_tracker() - { - return modules.trackers().value(ui.iconcomboTrackerSource->currentIndex(), nullptr); - } mem<dylib> current_protocol() { return modules.protocols().value(ui.iconcomboProtocol->currentIndex(), nullptr); } - mem<dylib> current_filter() - { - return modules.filters().value(ui.iconcomboFilter->currentIndex(), nullptr); - } void changeEvent(QEvent* e) override; @@ -81,6 +73,8 @@ class MainWindow : public QMainWindow, private State static bool get_new_config_name_from_dialog(QString &ret); void set_profile(const QString& profile); void maybe_save(); + bool maybe_not_close_tracking(); + void closeEvent(QCloseEvent *e) override; void register_shortcuts(); private slots: void _save(); @@ -88,9 +82,7 @@ private slots: void exit(); void profileSelected(QString name); - void showTrackerSettings(); void showProtocolSettings(); - void showFilterSettings(); void show_options_dialog(); void showCurveConfiguration(); void showHeadPose(); |