Logo Search packages:      
Sourcecode: qsapecng version File versions  Download package

Signals | Public Member Functions | Protected Member Functions | Private Attributes | Friends

QtAbstractPropertyManager Class Reference

The QtAbstractPropertyManager provides an interface for property managers. More...

Inheritance diagram for QtAbstractPropertyManager:
Inheritance graph
[legend]
Collaboration diagram for QtAbstractPropertyManager:
Collaboration graph
[legend]

List of all members.

Signals

void propertyChanged (QtProperty *property)
void propertyDestroyed (QtProperty *property)
void propertyInserted (QtProperty *property, QtProperty *parent, QtProperty *after)
void propertyRemoved (QtProperty *property, QtProperty *parent)

Public Member Functions

QtPropertyaddProperty (const QString &name=QString())
void clear () const
QSet< QtProperty * > properties () const
 QtAbstractPropertyManager (QObject *parent=0)
 ~QtAbstractPropertyManager ()

Protected Member Functions

virtual QtPropertycreateProperty ()
virtual bool hasValue (const QtProperty *property) const
virtual void initializeProperty (QtProperty *property)=0
virtual void uninitializeProperty (QtProperty *property)
virtual QIcon valueIcon (const QtProperty *property) const
virtual QString valueText (const QtProperty *property) const

Private Attributes

QtAbstractPropertyManagerPrivated_ptr

Friends

class QtProperty

Detailed Description

The QtAbstractPropertyManager provides an interface for property managers.

A manager can create and manage properties of a given type, and is used in conjunction with the QtAbstractPropertyBrowser class.

When using a property browser widget, the properties are created and managed by implementations of the QtAbstractPropertyManager class. To ensure that the properties' values will be displayed using suitable editing widgets, the managers are associated with objects of QtAbstractEditorFactory subclasses. The property browser will use these associations to determine which factories it should use to create the preferred editing widgets.

The QtAbstractPropertyManager class provides common functionality like creating a property using the addProperty() function, and retrieving the properties created by the manager using the properties() function. The class also provides signals that are emitted when the manager's properties change: propertyInserted(), propertyRemoved(), propertyChanged() and propertyDestroyed().

QtAbstractPropertyManager subclasses are supposed to provide their own type specific API. Note that several ready-made implementations are available:

QtBoolPropertyManager QtColorPropertyManager QtDatePropertyManager QtDateTimePropertyManager QtDoublePropertyManager QtEnumPropertyManager QtFlagPropertyManager QtFontPropertyManager QtGroupPropertyManager QtIntPropertyManager QtPointPropertyManager QtRectPropertyManager QtSizePropertyManager QtSizePolicyPropertyManager QtStringPropertyManager QtTimePropertyManager QtVariantPropertyManager

See also:
QtAbstractEditorFactoryBase, QtAbstractPropertyBrowser, QtProperty

Definition at line 158 of file qtpropertybrowser.h.


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

Generated by  Doxygen 1.6.0   Back to index