diff options
Diffstat (limited to 'src/jalv_qt.hpp')
-rw-r--r-- | src/jalv_qt.hpp | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/src/jalv_qt.hpp b/src/jalv_qt.hpp index 30138f4..40f9af7 100644 --- a/src/jalv_qt.hpp +++ b/src/jalv_qt.hpp @@ -1,10 +1,11 @@ // Copyright 2007-2022 David Robillard <d@drobilla.net> // SPDX-License-Identifier: ISC +#include "port.h" #include "state.h" #include "types.h" -#include "lilv/lilv.h" +#include <lilv/lilv.h> #include <QAction> #include <QGroupBox> @@ -15,8 +16,6 @@ #include <map> #include <vector> -struct Port; - class QDial; class QLabel; class QWidget; @@ -42,8 +41,8 @@ private: }; struct PortContainer { - Jalv* jalv; - Port* port; + Jalv* jalv; + JalvPort* port; }; class Control final : public QGroupBox @@ -63,19 +62,19 @@ private: float getValue(); int stringWidth(const QString& str); - QDial* dial; - const LilvPlugin* plugin; - Port* port; - - QLabel* label; - QString name; - int steps; - float max{1.0f}; - float min{0.0f}; - bool isInteger{}; - bool isEnum{}; - bool isLogarithmic{}; - - std::vector<float> scalePoints; - std::map<float, const char*> scaleMap; + QDial* _dial; + Jalv* _jalv; + JalvPort* _port; + + QLabel* _label; + QString _name; + int _steps; + float _max{1.0f}; + float _min{0.0f}; + bool _isInteger{}; + bool _isEnum{}; + bool _isLogarithmic{}; + + std::vector<float> _scalePoints; + std::map<float, const char*> _scaleMap; }; |