palapeli/libpala
#include <Pala/SlicerProperty>

Public Types | |
| enum | Representation { SpinBox, Slider, DefaultRepresentation = SpinBox } |
Public Member Functions | |
| IntegerProperty (const QString &caption) | |
| virtual | ~IntegerProperty () |
| QPair< int, int > | range () const |
| Representation | representation () const |
| void | setRange (int min, int max) |
| void | setRepresentation (Representation representation) |
Public Member Functions inherited from Pala::SlicerProperty | |
| virtual | ~SlicerProperty () |
| QString | caption () const |
| QVariantList | choices () const |
| QVariant | defaultValue () const |
| bool | isAdvanced () const |
| bool | isEnabled () const |
| QByteArray | key () const |
| void | setAdvanced (bool advanced=true) |
| void | setChoices (const QVariantList &choices) |
| void | setDefaultValue (const QVariant &value) |
| void | setEnabled (bool enabled) |
| void | setKey (const QByteArray &key) |
| QVariant::Type | type () const |
Additional Inherited Members | |
Protected Member Functions inherited from Pala::SlicerProperty | |
| SlicerProperty (QVariant::Type type, const QString &caption) | |
Detailed Description
Definition at line 106 of file slicerproperty.h.
Member Enumeration Documentation
Decides how the property is represented in the user interface of Palapeli.
| Enumerator | |
|---|---|
| SpinBox | |
| Slider | |
| DefaultRepresentation | |
Definition at line 110 of file slicerproperty.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 144 of file slicerproperty.cpp.
|
virtual |
Definition at line 152 of file slicerproperty.cpp.
Member Function Documentation
| QPair< int, int > Pala::IntegerProperty::range | ( | ) | const |
Definition at line 157 of file slicerproperty.cpp.
| Pala::IntegerProperty::Representation Pala::IntegerProperty::representation | ( | ) | const |
Definition at line 162 of file slicerproperty.cpp.
| void Pala::IntegerProperty::setRange | ( | int | min, |
| int | max | ||
| ) |
Limits the user input to the selection of a number inside the given range (including the bounds).
Definition at line 167 of file slicerproperty.cpp.
| void Pala::IntegerProperty::setRepresentation | ( | Representation | representation | ) |
Decides how the property is represented in the user interface of Palapeli.
Definition at line 173 of file slicerproperty.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference
Public Member Functions inherited from