Property Class Reference
Property. More...
#include <property.h>
Public Member Functions | |
Property () | |
Property (int type, QString name, QString description="", QVariant value=QVariant(), bool save=true) | |
Property (QString name, QMap< QString, QString > v_correspList, QString description="", QVariant value=QVariant(), bool save=true) | |
virtual | ~Property () |
bool | operator< (const Property &prop) const |
QString | name () const |
void | setName (QString name) |
int | type () const |
void | setType (int type) |
QVariant | value () const |
void | setValue (QVariant value) |
QString | description () const |
void | setDescription (QString description) |
void | setCorrespList (QMap< QString, QString > list) |
virtual QWidget * | editorOfType (PropertyEditor *editor) |
Creates and returns the editor for this property. | |
bool | allowSaving () |
Tells if the property can be saved to a stream, xml, etc. | |
Public Attributes | |
QMap< QString, QString > | correspList |
Protected Attributes | |
int | m_type |
QString | m_name |
QString | m_description |
QVariant | m_value |
bool | m_save |
Detailed Description
Property.Contains name, type (PropertyType) and value. Value is a QVariant. Property has operator < to be able to be included in QMap<> (all objects with properties must have map<QString, Property* > propertyList or similar). Those property lists can be intersected as sets of Property by set_intersection() - STL algo function. The purpose of Property intersection is to find a common properties for various elements and then display them in a property editor.
Definition at line 67 of file property.h.
Constructor & Destructor Documentation
|
Definition at line 69 of file property.h. |
|
Definition at line 37 of file property.cpp. |
|
Definition at line 42 of file property.cpp. References ValueFromList. |
|
Definition at line 51 of file property.cpp. |
Member Function Documentation
|
Tells if the property can be saved to a stream, xml, etc. There is a possibility to use "GUI" properties that aren't stored but used only in a GUI Definition at line 55 of file property.cpp. References m_save. |
|
Definition at line 98 of file property.cpp. References m_description. |
|
Creates and returns the editor for this property.
Definition at line 108 of file property.cpp. References Boolean, Color, correspList, Double, editorOfType(), FieldName, FontName, Integer, LineStyle, List, Map, name(), String, StringList, type(), value(), and ValueFromList. Referenced by editorOfType(). |
|
Definition at line 68 of file property.cpp. References m_name. Referenced by editorOfType(), and operator<(). |
|
Definition at line 60 of file property.cpp. |
|
Definition at line 156 of file property.cpp. References correspList, and setCorrespList(). Referenced by setCorrespList(). |
|
Definition at line 103 of file property.cpp. References m_description, and setDescription(). Referenced by setDescription(). |
|
Definition at line 73 of file property.cpp. References m_name, and setName(). Referenced by setName(). |
|
Definition at line 83 of file property.cpp. References m_type, and setType(). Referenced by setType(). |
|
Definition at line 93 of file property.cpp. References m_value, and setValue(). Referenced by setValue(). |
|
Definition at line 78 of file property.cpp. References m_type. Referenced by editorOfType(), and operator<(). |
|
Definition at line 88 of file property.cpp. References m_value. Referenced by editorOfType(). |
Member Data Documentation
|
Definition at line 87 of file property.h. Referenced by editorOfType(), and setCorrespList(). |
|
Definition at line 99 of file property.h. Referenced by description(), and setDescription(). |
|
Definition at line 98 of file property.h. |
|
Definition at line 101 of file property.h. Referenced by allowSaving(). |
|
Definition at line 97 of file property.h. |
|
Definition at line 100 of file property.h. Referenced by setValue(), and value(). |
The documentation for this class was generated from the following files:
- lib/widgets/propeditor/property.h
- lib/widgets/propeditor/property.cpp