summaryrefslogtreecommitdiffhomepage
path: root/gui/mapping-dialog.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/mapping-dialog.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/mapping-dialog.hpp')
-rw-r--r--gui/mapping-dialog.hpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/gui/mapping-dialog.hpp b/gui/mapping-dialog.hpp
index ba5d1867..5ab8a066 100644
--- a/gui/mapping-dialog.hpp
+++ b/gui/mapping-dialog.hpp
@@ -1,7 +1,9 @@
#pragma once
+#include "export.hpp"
+
#include "logic/mappings.hpp"
-#include "ui_mapping-dialog.h"
+#include "gui/ui_mapping-dialog.h"
#include <QWidget>
#include <QDialog>
@@ -9,14 +11,14 @@
#include <QCloseEvent>
#include <QCheckBox>
-class MapWidget final : public QDialog
+class OTR_GUI_EXPORT mapping_dialog final : public QDialog
{
Q_OBJECT
public:
- MapWidget(Mappings& m);
+ mapping_dialog(Mappings& m);
void refresh_tab();
private:
- Ui::mapping_window ui;
+ Ui::mapping_dialog ui;
Mappings& m;
main_settings s;