Olive
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
buttonfield.h
Go to the documentation of this file.
1 #ifndef BUTTONFIELD_H
2 #define BUTTONFIELD_H
3 
4 #include "../effectfield.h"
5 
18 class ButtonField : public EffectField
19 {
20  Q_OBJECT
21 public:
25  ButtonField(EffectRow* parent, const QString& string);
26 
40  void SetCheckable(bool c);
41 
47  virtual QWidget* CreateWidget(QWidget *existing = nullptr) override;
48 
49 public slots:
57  void SetChecked(bool c);
58 
59 signals:
65  void CheckedChanged(bool);
66 
72  void Toggled(bool);
73 
74 private:
78  bool checkable_;
79 
83  bool checked_;
84 
88  QString button_text_;
89 };
90 
91 #endif // BUTTONFIELD_H
bool checkable_
Internal button text string passed to widgets created by CreateWidget()
Definition: buttonfield.h:78
void SetChecked(bool c)
A slot for when a widget's (created and connected from CreateWidget() ) checked state is changed...
Definition: buttonfield.cpp:15
void Toggled(bool)
A signal emitted whenever the checked state of a connected widget changes.
QString button_text_
Internal button text string passed to widgets created by CreateWidget()
Definition: buttonfield.h:88
void CheckedChanged(bool)
A signal emitted whenever the field's internal checked state is changed.
The ButtonField class.
Definition: buttonfield.h:18
bool checked_
Internal checked value passed to and from widgets created by CreateWidget()
Definition: buttonfield.h:83
ButtonField(EffectRow *parent, const QString &string)
Reimplementation of EffectField::EffectField().
Definition: buttonfield.cpp:5
virtual QWidget * CreateWidget(QWidget *existing=nullptr) override
Reimplementation of EffectField::CreateWidget()
Definition: buttonfield.cpp:21
The EffectField class.
Definition: effectfield.h:56
void SetCheckable(bool c)
Set whether this pushbutton is checkable.
Definition: buttonfield.cpp:10
The EffectRow class.
Definition: effectrow.h:51