itom  4.1.0
QtDoubleSpinBoxFactory Class Reference

The QtDoubleSpinBoxFactory class provides QDoubleSpinBox widgets for properties created by QtDoublePropertyManager objects. More...

Inheritance diagram for QtDoubleSpinBoxFactory:
QtAbstractEditorFactory< QtDoublePropertyManager > QtAbstractEditorFactoryBase

Public Member Functions

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

Protected Member Functions

void connectPropertyManager (QtDoublePropertyManager *manager)
 
QWidget * createEditor (QtDoublePropertyManager *manager, QtProperty *property, QWidget *parent)
 
void disconnectPropertyManager (QtDoublePropertyManager *manager)
 
- Protected Member Functions inherited from QtAbstractEditorFactory< QtDoublePropertyManager >
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 *, double)) Q_PRIVATE_SLOT(d_func()
 
void slotRangeChanged (QtProperty *, double, double)) Q_PRIVATE_SLOT(d_func()
 
void void slotSingleStepChanged (QtProperty *, double)) Q_PRIVATE_SLOT(d_func()
 
void void void slotDecimalsChanged (QtProperty *, int)) Q_PRIVATE_SLOT(d_func()
 
void void void void slotSetValue (double)) Q_PRIVATE_SLOT(d_func()
 

Private Attributes

QtDoubleSpinBoxFactoryPrivated_ptr
 

Additional Inherited Members

- Protected Slots inherited from QtAbstractEditorFactoryBase

Detailed Description

The QtDoubleSpinBoxFactory class provides QDoubleSpinBox widgets for properties created by QtDoublePropertyManager objects.

See also
QtAbstractEditorFactory, QtDoublePropertyManager

Constructor & Destructor Documentation

QtDoubleSpinBoxFactory::QtDoubleSpinBoxFactory ( QObject *  parent = 0)

Creates a factory with the given parent.

QtDoubleSpinBoxFactory::~QtDoubleSpinBoxFactory ( )

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

Member Function Documentation

void QtDoubleSpinBoxFactory::connectPropertyManager ( QtDoublePropertyManager 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< QtDoublePropertyManager >.

QWidget * QtDoubleSpinBoxFactory::createEditor ( QtDoublePropertyManager 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< QtDoublePropertyManager >.

void QtDoubleSpinBoxFactory::disconnectPropertyManager ( QtDoublePropertyManager 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< QtDoublePropertyManager >.


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