| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
#ifndef QUTEBUTTON_H |
| 24 |
#define QUTEBUTTON_H |
| 25 |
|
| 26 |
#include "qutewidget.h" |
| 27 |
|
| 28 |
class QuteButton : public QuteWidget |
| 29 |
{ |
| 30 |
Q_OBJECT |
| 31 |
public: |
| 32 |
QuteButton(QWidget *parent); |
| 33 |
|
| 34 |
~QuteButton(); |
| 35 |
|
| 36 |
virtual void setValue(double value); |
| 37 |
virtual void setValue(QString text); |
| 38 |
virtual double getValue(); |
| 39 |
virtual QString getStringValue(); |
| 40 |
virtual QString getWidgetLine(); |
| 41 |
virtual QString getCabbageLine(); |
| 42 |
virtual QString getQml(); |
| 43 |
virtual QString getWidgetXmlText(); |
| 44 |
virtual QString getWidgetType(); |
| 45 |
|
| 46 |
void setText(QString text); |
| 47 |
|
| 48 |
|
| 49 |
void popUpMenu(QPoint pos); |
| 50 |
virtual void setMidiValue(int value); |
| 51 |
virtual bool acceptsMidi() {return true;} |
| 52 |
|
| 53 |
virtual void refreshWidget(); |
| 54 |
virtual void applyInternalProperties(); |
| 55 |
|
| 56 |
protected: |
| 57 |
|
| 58 |
virtual void applyProperties(); |
| 59 |
virtual void createPropertiesDialog(); |
| 60 |
|
| 61 |
private: |
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
double m_currentValue; |
| 67 |
|
| 68 |
QComboBox *typeComboBox; |
| 69 |
QCheckBox *latchCheckBox; |
| 70 |
QDoubleSpinBox *valueBox; |
| 71 |
QTextEdit *text; |
| 72 |
QLineEdit *filenameLineEdit; |
| 73 |
QLineEdit *line; |
| 74 |
QSpinBox *fontSizeSpinBox; |
| 75 |
QCheckBox * useMomentaryMidiButtonCheckBox; |
| 76 |
|
| 77 |
QIcon icon; |
| 78 |
QIcon onIcon; |
| 79 |
|
| 80 |
bool m_isPlaying; |
| 81 |
|
| 82 |
void performAction(); |
| 83 |
bool hasIndefiniteDuration(); |
| 84 |
|
| 85 |
private slots: |
| 86 |
void buttonPressed(); |
| 87 |
void buttonReleased(); |
| 88 |
void browseFile(); |
| 89 |
|
| 90 |
signals: |
| 91 |
void queueEventSignal(QString eventLine); |
| 92 |
void play(); |
| 93 |
void pause(); |
| 94 |
void stop(); |
| 95 |
void render(); |
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
}; |
| 101 |
|
| 102 |
#endif |