Keystrokes can now be edited per button/knob.

This commit is contained in:
Jamie Greunbaum
2024-09-18 22:10:16 -04:00
parent d418424c14
commit 02121b934d
9 changed files with 235 additions and 5 deletions
+2
View File
@@ -10,6 +10,8 @@ class QDialButton : public QRatioButton
public:
QDialButton(const quint8 &row, const quint8 &column, QWidget *parent = nullptr);
virtual Type type() const override { return QRatioButton::Type::DIAL; }
};
#endif // QDIALBUTTON_H
+2
View File
@@ -10,6 +10,8 @@ class QMacroButton : public QRatioButton
public:
QMacroButton(const quint8 &row, const quint8 &column, QWidget *parent = nullptr);
virtual Type type() const override { return QRatioButton::Type::PUSH_BUTTON; }
};
#endif // QMACROBUTTON_H
+8
View File
@@ -8,10 +8,18 @@ class QRatioButton : public QPushButton
Q_OBJECT
public:
enum class Type : quint8 {
INVALID,
PUSH_BUTTON,
DIAL
};
QRatioButton(const quint8 &row, const quint8 &column, QWidget *parent = nullptr);
virtual int heightForWidth(int w) const;
virtual Type type() const { return Type::INVALID; }
private:
void onButtonPressSignal();