CustusX
16.5.0-rc9
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 64 of file cxProperty.h.
cx::Property::Property | ( | ) |
Definition at line 39 of file cxProperty.cpp.
|
inlinevirtual |
Definition at line 70 of file cxProperty.h.
|
signal |
emit when the underlying data value is changed: The user interface will be updated.
|
static |
Definition at line 44 of file cxProperty.cpp.
|
virtual |
Get the advanced flag of the adapter.
Reimplemented in cx::PropertyNull.
Definition at line 62 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::FilePathProperty, cx::StringPropertyActiveProbeConfiguration, cx::DoublePropertyShadingDiffuse, cx::StringPropertySelectRecordSession, 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 57 of file cxProperty.cpp.
|
virtual |
Flag the adapter as part of a group.
Reimplemented in cx::PropertyNull.
Definition at line 67 of file cxProperty.cpp.
|
pure virtual |
|
pure virtual |
|
virtualslot |
Set the advanced flag of the adapter.
Reimplemented in cx::PropertyNull.
Definition at line 84 of file cxProperty.cpp.
|
virtualslot |
Set the enabled/disabled state of the Property.
Reimplemented in cx::PropertyNull.
Definition at line 72 of file cxProperty.cpp.
|
virtualslot |
Flag the adapter as part of a group.
Reimplemented in cx::PropertyNull.
Definition at line 95 of file cxProperty.cpp.
|
pure virtual |
|
protected |
Definition at line 95 of file cxProperty.h.
|
protected |
Definition at line 94 of file cxProperty.h.
|
protected |
Definition at line 96 of file cxProperty.h.