summaryrefslogtreecommitdiffhomepage
path: root/gui/main-window.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-01-11 14:36:07 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-01-11 14:36:07 +0100
commite1d6232217120be879bb639681f61e46e2d48580 (patch)
treed186ffc3dd72de6e4703d584a41971107ca8389b /gui/main-window.hpp
parent98ef185a5c9075720acb54ec1c2e5fec6e4ab440 (diff)
cmake, gui, main: make user interface reusable
The work isn't complete. We need moving out all non-reusable parts away and only keeping user interface logic in a class.
Diffstat (limited to 'gui/main-window.hpp')
-rw-r--r--gui/main-window.hpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/gui/main-window.hpp b/gui/main-window.hpp
index 8b0144b8..253c1194 100644
--- a/gui/main-window.hpp
+++ b/gui/main-window.hpp
@@ -8,6 +8,8 @@
#pragma once
+#include "export.hpp"
+
#include "api/plugin-support.hpp"
#include "mapping-dialog.hpp"
#include "settings.hpp"
@@ -37,11 +39,11 @@
#include <tuple>
#include <memory>
-#include "ui_main-window.h"
+#include "gui/ui_main-window.h"
using namespace options;
-class MainWindow : public QMainWindow, private State
+class OTR_GUI_EXPORT main_window : public QMainWindow, private State
{
Q_OBJECT
@@ -54,8 +56,8 @@ class MainWindow : public QMainWindow, private State
QTimer pose_update_timer;
QTimer det_timer;
QTimer config_list_timer;
- std::unique_ptr<OptionsDialog> options_widget;
- std::unique_ptr<MapWidget> mapping_widget;
+ std::unique_ptr<options_dialog> options_widget;
+ std::unique_ptr<mapping_dialog> mapping_widget;
QShortcut kbd_quit;
std::unique_ptr<IFilterDialog> pFilterDialog;
std::unique_ptr<IProtocolDialog> pProtocolDialog;
@@ -143,8 +145,8 @@ signals:
void toggle_tracker();
void restart_tracker();
public:
- MainWindow();
- ~MainWindow();
+ main_window();
+ ~main_window();
static void set_working_directory();
bool maybe_die_on_config_not_writable(const QString& current, QStringList* ini_list);
void die_on_config_not_writable();