itom  4.1.0
QtEnumEditorFactory Class Reference

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

Inheritance diagram for QtEnumEditorFactory:
QtAbstractEditorFactory< QtEnumPropertyManager > QtAbstractEditorFactoryBase

Public Member Functions

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

Protected Member Functions

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

Private Member Functions

 Q_PRIVATE_SLOT (d_func(), void slotPropertyChanged(QtProperty *, int)) Q_PRIVATE_SLOT(d_func()
 
void slotEnumNamesChanged (QtProperty *, const QStringList &)) Q_PRIVATE_SLOT(d_func()
 
void void slotEnumIconsChanged (QtProperty *, const QMap< int, QIcon > &)) 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 ( QObject *  parent = 0)

Creates a factory with the given parent.

QtEnumEditorFactory::~QtEnumEditorFactory ( )

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

Member Function Documentation

void QtEnumEditorFactory::connectPropertyManager ( QtEnumPropertyManager 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< QtEnumPropertyManager >.

QWidget * QtEnumEditorFactory::createEditor ( QtEnumPropertyManager 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< QtEnumPropertyManager >.

void QtEnumEditorFactory::disconnectPropertyManager ( QtEnumPropertyManager 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< QtEnumPropertyManager >.


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