Computer Assited Medical Intervention Tool Kit  version 5.0
QtEnumEditorFactory Class Reference

The QtEnumEditorFactory class provides QComboBox widgets for properties created by QtEnumPropertyManager objects. More...

#include <qteditorfactory.h>

+ Inheritance diagram for QtEnumEditorFactory:
+ Collaboration diagram for QtEnumEditorFactory:

Public Member Functions

 QtEnumEditorFactory (QObject *parent=nullptr)
 
 ~QtEnumEditorFactory () override
 
- Public Member Functions inherited from QtAbstractEditorFactory< QtEnumPropertyManager >
void addPropertyManager (QtEnumPropertyManager *manager)
 
QWidget * createEditor (QtProperty *property, QWidget *parent) override
 
QtEnumPropertyManagerpropertyManager (QtProperty *property) const
 
QSet< QtEnumPropertyManager * > propertyManagers () const
 
 QtAbstractEditorFactory (QObject *parent)
 
void removePropertyManager (QtEnumPropertyManager *manager)
 

Protected Member Functions

void connectPropertyManager (QtEnumPropertyManager *manager) override
 
QWidget * createEditor (QtEnumPropertyManager *manager, QtProperty *property, QWidget *parent) override
 
void disconnectPropertyManager (QtEnumPropertyManager *manager) override
 
- Protected Member Functions inherited from QtAbstractEditorFactory< QtEnumPropertyManager >
void managerDestroyed (QObject *manager) override
 
- Protected Member Functions inherited from QtAbstractEditorFactoryBase
 QtAbstractEditorFactoryBase (QObject *parent=nullptr)
 

Private Member Functions

 Q_PRIVATE_SLOT (d_func(), void slotPropertyChanged(QtProperty *, int)) Q_PRIVATE_SLOT(d_func()
 
void void slotEnumIconsChanged (QtProperty *, const QMap< int, QIcon > &)) Q_PRIVATE_SLOT(d_func()
 
void slotEnumNamesChanged (QtProperty *, const QStringList &)) Q_PRIVATE_SLOT(d_func()
 
void void void slotSetValue (int)) Q_PRIVATE_SLOT(d_func()
 

Private Attributes

QtEnumEditorFactoryPrivated_ptr
 

Additional Inherited Members

- Protected Slots inherited from QtAbstractEditorFactoryBase

Detailed Description

The QtEnumEditorFactory class provides QComboBox widgets for properties created by QtEnumPropertyManager objects.

See also
QtAbstractEditorFactory, QtEnumPropertyManager

Constructor & Destructor Documentation

◆ QtEnumEditorFactory()

QtEnumEditorFactory::QtEnumEditorFactory ( QObject *  parent = nullptr)

Creates a factory with the given parent.

References d_ptr, and QtEnumEditorFactoryPrivate::q_ptr.

◆ ~QtEnumEditorFactory()

QtEnumEditorFactory::~QtEnumEditorFactory ( )
override

Destroys this factory, and all the widgets it has created.

References d_ptr, and EditorFactoryPrivate< Editor >::m_editorToProperty.

Member Function Documentation

◆ connectPropertyManager()

void QtEnumEditorFactory::connectPropertyManager ( QtEnumPropertyManager manager)
overrideprotectedvirtual

Reimplemented from the QtAbstractEditorFactory class.

Implements QtAbstractEditorFactory< QtEnumPropertyManager >.

References slotEnumNamesChanged().

+ Here is the call graph for this function:

◆ createEditor()

QWidget * QtEnumEditorFactory::createEditor ( QtEnumPropertyManager manager,
QtProperty property,
QWidget *  parent 
)
overrideprotectedvirtual

Reimplemented from the QtAbstractEditorFactory class.

Implements QtAbstractEditorFactory< QtEnumPropertyManager >.

References EditorFactoryPrivate< Editor >::createEditor(), d_ptr, QtEnumPropertyManager::enumIcons(), QtEnumPropertyManager::enumNames(), slotSetValue(), and QtEnumPropertyManager::value().

+ Here is the call graph for this function:

◆ disconnectPropertyManager()

void QtEnumEditorFactory::disconnectPropertyManager ( QtEnumPropertyManager manager)
overrideprotectedvirtual

Reimplemented from the QtAbstractEditorFactory class.

Implements QtAbstractEditorFactory< QtEnumPropertyManager >.

References slotEnumNamesChanged().

+ Here is the call graph for this function:

◆ Q_PRIVATE_SLOT()

QtEnumEditorFactory::Q_PRIVATE_SLOT ( d_func()  ,
void   slotPropertyChangedQtProperty *, int 
)
private

◆ slotEnumIconsChanged()

void void QtEnumEditorFactory::slotEnumIconsChanged ( QtProperty ,
const QMap< int, QIcon > &   
)
private

◆ slotEnumNamesChanged()

void QtEnumEditorFactory::slotEnumNamesChanged ( QtProperty ,
const QStringList &   
)
private

Referenced by connectPropertyManager(), and disconnectPropertyManager().

+ Here is the caller graph for this function:

◆ slotSetValue()

void void void QtEnumEditorFactory::slotSetValue ( int  )
private

Referenced by createEditor().

+ Here is the caller graph for this function:

Member Data Documentation

◆ d_ptr

QtEnumEditorFactoryPrivate* QtEnumEditorFactory::d_ptr
private

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