|
KSeExpr 6.0.0.0
|
#include <Editable.h>
Public Member Functions | |
| NumberEditable (const std::string &name, int startPos, int endPos, double val) | |
| 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 |
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 | |
| double | v |
| double | min |
| double | max |
| bool | isInt |
Public Attributes inherited from Editable | |
| std::string | name |
| int | startPos |
| int | endPos |
Definition at line 53 of file Editable.h.
| NumberEditable::NumberEditable | ( | const std::string & | name, |
| int | startPos, | ||
| int | endPos, | ||
| double | val | ||
| ) |
Definition at line 37 of file Editable.cpp.
|
overridevirtual |
|
overridevirtual |
Implements Editable.
Definition at line 80 of file Editable.cpp.
References isInt, max, min, Editable::name, and v.
|
overridevirtual |
parses a comment. if false is returned then delete the control from the editable
Implements Editable.
Definition at line 46 of file Editable.cpp.
References isInt, max, min, and KSeExpr::Utils::parseRangeComment().
|
overridevirtual |
Reimplemented from Editable.
Definition at line 68 of file Editable.cpp.
References isInt, max, min, Editable::name, and v.
| bool NumberEditable::isInt |
Definition at line 58 of file Editable.h.
Referenced by controlsMatch(), NumberControl::NumberControl(), parseComment(), NumberControl::sliderChanged(), str(), and NumberControl::updateControl().
| double NumberEditable::max |
Definition at line 57 of file Editable.h.
Referenced by controlsMatch(), NumberControl::NumberControl(), parseComment(), and str().
| double NumberEditable::min |
Definition at line 57 of file Editable.h.
Referenced by controlsMatch(), NumberControl::NumberControl(), parseComment(), and str().
| double NumberEditable::v |
Definition at line 56 of file Editable.h.
Referenced by appendString(), controlsMatch(), NumberControl::setValue(), str(), and NumberControl::updateControl().