summaryrefslogtreecommitdiffhomepage
path: root/gui/process_detector.h
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/process_detector.h
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/process_detector.h')
-rw-r--r--gui/process_detector.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/gui/process_detector.h b/gui/process_detector.h
index 475ebde0..16d50e42 100644
--- a/gui/process_detector.h
+++ b/gui/process_detector.h
@@ -8,6 +8,8 @@
#pragma once
+#include "export.hpp"
+
#include <QObject>
#include <QWidget>
#include <QTableWidget>
@@ -17,7 +19,7 @@
#include "process-detector-fancy-table.hpp"
#include "options/options.hpp"
-struct settings
+struct OTR_GUI_EXPORT proc_detector_settings
{
QHash<QString, QString> split_process_names();
QString get_game_list();
@@ -26,12 +28,12 @@ struct settings
void set_is_enabled(bool enabled);
};
-class process_detector final : public QWidget
+class OTR_GUI_EXPORT process_detector final : public QWidget
{
Q_OBJECT
Ui_process_detector ui;
- settings s;
+ proc_detector_settings s;
int add_row(QString exe_name = "...", QString profile = "");
void add_items();
@@ -56,10 +58,10 @@ public slots:
void browse();
};
-class process_detector_worker : QObject
+class OTR_GUI_EXPORT process_detector_worker : QObject
{
Q_OBJECT
- settings s;
+ proc_detector_settings s;
QString last_exe_name;
public:
bool config_to_start(QString& s);