CustusX
22.04-rc5
An IGT application
|
Superclass for all data adapters. More...
#include <cxProperty.h>
Public Slots | |
virtual bool | setEnabled (bool enabled) |
Set the enabled/disabled state of the Property. More... | |
virtual bool | setAdvanced (bool advanced) |
Set the advanced flag of the adapter. More... | |
virtual bool | setGroup (QString name) |
Flag the adapter as part of a group. More... | |
Signals | |
void | changed () |
emit when the underlying data value is changed: The user interface will be updated. More... | |
Public Member Functions | |
Property () | |
virtual | ~Property () |
virtual QString | getDisplayName () const =0 |
name of data entity. Used for display to user. More... | |
virtual QString | getUid () const =0 |
virtual QVariant | getValueAsVariant () const =0 |
virtual void | setValueFromVariant (QVariant val)=0 |
virtual bool | getEnabled () const |
Get the enabled/disabled state of the Property. More... | |
virtual bool | getAdvanced () const |
Get the advanced flag of the adapter. More... | |
virtual QString | getGroup () const |
Flag the adapter as part of a group. More... | |
Static Public Member Functions | |
static PropertyPtr | findProperty (std::vector< PropertyPtr > properties, QString id) |
Protected Attributes | |
bool | mEnabled |
bool | mAdvanced |
QString | mGroup |
Superclass for all data adapters.
The Property are an abstraction mechanism that separates data values from the user interface. Properties for strings, doubles, booleans and so on publish their value in a generic manner, thus enabling us to write generic widgets for displaying and changing them.
Definition at line 43 of file cxProperty.h.
cx::Property::Property | ( | ) |
Definition at line 18 of file cxProperty.cpp.
|
inlinevirtual |
Definition at line 49 of file cxProperty.h.
|
signal |
emit when the underlying data value is changed: The user interface will be updated.
|
static |
Definition at line 23 of file cxProperty.cpp.
|
virtual |
Get the advanced flag of the adapter.
Reimplemented in cx::PropertyNull.
Definition at line 41 of file cxProperty.cpp.
|
pure virtual |
name of data entity. Used for display to user.
Implemented in cx::StringPropertyGlyphLUT, cx::StringPropertyGlyphColorArray, cx::StringPropertyGlyphOrientationArray, cx::StringPropertyImageType, cx::StringPropertyDataModality, cx::StringPropertyDataUidEditable, cx::StringPropertyDataNameEditable, cx::StringPropertyParentFrame, cx::DoublePropertyNull, cx::DoubleProperty2DLevel, cx::DoubleProperty2DWindow, cx::DoublePropertyImageTFDataAlpha, cx::DoublePropertyZDim, cx::DoublePropertyImageTFDataLLR, cx::DoublePropertyShadingSpecularPower, cx::DoubleSpanSliderAdapterNull, cx::Vector3DPropertyNull, cx::DoublePropertyYDim, cx::DoublePropertyBase, cx::DoublePropertyImageTFDataLevel, cx::DoublePropertyShadingSpecular, cx::StringPropertyBase, cx::DoublePropertyXDim, cx::DoublePropertyToolOffset, cx::DoublePropertyImageTFDataWindow, cx::StringPropertyActiveProbeConfiguration, cx::DoublePropertyShadingDiffuse, cx::StringPropertySelectRecordSession, cx::FilePathPropertyBase, cx::StringPropertySelectCoordinateSystem, cx::DoublePropertySpacing, cx::DoubleProperty, cx::BoolProperty, cx::DoublePropertyShadingAmbient, cx::DoublePairProperty, cx::Vector3DProperty, cx::StringPropertySelectTool, cx::StringProperty, cx::ColorProperty, cx::DoublePropertyActiveToolOffset, cx::Vector3DPropertyBase, cx::StringPropertyFusedInputOutputSelectData, cx::SpaceProperty, cx::StringListProperty, cx::DoublePairPropertyBase, cx::StringPropertyActiveTool, cx::Vector3DComponentProperty, cx::StringPropertyClipPlane, cx::ColorPropertyBase, cx::SelectDataStringPropertyBase, cx::SpacePropertyBase, cx::BoolPropertyBase, cx::DoublePropertyTimeCalibration, cx::StringPropertyActiveVideoSource, and cx::PropertyNull.
|
virtual |
Get the enabled/disabled state of the Property.
Reimplemented in cx::PropertyNull.
Definition at line 36 of file cxProperty.cpp.
|
virtual |
Flag the adapter as part of a group.
Reimplemented in cx::PropertyNull.
Definition at line 46 of file cxProperty.cpp.
|
pure virtual |
Implemented in cx::DoublePropertyBase, cx::StringPropertyBase, cx::FilePathPropertyBase, cx::DoubleProperty, cx::BoolProperty, cx::DoublePairProperty, cx::Vector3DProperty, cx::StringProperty, cx::SpacePropertyBase, cx::ColorProperty, cx::SpaceProperty, cx::StringListProperty, cx::FilePathProperty, and cx::PropertyNull.
|
pure virtual |
|
virtualslot |
Set the advanced flag of the adapter.
Reimplemented in cx::PropertyNull.
Definition at line 63 of file cxProperty.cpp.
|
virtualslot |
Set the enabled/disabled state of the Property.
Reimplemented in cx::PropertyNull.
Definition at line 51 of file cxProperty.cpp.
|
virtualslot |
Flag the adapter as part of a group.
Reimplemented in cx::PropertyNull.
Definition at line 74 of file cxProperty.cpp.
|
pure virtual |
|
protected |
Definition at line 74 of file cxProperty.h.
|
protected |
Definition at line 73 of file cxProperty.h.
|
protected |
Definition at line 75 of file cxProperty.h.