itom  4.1.0
QtCursorEditorFactory Class Reference

The QtCursorEditorFactory class provides QComboBox widgets for properties created by QtCursorPropertyManager objects. More...

Inheritance diagram for QtCursorEditorFactory:
QtAbstractEditorFactory< QtCursorPropertyManager > QtAbstractEditorFactoryBase

Public Member Functions

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

Protected Member Functions

void connectPropertyManager (QtCursorPropertyManager *manager)
 
QWidget * createEditor (QtCursorPropertyManager *manager, QtProperty *property, QWidget *parent)
 
void disconnectPropertyManager (QtCursorPropertyManager *manager)
 
- Protected Member Functions inherited from QtAbstractEditorFactory< QtCursorPropertyManager >
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 *, const QCursor &)) Q_PRIVATE_SLOT(d_func()
 
void slotEnumChanged (QtProperty *, int)) Q_PRIVATE_SLOT(d_func()
 

Private Attributes

QtCursorEditorFactoryPrivated_ptr
 

Additional Inherited Members

- Protected Slots inherited from QtAbstractEditorFactoryBase

Detailed Description

The QtCursorEditorFactory class provides QComboBox widgets for properties created by QtCursorPropertyManager objects.

See also
QtAbstractEditorFactory, QtCursorPropertyManager

Constructor & Destructor Documentation

QtCursorEditorFactory::QtCursorEditorFactory ( QObject *  parent = 0)

Creates a factory with the given parent.

QtCursorEditorFactory::~QtCursorEditorFactory ( )

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

Member Function Documentation

void QtCursorEditorFactory::connectPropertyManager ( QtCursorPropertyManager 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< QtCursorPropertyManager >.

QWidget * QtCursorEditorFactory::createEditor ( QtCursorPropertyManager 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< QtCursorPropertyManager >.

void QtCursorEditorFactory::disconnectPropertyManager ( QtCursorPropertyManager 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< QtCursorPropertyManager >.


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