Computer Assited Medical Intervention Tool Kit  version 4.1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
QtEnumEditorFactory Class Reference

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

#include <qteditorfactory.h>

Inherits QtAbstractEditorFactory< QtEnumPropertyManager >.

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)
 
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)
 
- 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

◆ createEditor()

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

◆ disconnectPropertyManager()

void QtEnumEditorFactory::disconnectPropertyManager ( QtEnumPropertyManager manager)
overrideprotectedvirtual

◆ 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

◆ slotSetValue()

void void void QtEnumEditorFactory::slotSetValue ( int  )
private

Referenced by createEditor().

Member Data Documentation

◆ d_ptr

QtEnumEditorFactoryPrivate* QtEnumEditorFactory::d_ptr
private

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