summaryrefslogtreecommitdiffhomepage
path: root/opentrack-compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-06-29 13:05:30 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-06-29 13:18:32 +0200
commit6482a7e2582867d51c19bb12d513bc52dde2cc66 (patch)
tree51f02c20e6601404330c9ea7610ce044dfbbac74 /opentrack-compat
parent2dd8064c20d88c26a11240c6a871f670b5109d71 (diff)
compat/options: separate module dll names from rest of settings
The other settings are modified by the options dialog. These are in the main ui. We need to be able to save modules without saving the options dialog.
Diffstat (limited to 'opentrack-compat')
-rw-r--r--opentrack-compat/options.hpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/opentrack-compat/options.hpp b/opentrack-compat/options.hpp
index d7101674..d1173894 100644
--- a/opentrack-compat/options.hpp
+++ b/opentrack-compat/options.hpp
@@ -203,8 +203,8 @@ namespace options {
return detail::singleton().bundle(name);
}
-#define DEFINE_SLOT(t) void setValue(t datum) { store(datum); }
-#define DEFINE_SIGNAL(t) void valueChanged(t)
+#define OPENTRACK_DEFINE_SLOT(t) void setValue(t datum) { store(datum); }
+#define OPENTRACK_DEFINE_SIGNAL(t) void valueChanged(t)
class OPENTRACK_COMPAT_EXPORT base_value : public QObject
{
@@ -213,12 +213,12 @@ namespace options {
QString name() const { return self_name; }
base_value(pbundle b, const QString& name);
signals:
- DEFINE_SIGNAL(double);
- DEFINE_SIGNAL(float);
- DEFINE_SIGNAL(int);
- DEFINE_SIGNAL(bool);
- DEFINE_SIGNAL(QString);
- DEFINE_SIGNAL(slider_value);
+ OPENTRACK_DEFINE_SIGNAL(double);
+ OPENTRACK_DEFINE_SIGNAL(float);
+ OPENTRACK_DEFINE_SIGNAL(int);
+ OPENTRACK_DEFINE_SIGNAL(bool);
+ OPENTRACK_DEFINE_SIGNAL(const QString&);
+ OPENTRACK_DEFINE_SIGNAL(const slider_value&);
protected:
pbundle b;
QString self_name;
@@ -235,11 +235,11 @@ namespace options {
}
public slots:
- DEFINE_SLOT(double)
- DEFINE_SLOT(int)
- DEFINE_SLOT(QString)
- DEFINE_SLOT(bool)
- DEFINE_SLOT(slider_value)
+ OPENTRACK_DEFINE_SLOT(double)
+ OPENTRACK_DEFINE_SLOT(int)
+ OPENTRACK_DEFINE_SLOT(QString)
+ OPENTRACK_DEFINE_SLOT(bool)
+ OPENTRACK_DEFINE_SLOT(slider_value)
public slots:
virtual void reload() = 0;
};