aboutsummaryrefslogtreecommitdiffstats
path: root/src/jalv_qt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/jalv_qt.cpp')
-rw-r--r--src/jalv_qt.cpp61
1 files changed, 1 insertions, 60 deletions
diff --git a/src/jalv_qt.cpp b/src/jalv_qt.cpp
index 79de303..7818a58 100644
--- a/src/jalv_qt.cpp
+++ b/src/jalv_qt.cpp
@@ -14,6 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include "jalv_qt.hpp"
#include "jalv_internal.h"
#include "lilv/lilv.h"
@@ -283,66 +284,6 @@ FlowLayout::smartSpacing(QStyle::PixelMetric pm) const
return static_cast<QLayout*>(parent)->spacing();
}
-class PresetAction : public QAction
-{
- Q_OBJECT // NOLINT
-
- public
- : PresetAction(QObject* parent, Jalv* jalv, LilvNode* preset)
- : QAction(parent)
- , _jalv(jalv)
- , _preset(preset)
- {
- connect(this, SIGNAL(triggered()), this, SLOT(presetChosen()));
- }
-
- Q_SLOT void presetChosen() { jalv_apply_preset(_jalv, _preset); }
-
-private:
- Jalv* _jalv;
- LilvNode* _preset;
-};
-
-struct PortContainer {
- Jalv* jalv;
- struct Port* port;
-};
-
-class Control : public QGroupBox
-{
- Q_OBJECT // NOLINT
-
- public : explicit Control(PortContainer portContainer, QWidget* parent);
-
- Q_SLOT void dialChanged(int value);
-
- void setValue(float value);
-
-private:
- void setRange(float min, float max);
- QString getValueLabel(float value);
- float getValue();
- int stringWidth(const QString& str);
-
- QDial* dial;
- const LilvPlugin* plugin;
- struct Port* port;
-
- QLabel* label;
- QString name;
- int steps;
- float max;
- float min;
- bool isInteger;
- bool isEnum;
- bool isLogarithmic;
-
- std::vector<float> scalePoints;
- std::map<float, const char*> scaleMap;
-};
-
-#include "jalv_qt5_meta.hpp" // IWYU pragma: keep
-
extern "C" {
int