#include <propertylist.h>
Public Types | |
| typedef Iterator | iterator |
Signals | |
| void | propertyValueChanged (Property *property) |
| void | aboutToDeleteProperty (Property *property) |
Public Member Functions | |
| virtual MultiProperty * | operator[] (const TQString &name) |
| MultiProperty * | property (const TQString &name) |
| virtual void | addProperty (Property *property) |
| virtual void | addProperty (const TQString &group, Property *property) |
| virtual void | removeProperty (Property *property) |
| virtual void | removeProperty (const TQString &name) |
| virtual const TQValueList< TQPair< TQString, TQValueList< TQString > > > & | propertiesOfGroup () const |
| virtual const TQMap< MultiProperty *, TQString > & | groupOfProperty () const |
| virtual void | clear () |
| virtual bool | contains (const TQString &name) |
| TQPtrList< Property > | properties (const TQString &name) |
| Iterator | begin () |
| Iterator | end () |
Protected Member Functions | |
| PropertyList (bool propertyOwner) | |
| void | addToGroup (const TQString &group, MultiProperty *property) |
| void | removeFromGroup (MultiProperty *property) |
Friends | |
| class | MultiProperty |
| class | PropertyBuffer |
| class | Iterator |
Detailed Description
The list of properties.
Every object in a program should operate with properties through this list in order to:
- be informed about property changes
- allow property lists intersections
- display properties in the property editor widget (see PropertyLib::PropertyEditor).
PropertyList owns properties and deletes them itself. For a list that does not own it's properties, look at PropertyLib::PropertyBuffer class.
PropertyList is also capable of grouping properties. You can have unsorted list of groups of properties or a plain alphabetically sorted list of properties or both at the same time.
Definition at line 55 of file propertylist.h.
Member Typedef Documentation
◆ iterator
| typedef Iterator PropertyLib::PropertyList::iterator |
Definition at line 84 of file propertylist.h.
Constructor & Destructor Documentation
◆ PropertyList() [1/2]
| PropertyLib::PropertyList::PropertyList | ( | ) |
Definition at line 27 of file propertylist.cpp.
◆ ~PropertyList()
|
virtual |
Definition at line 37 of file propertylist.cpp.
◆ PropertyList() [2/2]
|
protected |
Constructs a list which owns or does not own it's properties.
Definition at line 32 of file propertylist.cpp.
Member Function Documentation
◆ aboutToDeleteProperty
|
signal |
Emitted when property is about to be deleted.
◆ addProperty() [1/2]
|
virtual |
Adds the property to the list in group.
Definition at line 76 of file propertylist.cpp.
◆ addProperty() [2/2]
|
virtual |
Adds the property to the list to the "common" group.
Definition at line 58 of file propertylist.cpp.
◆ addToGroup()
|
protected |
Adds property to a group.
Definition at line 159 of file propertylist.cpp.
◆ begin()
| PropertyList::Iterator PropertyLib::PropertyList::begin | ( | ) |
Definition at line 234 of file propertylist.cpp.
◆ clear()
|
virtual |
Clears the list of properties.
Definition at line 214 of file propertylist.cpp.
◆ contains()
|
virtual |
Returns true if the list of properties contains property with given name.
Definition at line 220 of file propertylist.cpp.
◆ end()
| PropertyList::Iterator PropertyLib::PropertyList::end | ( | ) |
Definition at line 239 of file propertylist.cpp.
◆ groupOfProperty()
|
virtual |
- Returns
- the map: property - group name.
Definition at line 154 of file propertylist.cpp.
◆ operator[]()
|
virtual |
Accesses a property by it's name.
All property modifications are allowed trough this method. For example, to set a value of a property, use: /code PropertyList list; ... list["My Property"]->setValue("My Value"); /endcode
- Returns
- MultiProperty with given name.
Definition at line 42 of file propertylist.cpp.
◆ properties()
| TQPtrList< Property > PropertyLib::PropertyList::properties | ( | const TQString & | name | ) |
The list of properties with given name.
Definition at line 227 of file propertylist.cpp.
◆ propertiesOfGroup()
|
virtual |
- Returns
- the list of grouped properties.
Definition at line 149 of file propertylist.cpp.
◆ property()
| MultiProperty * PropertyLib::PropertyList::property | ( | const TQString & | name | ) |
Accesses a property by it's name.
All property modifications are allowed trough this method. For example, to set a value of a property
Definition at line 50 of file propertylist.cpp.
◆ propertyValueChanged
|
signal |
Emitted when the value of the property is changed.
◆ removeFromGroup()
|
protected |
Removes property from a group.
Definition at line 194 of file propertylist.cpp.
◆ removeProperty() [1/2]
|
virtual |
Removes property with the given name from the list.
Emits aboutToDeleteProperty before removing.
Definition at line 120 of file propertylist.cpp.
◆ removeProperty() [2/2]
|
virtual |
Removes property from the list.
Emits aboutToDeleteProperty before removing.
Definition at line 95 of file propertylist.cpp.
Friends And Related Symbol Documentation
◆ Iterator
|
friend |
Definition at line 160 of file propertylist.h.
◆ MultiProperty
|
friend |
Definition at line 158 of file propertylist.h.
◆ PropertyBuffer
|
friend |
Definition at line 159 of file propertylist.h.
The documentation for this class was generated from the following files:
Trinity API Reference