|
QCAD Application Framework
CAD Application Development and Automation.
|
Base class for property editors. More...
#include <RPropertyEditor.h>
Public Member Functions | |
| virtual void | clearEditor () |
| This method is called to signal that no properties are currently relevant. | |
| QStringList | getGroupTitles () |
| RPropertyAttributes | getPropertyAttributes (const RPropertyTypeId &propertyTypeId) |
| RPropertyAttributes | getPropertyAttributes (const QString &group, const QString &title) |
| QStringList | getPropertyTitles (const QString &group) |
| QVariant | getPropertyValue (const RPropertyTypeId &propertyTypeId) |
| QVariant | getPropertyValue (const QString &group, const QString &title) |
| int | getTypeCount (RS::EntityType type) |
| QList< RS::EntityType > | getTypes () |
| void | listPropertyChanged (RPropertyTypeId propertyTypeId, int index, QVariant propertyValue, RS::EntityType entityTypeFilter=RS::EntityAll) |
| void | propertyChanged (RPropertyTypeId propertyTypeId, QVariant propertyValue, RS::EntityType entityTypeFilter=RS::EntityAll, QVariant::Type typeHint=QVariant::Invalid) |
| RPropertyEditor () | |
| Default Constructor. | |
| virtual void | updateFromDocument (RDocument *document, bool onlyChanges, RS::EntityType entityTypeFilter=RS::EntityAll) |
| Updates the property editor to contain the properties of the property owners that are selected for editing in the given property owner container. | |
| virtual void | updateFromObject (RObject *object, RDocument *document=NULL) |
| Implements update from RPropertyListener. | |
| virtual | ~RPropertyEditor () |
| Destructor. | |
Public Member Functions inherited from RPropertyListener | |
| virtual | ~RPropertyListener () |
Protected Types | |
| typedef QMap< QString, RPropertyMap > | RPropertyGroupMap |
| group key / key,value,attributes | |
| typedef QMap< QString, QPair < QVariant, RPropertyAttributes > > | RPropertyMap |
| key / value / attributes | |
Protected Member Functions | |
| void | removeAllButThese (const QMultiMap< QString, QString > &propertyTitles) |
| Removes all but the given properties from the combined properties collected so far. | |
| virtual void | updateEditor (RObject &object, bool doUpdateGui, RDocument *document=NULL) |
| Updates the property widget to include the properties of the given property owner. | |
| virtual void | updateGui (bool onlyChanges=false, RS::EntityType entityTypeFilter=RS::EntityAll) |
| Updates the user interface of this property editor. | |
| void | updateProperty (const RPropertyTypeId &propertyTypeId, RObject &object, RDocument *document) |
| Sets the property with the given name to the given value or to 'mixed' if that property exists already with a different value. | |
Protected Attributes | |
| RPropertyGroupMap | combinedProperties |
| QMap< RS::EntityType, int > | combinedTypes |
| QStringList | groupOrder |
| bool | guiUpToDate |
| QMap< QString, QStringList > | propertyOrder |
| bool | updatesDisabled |
Base class for property editors.
Provides basic functionality that is common to any property editor implementation.
|
protected |
group key / key,value,attributes
|
protected |
key / value / attributes
| RPropertyEditor::RPropertyEditor | ( | ) |
Default Constructor.
|
virtual |
Destructor.
|
virtual |
This method is called to signal that no properties are currently relevant.
For example that no entities are selected in a document or that nothing is being drawn at the moment.
Implements RPropertyListener.
| QStringList RPropertyEditor::getGroupTitles | ( | ) |
| RPropertyAttributes RPropertyEditor::getPropertyAttributes | ( | const RPropertyTypeId & | propertyTypeId | ) |
| RPropertyAttributes RPropertyEditor::getPropertyAttributes | ( | const QString & | group, |
| const QString & | title | ||
| ) |
| QStringList RPropertyEditor::getPropertyTitles | ( | const QString & | group | ) |
| QVariant RPropertyEditor::getPropertyValue | ( | const RPropertyTypeId & | propertyTypeId | ) |
| QVariant RPropertyEditor::getPropertyValue | ( | const QString & | group, |
| const QString & | title | ||
| ) |
| int RPropertyEditor::getTypeCount | ( | RS::EntityType | type | ) |
| QList< RS::EntityType > RPropertyEditor::getTypes | ( | ) |
| void RPropertyEditor::listPropertyChanged | ( | RPropertyTypeId | propertyTypeId, |
| int | index, | ||
| QVariant | propertyValue, | ||
| RS::EntityType | entityTypeFilter = RS::EntityAll |
||
| ) |
| void RPropertyEditor::propertyChanged | ( | RPropertyTypeId | propertyTypeId, |
| QVariant | propertyValue, | ||
| RS::EntityType | entityTypeFilter = RS::EntityAll, |
||
| QVariant::Type | typeHint = QVariant::Invalid |
||
| ) |
|
protected |
Removes all but the given properties from the combined properties collected so far.
|
protectedvirtual |
Updates the property widget to include the properties of the given property owner.
|
virtual |
Updates the property editor to contain the properties of the property owners that are selected for editing in the given property owner container.
Implements RPropertyListener.
Implements update from RPropertyListener.
Implements RPropertyListener.
|
inlineprotectedvirtual |
Updates the user interface of this property editor.
This is the only part of the property editor that depends on the user interface and GUI toolkit that is available.
|
protected |
Sets the property with the given name to the given value or to 'mixed' if that property exists already with a different value.
| propertyTypeId,: | Id of the property in the format "Group|Property". |
| property,: | Value and attributes of the property. |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |