diff options
Diffstat (limited to 'gui/ui.h')
-rw-r--r-- | gui/ui.h | 16 |
1 files changed, 4 insertions, 12 deletions
@@ -29,6 +29,7 @@ #include "curve-config.h" #include "options-dialog.hpp" #include "process_detector.h" +#include "software-update-dialog.hpp" using namespace options; @@ -45,26 +46,17 @@ class MainWindow : public QMainWindow, private State mem<MapWidget> mapping_widget; QShortcut kbd_quit; QPixmap no_feed_pixmap; - mem<IFilterDialog> pFilterDialog; mem<IProtocolDialog> pProtocolDialog; - mem<ITrackerDialog> pTrackerDialog; process_detector_worker det; QMenu profile_menu; bool is_refreshing_profiles; 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; @@ -76,15 +68,15 @@ 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; private slots: void _save(); void save(); void exit(); void profileSelected(QString name); - void showTrackerSettings(); void showProtocolSettings(); - void showFilterSettings(); void show_options_dialog(); void showCurveConfiguration(); void showHeadPose(); |