Computer Assited Medical Intervention Tool Kit
version 4.1
|
Inherits QtAbstractEditorFactory< DecoratedDoublePropertyManager >.
Public Member Functions | |
DecoratedDoubleSpinBoxFactory (QObject *parent=0) | |
~DecoratedDoubleSpinBoxFactory () | |
Public Member Functions inherited from QtAbstractEditorFactory< DecoratedDoublePropertyManager > | |
void | addPropertyManager (DecoratedDoublePropertyManager *manager) |
QWidget * | createEditor (QtProperty *property, QWidget *parent) |
DecoratedDoublePropertyManager * | propertyManager (QtProperty *property) const |
QSet< DecoratedDoublePropertyManager *> | propertyManagers () const |
QtAbstractEditorFactory (QObject *parent) | |
void | removePropertyManager (DecoratedDoublePropertyManager *manager) |
Protected Member Functions | |
void | connectPropertyManager (DecoratedDoublePropertyManager *manager) |
QWidget * | createEditor (DecoratedDoublePropertyManager *manager, QtProperty *property, QWidget *parent) |
void | disconnectPropertyManager (DecoratedDoublePropertyManager *manager) |
Protected Member Functions inherited from QtAbstractEditorFactory< DecoratedDoublePropertyManager > | |
void | managerDestroyed (QObject *manager) |
Protected Member Functions inherited from QtAbstractEditorFactoryBase | |
QtAbstractEditorFactoryBase (QObject *parent=nullptr) | |
Private Slots | |
void | slotEditorDestroyed (QObject *object) |
void | slotPrefixChanged (QtProperty *property, const QString &prefix) |
void | slotSuffixChanged (QtProperty *property, const QString &prefix) |
Private Attributes | |
QMap< QtProperty *, QList< QDoubleSpinBox * > > | createdEditors |
QMap< QDoubleSpinBox *, QtProperty * > | editorToProperty |
QtDoubleSpinBoxFactory * | originalFactory |
Additional Inherited Members | |
Protected Slots inherited from QtAbstractEditorFactoryBase |
DecoratedDoubleSpinBoxFactory::DecoratedDoubleSpinBoxFactory | ( | QObject * | parent = 0 | ) |
References originalFactory.
Referenced by main().
DecoratedDoubleSpinBoxFactory::~DecoratedDoubleSpinBoxFactory | ( | ) |
|
protectedvirtual |
Connects this factory to the given manager's signals. The PropertyManager type is a template argument class, and represents the chosen QtAbstractPropertyManager subclass.
This function is used internally by the addPropertyManager() function, and makes it possible to update an editing widget when the associated property's data changes. This is typically done in custom slots responding to the signals emitted by the property's manager, e.g. QtIntPropertyManager::valueChanged() and QtIntPropertyManager::rangeChanged().
Implements QtAbstractEditorFactory< DecoratedDoublePropertyManager >.
References QtAbstractEditorFactory< PropertyManager >::addPropertyManager(), originalFactory, slotPrefixChanged(), and slotSuffixChanged().
|
protectedvirtual |
Creates an editing widget with the given parent for the specified property created by the given manager. The PropertyManager type is a template argument class, and represents the chosen QtAbstractPropertyManager subclass.
This function must be implemented in derived classes: It is recommended to store a pointer to the widget and map it to the given property, since the widget must be updated whenever the associated property's data changes. This is typically done in custom slots responding to the signals emitted by the property's manager, e.g. QtIntPropertyManager::valueChanged() and QtIntPropertyManager::rangeChanged().
Implements QtAbstractEditorFactory< DecoratedDoublePropertyManager >.
References createdEditors, QtAbstractEditorFactoryBase::createEditor(), editorToProperty, originalFactory, DecoratedDoublePropertyManager::prefix(), and DecoratedDoublePropertyManager::suffix().
|
protectedvirtual |
Disconnects this factory from the given manager's signals. The PropertyManager type is a template argument class, and represents the chosen QtAbstractPropertyManager subclass.
This function is used internally by the removePropertyManager() function.
Implements QtAbstractEditorFactory< DecoratedDoublePropertyManager >.
References originalFactory, QtAbstractEditorFactory< PropertyManager >::removePropertyManager(), slotPrefixChanged(), and slotSuffixChanged().
|
privateslot |
References createdEditors, and editorToProperty.
|
privateslot |
References createdEditors, and QtAbstractEditorFactory< DecoratedDoublePropertyManager >::propertyManager().
Referenced by connectPropertyManager(), and disconnectPropertyManager().
|
privateslot |
References createdEditors, and QtAbstractEditorFactory< DecoratedDoublePropertyManager >::propertyManager().
Referenced by connectPropertyManager(), and disconnectPropertyManager().
|
private |
Referenced by createEditor(), slotEditorDestroyed(), slotPrefixChanged(), and slotSuffixChanged().
|
private |
Referenced by createEditor(), and slotEditorDestroyed().
|
private |
Referenced by connectPropertyManager(), createEditor(), DecoratedDoubleSpinBoxFactory(), and disconnectPropertyManager().