|
KSeExpr 6.0.0.0
|
#include <Editable.h>
Public Member Functions | |
| ColorSwatchEditable (const std::string &name, int startPos, int endPos) | |
| bool | parseComment (const std::string &comment) override |
| parses a comment. if false is returned then delete the control from the editable | |
| std::string | str () const override |
| void | appendString (std::stringstream &stream) const override |
| bool | controlsMatch (const Editable &other) const override |
| void | add (const KSeExpr::Vec3d &value) |
| void | change (int index, const KSeExpr::Vec3d &value) |
| void | remove (int index) |
| void | print () |
Public Member Functions inherited from Editable | |
| Editable (const std::string &name, int startPos, int endPos) | |
| Editable & | operator= (const Editable &)=default |
| Editable & | operator= (Editable &&)=default |
| Editable (const Editable &)=default | |
| Editable (Editable &&)=default | |
| void | updatePositions (const Editable &other) |
| virtual | ~Editable ()=default |
Public Attributes | |
| std::vector< KSeExpr::Vec3d > | colors |
| std::string | labelType |
Public Attributes inherited from Editable | |
| std::string | name |
| int | startPos |
| int | endPos |
Definition at line 145 of file Editable.h.
| ColorSwatchEditable::ColorSwatchEditable | ( | const std::string & | name, |
| int | startPos, | ||
| int | endPos | ||
| ) |
Definition at line 172 of file Editable.cpp.
| void ColorSwatchEditable::add | ( | const KSeExpr::Vec3d & | value | ) |
Definition at line 212 of file Editable.cpp.
References colors.
Referenced by ColorSwatchControl::colorAdded().
|
overridevirtual |
Implements Editable.
Definition at line 194 of file Editable.cpp.
References colors, and printVal().
| void ColorSwatchEditable::change | ( | int | index, |
| const KSeExpr::Vec3d & | value | ||
| ) |
Definition at line 217 of file Editable.cpp.
References colors.
Referenced by ColorSwatchControl::colorChanged().
|
overridevirtual |
|
overridevirtual |
parses a comment. if false is returned then delete the control from the editable
Implements Editable.
Definition at line 177 of file Editable.cpp.
References labelType, and KSeExpr::Utils::parseLabelComment().
| void ColorSwatchEditable::print | ( | ) |
Definition at line 227 of file Editable.cpp.
| void ColorSwatchEditable::remove | ( | int | index | ) |
Definition at line 222 of file Editable.cpp.
References colors.
Referenced by ColorSwatchControl::colorRemoved().
|
overridevirtual |
Reimplemented from Editable.
Definition at line 187 of file Editable.cpp.
References Editable::name.
| std::vector<KSeExpr::Vec3d> ColorSwatchEditable::colors |
Definition at line 148 of file Editable.h.
Referenced by add(), appendString(), ColorSwatchControl::buildSwatchWidget(), change(), ColorSwatchControl::colorAdded(), ColorSwatchControl::colorChanged(), ColorSwatchControl::colorRemoved(), controlsMatch(), print(), and remove().
| std::string ColorSwatchEditable::labelType |
Definition at line 149 of file Editable.h.
Referenced by ColorSwatchControl::ColorSwatchControl(), controlsMatch(), and parseComment().