summaryrefslogtreecommitdiffhomepage
path: root/gui/ui.h
diff options
context:
space:
mode:
Diffstat (limited to 'gui/ui.h')
-rw-r--r--gui/ui.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/gui/ui.h b/gui/ui.h
index 91e4ebbf..c1e71ca9 100644
--- a/gui/ui.h
+++ b/gui/ui.h
@@ -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();