summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorBe <be@mixxx.org>2020-12-08 00:41:38 -0600
committerBe <be@mixxx.org>2020-12-08 01:21:55 -0600
commit191158056702f098973124da09be437434d20151 (patch)
tree31af73f67c195b146f43d1529417a79eb20a025c /src/control
parentb5cf59d44d8071f51eed0273c6b4a06e482ac2f3 (diff)
parent3085bbe95107fd789a8a966dfeb341cfe74cfad8 (diff)
Merge remote-tracking branch 'upstream/main' into controllerengine_refactoring
Diffstat (limited to 'src/control')
-rw-r--r--src/control/control.cpp1
-rw-r--r--src/control/controlaudiotaperpot.cpp3
-rw-r--r--src/control/controlaudiotaperpot.h6
-rw-r--r--src/control/controlbehavior.h5
-rw-r--r--src/control/controleffectknob.cpp3
-rw-r--r--src/control/controleffectknob.h5
-rw-r--r--src/control/controlencoder.cpp2
-rw-r--r--src/control/controlencoder.h5
-rw-r--r--src/control/controlindicator.cpp2
-rw-r--r--src/control/controlindicator.h5
-rw-r--r--src/control/controllinpotmeter.cpp2
-rw-r--r--src/control/controllinpotmeter.h5
-rw-r--r--src/control/controllogpotmeter.cpp19
-rw-r--r--src/control/controllogpotmeter.h26
-rw-r--r--src/control/controlmodel.cpp2
-rw-r--r--src/control/controlmodel.h5
-rw-r--r--src/control/controlobject.cpp23
-rw-r--r--src/control/controlobject.h17
-rw-r--r--src/control/controlobjectscript.cpp1
-rw-r--r--src/control/controlobjectscript.h5
-rw-r--r--src/control/controlpotmeter.cpp21
-rw-r--r--src/control/controlpotmeter.h26
-rw-r--r--src/control/controlproxy.cpp4
-rw-r--r--src/control/controlproxy.h5
-rw-r--r--src/control/controlpushbutton.cpp19
-rw-r--r--src/control/controlttrotary.cpp18
-rw-r--r--src/control/controlttrotary.h21
27 files changed, 42 insertions, 214 deletions
diff --git a/src/control/control.cpp b/src/control/control.cpp
index 6f988913f3..5ea6a51dad 100644
--- a/src/control/control.cpp
+++ b/src/control/control.cpp
@@ -1,6 +1,7 @@
#include "control/control.h"
#include "control/controlobject.h"
+#include "moc_control.cpp"
#include "util/stat.h"
//static
diff --git a/src/control/controlaudiotaperpot.cpp b/src/control/controlaudiotaperpot.cpp
index 9264b67774..f98a37539e 100644
--- a/src/control/controlaudiotaperpot.cpp
+++ b/src/control/controlaudiotaperpot.cpp
@@ -1,6 +1,7 @@
-
#include "control/controlaudiotaperpot.h"
+#include "moc_controlaudiotaperpot.cpp"
+
ControlAudioTaperPot::ControlAudioTaperPot(const ConfigKey& key,
double minDB,
double maxDB,
diff --git a/src/control/controlaudiotaperpot.h b/src/control/controlaudiotaperpot.h
index 8c16262d6f..afbc59ad57 100644
--- a/src/control/controlaudiotaperpot.h
+++ b/src/control/controlaudiotaperpot.h
@@ -1,6 +1,4 @@
-
-#ifndef CONTROLAUDIOTAPERPOT_H
-#define CONTROLAUDIOTAPERPOT_H
+#pragma once
#include "control/controlpotmeter.h"
#include "preferences/usersettings.h"
@@ -14,5 +12,3 @@ class ControlAudioTaperPot : public ControlPotmeter {
// neutralParameter is a knob position between 0 and 1 where the gain is 1 (0dB)
ControlAudioTaperPot(const ConfigKey& key, double minDB, double maxDB, double neutralParameter);
};
-
-#endif // CONTROLAUDIOTAPERPOT_H
diff --git a/src/control/controlbehavior.h b/src/control/controlbehavior.h
index 08f48b724b..1075cf0bea 100644
--- a/src/control/controlbehavior.h
+++ b/src/control/controlbehavior.h
@@ -1,5 +1,4 @@
-#ifndef CONTROLBEHAVIOR_H
-#define CONTROLBEHAVIOR_H
+#pragma once
#include <QTimer>
#include <QScopedPointer>
@@ -159,5 +158,3 @@ class ControlPushButtonBehavior : public ControlNumericBehavior {
int m_iNumStates;
QScopedPointer<QTimer> m_pushTimer;
};
-
-#endif /* CONTROLBEHAVIOR_H */
diff --git a/src/control/controleffectknob.cpp b/src/control/controleffectknob.cpp
index cf01306458..1dfd28d592 100644
--- a/src/control/controleffectknob.cpp
+++ b/src/control/controleffectknob.cpp
@@ -1,7 +1,8 @@
#include "control/controleffectknob.h"
-#include "util/math.h"
#include "effects/effectmanifestparameter.h"
+#include "moc_controleffectknob.cpp"
+#include "util/math.h"
ControlEffectKnob::ControlEffectKnob(const ConfigKey& key, double dMinValue, double dMaxValue)
: ControlPotmeter(key, dMinValue, dMaxValue) {
diff --git a/src/control/controleffectknob.h b/src/control/controleffectknob.h
index b0a10e2ae8..43e7cc3720 100644
--- a/src/control/controleffectknob.h
+++ b/src/control/controleffectknob.h
@@ -1,5 +1,4 @@
-#ifndef CONTROLEFFECTKNOB_H
-#define CONTROLEFFECTKNOB_H
+#pragma once
#include "control/controlpotmeter.h"
#include "effects/effectmanifestparameter.h"
@@ -12,5 +11,3 @@ class ControlEffectKnob : public ControlPotmeter {
void setBehaviour(EffectManifestParameter::ControlHint type,
double dMinValue, double dMaxValue);
};
-
-#endif // CONTROLLEFFECTKNOB_H
diff --git a/src/control/controlencoder.cpp b/src/control/controlencoder.cpp
index 3dd146a6e9..be9b6893ab 100644
--- a/src/control/controlencoder.cpp
+++ b/src/control/controlencoder.cpp
@@ -1,5 +1,7 @@
#include "control/controlencoder.h"
+#include "moc_controlencoder.cpp"
+
ControlEncoder::ControlEncoder(const ConfigKey& key, bool bIgnoreNops)
: ControlObject(key, bIgnoreNops) {
if (m_pControl) {
diff --git a/src/control/controlencoder.h b/src/control/controlencoder.h
index a323ac3133..75b2cb2015 100644
--- a/src/control/controlencoder.h
+++ b/src/control/controlencoder.h
@@ -1,5 +1,4 @@
-#ifndef CONTROLENCODER_H
-#define CONTROLENCODER_H
+#pragma once
#include "preferences/usersettings.h"
#include "control/controlobject.h"
@@ -9,5 +8,3 @@ class ControlEncoder : public ControlObject {
public:
ControlEncoder(const ConfigKey& key, bool bIgnoreNops = true);
};
-
-#endif
diff --git a/src/control/controlindicator.cpp b/src/control/controlindicator.cpp
index 2d655b02b0..3dc77a108a 100644
--- a/src/control/controlindicator.cpp
+++ b/src/control/controlindicator.cpp
@@ -1,5 +1,7 @@
#include "control/controlindicator.h"
+
#include "control/controlproxy.h"
+#include "moc_controlindicator.cpp"
#include "util/math.h"
ControlIndicator::ControlIndicator(const ConfigKey& key)
diff --git a/src/control/controlindicator.h b/src/control/controlindicator.h
index 62ec95b452..3cfbead987 100644
--- a/src/control/controlindicator.h
+++ b/src/control/controlindicator.h
@@ -1,5 +1,4 @@
-#ifndef CONTROLINDICATOR_H
-#define CONTROLINDICATOR_H
+#pragma once
#include "control/controlobject.h"
@@ -39,5 +38,3 @@ class ControlIndicator : public ControlObject {
ControlProxy* m_pCOTGuiTickTime;
ControlProxy* m_pCOTGuiTick50ms;
};
-
-#endif // CONTROLINDICATOR_H
diff --git a/src/control/controllinpotmeter.cpp b/src/control/controllinpotmeter.cpp
index deaa65f91a..72a2fc721d 100644
--- a/src/control/controllinpotmeter.cpp
+++ b/src/control/controllinpotmeter.cpp
@@ -1,5 +1,7 @@
#include "control/controllinpotmeter.h"
+#include "moc_controllinpotmeter.cpp"
+
ControlLinPotmeter::ControlLinPotmeter(const ConfigKey& key,
double dMinValue,
double dMaxValue,
diff --git a/src/control/controllinpotmeter.h b/src/control/controllinpotmeter.h
index 98c8e95537..bf6d8d4997 100644
--- a/src/control/controllinpotmeter.h
+++ b/src/control/controllinpotmeter.h
@@ -1,5 +1,4 @@
-#ifndef CONTROLLINPOTMETER_H
-#define CONTROLLINPOTMETER_H
+#pragma once
#include "control/controlpotmeter.h"
@@ -14,5 +13,3 @@ class ControlLinPotmeter : public ControlPotmeter {
double dSmallStep = 0,
bool allowOutOfBounds = false);
};
-
-#endif // CONTROLLINPOTMETER_H
diff --git a/src/control/controllogpotmeter.cpp b/src/control/controllogpotmeter.cpp
index b0c4e40163..4ff8924ed3 100644
--- a/src/control/controllogpotmeter.cpp
+++ b/src/control/controllogpotmeter.cpp
@@ -1,22 +1,7 @@
-/***************************************************************************
- controlpotmeter.cpp - description
- -------------------
- begin : Wed Feb 20 2002
- copyright : (C) 2002 by Tue and Ken Haste Andersen
- email :
-***************************************************************************/
-
-/***************************************************************************
-* *
-* This program is free software; you can redistribute it and/or modify *
-* it under the terms of the GNU General Public License as published by *
-* the Free Software Foundation; either version 2 of the License, or *
-* (at your option) any later version. *
-* *
-***************************************************************************/
-
#include "control/controllogpotmeter.h"
+#include "moc_controllogpotmeter.cpp"
+
ControlLogpotmeter::ControlLogpotmeter(const ConfigKey& key, double dMaxValue, double minDB)
: ControlPotmeter(key, 0, dMaxValue) {
// Override ControlPotmeters default value of 0.5
diff --git a/src/control/controllogpotmeter.h b/src/control/controllogpotmeter.h
index 05e7d6bd93..5d5a04cc2f 100644
--- a/src/control/controllogpotmeter.h
+++ b/src/control/controllogpotmeter.h
@@ -1,34 +1,10 @@
-/***************************************************************************
- controlpotmeter.h - description
- -------------------
- begin : Wed Feb 20 2002
- copyright : (C) 2002 by Tue and Ken Haste Andersen
- email :
- ***************************************************************************/
-
-/***************************************************************************
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- ***************************************************************************/
-
-#ifndef CONTROLLOGPOTMETER_H
-#define CONTROLLOGPOTMETER_H
+#pragma once
#include "control/controlpotmeter.h"
#include "preferences/usersettings.h"
-/**
- *@author Tue and Ken Haste Andersen
- */
-
class ControlLogpotmeter : public ControlPotmeter {
Q_OBJECT
public:
ControlLogpotmeter(const ConfigKey& key, double dMaxValue, double minDB);
};
-
-#endif
diff --git a/src/control/controlmodel.cpp b/src/control/controlmodel.cpp
index 923be754b2..33824eb52f 100644
--- a/src/control/controlmodel.cpp
+++ b/src/control/controlmodel.cpp
@@ -1,5 +1,7 @@
#include "control/controlmodel.h"
+#include "moc_controlmodel.cpp"
+
ControlModel::ControlModel(QObject* pParent)
: QAbstractTableModel(pParent) {
diff --git a/src/control/controlmodel.h b/src/control/controlmodel.h
index 336d505046..93df7b330a 100644
--- a/src/control/controlmodel.h
+++ b/src/control/controlmodel.h
@@ -1,5 +1,4 @@
-#ifndef CONTROLMODEL_H
-#define CONTROLMODEL_H
+#pragma once
#include <QAbstractTableModel>
#include <QVariant>
@@ -58,5 +57,3 @@ class ControlModel final : public QAbstractTableModel {
QVector<QHash<int, QVariant> > m_headerInfo;
QList<ControlInfo> m_controls;
};
-
-#endif /* CONTROLMODEL_H */
diff --git a/src/control/controlobject.cpp b/src/control/controlobject.cpp
index 5aa71b84ce..df8983a4e9 100644
--- a/src/control/controlobject.cpp
+++ b/src/control/controlobject.cpp
@@ -1,27 +1,12 @@
-/***************************************************************************
- controlobject.cpp - description
- -------------------
- begin : Wed Feb 20 2002
- copyright : (C) 2002 by Tue and Ken Haste Andersen
- email :
-***************************************************************************/
-
-/***************************************************************************
-* *
-* This program is free software; you can redistribute it and/or modify *
-* it under the terms of the GNU General Public License as published by *
-* the Free Software Foundation; either version 2 of the License, or *
-* (at your option) any later version. *
-* *
-***************************************************************************/
+#include "control/controlobject.h"
-#include <QtDebug>
#include <QHash>
-#include <QSet>
#include <QMutexLocker>
+#include <QSet>
+#include <QtDebug>
-#include "control/controlobject.h"
#include "control/control.h"
+#include "moc_controlobject.cpp"
#include "util/stat.h"
#include "util/timer.h"
diff --git a/src/control/controlobject.h b/src/control/controlobject.h
index b6f3ae5f53..cfd2dd39d5 100644
--- a/src/control/controlobject.h
+++ b/src/control/controlobject.h
@@ -1,20 +1,3 @@
-/***************************************************************************
- controlobject.h - description
- -------------------
- begin : Wed Feb 20 2002
- copyright : (C) 2002 by Tue and Ken Haste Andersen
- email :
- ***************************************************************************/
-
-/***************************************************************************
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- ***************************************************************************/
-
#pragma once
#include <QObject>
diff --git a/src/control/controlobjectscript.cpp b/src/control/controlobjectscript.cpp
index f9b86cfe36..3a6fa5963b 100644
--- a/src/control/controlobjectscript.cpp
+++ b/src/control/controlobjectscript.cpp
@@ -3,6 +3,7 @@
#include <QtDebug>
#include "controllers/controllerdebug.h"
+#include "moc_controlobjectscript.cpp"
ControlObjectScript::ControlObjectScript(const ConfigKey& key, QObject* pParent)
: ControlProxy(key, pParent, ControllerDebug::shouldAssertForInvalidControlObjects()) {
diff --git a/src/control/controlobjectscript.h b/src/control/controlobjectscript.h
index eec296a01e..219a4b0a99 100644
--- a/src/control/controlobjectscript.h
+++ b/src/control/controlobjectscript.h
@@ -1,5 +1,4 @@
-#ifndef CONTROLOBJECTSCRIPT_H
-#define CONTROLOBJECTSCRIPT_H
+#pragma once
#include <QVector>
@@ -39,5 +38,3 @@ class ControlObjectScript : public ControlProxy {
private:
QVector<ScriptConnection> m_scriptConnections;
};
-
-#endif // CONTROLOBJECTSCRIPT_H
diff --git a/src/control/controlpotmeter.cpp b/src/control/controlpotmeter.cpp
index a62b77ef43..2c03d4d308 100644
--- a/src/control/controlpotmeter.cpp
+++ b/src/control/controlpotmeter.cpp
@@ -1,23 +1,8 @@
-/***************************************************************************
- controlpotmeter.cpp - description
- -------------------
- begin : Wed Feb 20 2002
- copyright : (C) 2002 by Tue and Ken Haste Andersen
- email :
-***************************************************************************/
-
-/***************************************************************************
-* *
-* This program is free software; you can redistribute it and/or modify *
-* it under the terms of the GNU General Public License as published by *
-* the Free Software Foundation; either version 2 of the License, or *
-* (at your option) any later version. *
-* *
-***************************************************************************/
-
-#include "control/controlpushbutton.h"
#include "control/controlpotmeter.h"
+
#include "control/controlproxy.h"
+#include "control/controlpushbutton.h"
+#include "moc_controlpotmeter.cpp"
ControlPotmeter::ControlPotmeter(const ConfigKey& key,
double dMinValue,
diff --git a/src/control/controlpotmeter.h b/src/control/controlpotmeter.h
index a3dee755c7..1913513b91 100644
--- a/src/control/controlpotmeter.h
+++ b/src/control/controlpotmeter.h
@@ -1,30 +1,8 @@
-/***************************************************************************
- controlpotmeter.h - description
- -------------------
- begin : Wed Feb 20 2002
- copyright : (C) 2002 by Tue and Ken Haste Andersen
- email :
- ***************************************************************************/
-
-/***************************************************************************
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- ***************************************************************************/
-
-#ifndef CONTROLPOTMETER_H
-#define CONTROLPOTMETER_H
+#pragma once
#include "preferences/usersettings.h"
#include "control/controlobject.h"
-/**
- *@author Tue and Ken Haste Andersen
- */
-
class ControlPushButton;
class ControlProxy;
@@ -97,5 +75,3 @@ class ControlPotmeter : public ControlObject {
bool m_bAllowOutOfBounds;
PotmeterControls m_controls;
};
-
-#endif
diff --git a/src/control/controlproxy.cpp b/src/control/controlproxy.cpp
index 5ca1f04630..51e7876f1a 100644
--- a/src/control/controlproxy.cpp
+++ b/src/control/controlproxy.cpp
@@ -1,7 +1,9 @@
+#include "control/controlproxy.h"
+
#include <QtDebug>
-#include "control/controlproxy.h"
#include "control/control.h"
+#include "moc_controlproxy.cpp"
ControlProxy::ControlProxy(const QString& g, const QString& i, QObject* pParent, ControlFlags flags)
: ControlProxy(ConfigKey(g, i), pParent, flags) {
diff --git a/src/control/controlproxy.h b/src/control/controlproxy.h
index e86fc08670..4eab2fa38d 100644
--- a/src/control/controlproxy.h
+++ b/src/control/controlproxy.h
@@ -1,5 +1,4 @@
-#ifndef CONTROLPROXY_H
-#define CONTROLPROXY_H
+#pragma once
#include <QObject>
#include <QSharedPointer>
@@ -207,5 +206,3 @@ class ControlProxy : public QObject {
// Pointer to connected control.
QSharedPointer<ControlDoublePrivate> m_pControl;
};
-
-#endif // CONTROLPROXY_H
diff --git a/src/control/controlpushbutton.cpp b/src/control/controlpushbutton.cpp
index 29c4e9dd9b..1a3b2a1f3b 100644
--- a/src/control/controlpushbutton.cpp
+++ b/src/control/controlpushbutton.cpp
@@ -1,22 +1,7 @@
-/***************************************************************************
- controlpushbutton.cpp - description
- -------------------
- begin : Wed Feb 20 2002
- copyright : (C) 2002 by Tue and Ken Haste Andersen
- email :
-***************************************************************************/
-
-/***************************************************************************
-* *
-* This program is free software; you can redistribute it and/or modify *
-* it under the terms of the GNU General Public License as published by *
-* the Free Software Foundation; either version 2 of the License, or *
-* (at your option) any later version. *
-* *
-***************************************************************************/
-
#include "control/controlpushbutton.h"
+#include "moc_controlpushbutton.cpp"
+
/* -------- ------------------------------------------------------
Purpose: Creates a new simulated latching push-button.
Input: key - Key for the configuration file
diff --git a/src/control/controlttrotary.cpp b/src/control/controlttrotary.cpp
index 930c8c48d6..4247d78d8f 100644
--- a/src/control/controlttrotary.cpp
+++ b/src/control/controlttrotary.cpp
@@ -1,21 +1,7 @@
-/***************************************************************************
- controlttrotary.cpp - description
- -------------------
- copyright : (C) 2002 by Tue and Ken Haste Andersen
- email :
-***************************************************************************/
-
-/***************************************************************************
-* *
-* This program is free software; you can redistribute it and/or modify *
-* it under the terms of the GNU General Public License as published by *
-* the Free Software Foundation; either version 2 of the License, or *
-* (at your option) any later version. *
-* *
-***************************************************************************/
-
#include "control/controlttrotary.h"
+#include "moc_controlttrotary.cpp"
+
/* -------- ------------------------------------------------------
Purpose: Creates a new rotary encoder
Input: key
diff --git a/src/control/controlttrotary.h b/src/control/controlttrotary.h
index 59ba41eeb2..ee132fed30 100644
--- a/src/control/controlttrotary.h
+++ b/src/control/controlttrotary.h
@@ -1,21 +1,4 @@
-/***************************************************************************
- controlttrotary.h - description
- -------------------
- copyright : (C) 2002 by Tue and Ken Haste Andersen
- email :
- ***************************************************************************/
-
-/***************************************************************************
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- ***************************************************************************/
-
-#ifndef CONTROLTTROTARY_H
-#define CONTROLTTROTARY_H
+#pragma once
#include "preferences/usersettings.h"
#include "control/controlobject.h"
@@ -25,5 +8,3 @@ class ControlTTRotary : public ControlObject {
public:
ControlTTRotary(const ConfigKey& key);
};
-
-#endif