|
KSeExpr 6.0.0.0
|
Base class for all controls for Expressions. More...
#include <ExprControl.h>
Public Slots | |
| void | linkStateChange (int state) |
Signals | |
| void | controlChanged (int id) |
| void | linkColorEdited (int id, QColor color) |
| void | linkColorLink (int id) |
Public Member Functions | |
| ExprControl (int id, Editable *editable, bool showColorLink) | |
| ~ExprControl () override=default | |
| virtual QColor | getColor () |
| Interface for getting the color (used for linked color picking) | |
| virtual void | setColor (QColor) |
| Interface for setting the color (used for linked color picking) | |
| void | linkDisconnect (int newId) |
Protected Member Functions | |
| void | resizeEvent (QResizeEvent *event) override |
Protected Attributes | |
| int | _id |
| std::atomic< bool > | _updating {} |
| QHBoxLayout * | hbox {nullptr} |
| QCheckBox * | _colorLinkCB {nullptr} |
| QLabel * | _label {nullptr} |
| Editable * | _editable {nullptr} |
Base class for all controls for Expressions.
Definition at line 24 of file ExprControl.h.
| ExprControl::ExprControl | ( | int | id, |
| Editable * | editable, | ||
| bool | showColorLink | ||
| ) |
Definition at line 165 of file ExprControl.cpp.
References _colorLinkCB, _editable, _label, hbox, linkStateChange(), and Editable::name.
|
overridedefault |
|
signal |
|
inlinevirtual |
Interface for getting the color (used for linked color picking)
Reimplemented in VectorControl, and CCurveControl.
Definition at line 42 of file ExprControl.h.
Referenced by linkStateChange().
|
signal |
Referenced by linkStateChange(), and VectorControl::sliderChanged().
|
signal |
Referenced by linkStateChange().
| void ExprControl::linkDisconnect | ( | int | newId | ) |
Definition at line 216 of file ExprControl.cpp.
References _colorLinkCB, _id, and _updating.
|
slot |
Definition at line 203 of file ExprControl.cpp.
References _id, _updating, getColor(), linkColorEdited(), and linkColorLink().
Referenced by ExprControl().
|
overrideprotected |
Definition at line 196 of file ExprControl.cpp.
References _editable, _label, and Editable::name.
|
inlinevirtual |
Interface for setting the color (used for linked color picking)
Reimplemented in VectorControl, and CCurveControl.
Definition at line 47 of file ExprControl.h.
|
protected |
Definition at line 32 of file ExprControl.h.
Referenced by ExprControl(), and linkDisconnect().
|
protected |
Definition at line 35 of file ExprControl.h.
Referenced by ExprControl(), and resizeEvent().
|
protected |
Definition at line 29 of file ExprControl.h.
Referenced by ColorSwatchControl::colorAdded(), ColorSwatchControl::colorChanged(), ColorSwatchControl::colorRemoved(), CurveControl::curveChanged(), CCurveControl::curveChanged(), linkDisconnect(), linkStateChange(), NumberControl::setValue(), VectorControl::setValue(), VectorControl::sliderChanged(), and StringControl::textChanged().
|
protected |
Definition at line 33 of file ExprControl.h.
Referenced by ExprControl(), resizeEvent(), and VectorControl::updateControl().
|
protected |
Definition at line 30 of file ExprControl.h.
Referenced by ColorSwatchControl::buildSwatchWidget(), ColorSwatchControl::colorAdded(), ColorSwatchControl::colorChanged(), ColorSwatchControl::colorRemoved(), NumberControl::editChanged(), VectorControl::editChanged(), linkDisconnect(), linkStateChange(), VectorControl::sliderChanged(), NumberControl::sliderChanged(), StringControl::textChanged(), NumberControl::updateControl(), and VectorControl::updateControl().
|
protected |
Definition at line 31 of file ExprControl.h.
Referenced by ColorSwatchControl::buildSwatchWidget(), CCurveControl::CCurveControl(), CurveControl::CurveControl(), ExprControl(), NumberControl::NumberControl(), StringControl::StringControl(), and VectorControl::VectorControl().