Computer Assited Medical Intervention Tool Kit  version 5.0
DecoratedDoubleSpinBoxFactory Class Reference
+ Inheritance diagram for DecoratedDoubleSpinBoxFactory:
+ Collaboration diagram for DecoratedDoubleSpinBoxFactory:

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) override
 
DecoratedDoublePropertyManagerpropertyManager (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) override
 
- 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
 
QtDoubleSpinBoxFactoryoriginalFactory
 

Additional Inherited Members

- Protected Slots inherited from QtAbstractEditorFactoryBase

Constructor & Destructor Documentation

◆ DecoratedDoubleSpinBoxFactory()

DecoratedDoubleSpinBoxFactory::DecoratedDoubleSpinBoxFactory ( QObject *  parent = 0)

References originalFactory.

◆ ~DecoratedDoubleSpinBoxFactory()

DecoratedDoubleSpinBoxFactory::~DecoratedDoubleSpinBoxFactory ( )

Member Function Documentation

◆ connectPropertyManager()

void DecoratedDoubleSpinBoxFactory::connectPropertyManager ( DecoratedDoublePropertyManager manager)
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().

See also
propertyManagers(), disconnectPropertyManager()

Implements QtAbstractEditorFactory< DecoratedDoublePropertyManager >.

References QtAbstractEditorFactory< PropertyManager >::addPropertyManager(), originalFactory, slotPrefixChanged(), and slotSuffixChanged().

+ Here is the call graph for this function:

◆ createEditor()

QWidget * DecoratedDoubleSpinBoxFactory::createEditor ( DecoratedDoublePropertyManager manager,
QtProperty property,
QWidget *  parent 
)
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().

See also
connectPropertyManager()

Implements QtAbstractEditorFactory< DecoratedDoublePropertyManager >.

References createdEditors, QtAbstractEditorFactoryBase::createEditor(), editorToProperty, originalFactory, DecoratedDoublePropertyManager::prefix(), and DecoratedDoublePropertyManager::suffix().

+ Here is the call graph for this function:

◆ disconnectPropertyManager()

void DecoratedDoubleSpinBoxFactory::disconnectPropertyManager ( DecoratedDoublePropertyManager manager)
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.

See also
propertyManagers(), connectPropertyManager()

Implements QtAbstractEditorFactory< DecoratedDoublePropertyManager >.

References originalFactory, QtAbstractEditorFactory< PropertyManager >::removePropertyManager(), slotPrefixChanged(), and slotSuffixChanged().

+ Here is the call graph for this function:

◆ slotEditorDestroyed

void DecoratedDoubleSpinBoxFactory::slotEditorDestroyed ( QObject *  object)
privateslot

References createdEditors, and editorToProperty.

◆ slotPrefixChanged

void DecoratedDoubleSpinBoxFactory::slotPrefixChanged ( QtProperty property,
const QString &  prefix 
)
privateslot

References createdEditors, and QtAbstractEditorFactory< DecoratedDoublePropertyManager >::propertyManager().

Referenced by connectPropertyManager(), and disconnectPropertyManager().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ slotSuffixChanged

void DecoratedDoubleSpinBoxFactory::slotSuffixChanged ( QtProperty property,
const QString &  prefix 
)
privateslot

References createdEditors, and QtAbstractEditorFactory< DecoratedDoublePropertyManager >::propertyManager().

Referenced by connectPropertyManager(), and disconnectPropertyManager().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ createdEditors

QMap<QtProperty*, QList<QDoubleSpinBox*> > DecoratedDoubleSpinBoxFactory::createdEditors
private

◆ editorToProperty

QMap<QDoubleSpinBox*, QtProperty*> DecoratedDoubleSpinBoxFactory::editorToProperty
private

◆ originalFactory

QtDoubleSpinBoxFactory* DecoratedDoubleSpinBoxFactory::originalFactory
private

The documentation for this class was generated from the following file: