The AbstractPropertyManager class Should take some source data in the constructor, and implement the ability to see and modify any properties of the core object.
More...
#include <abstractpropertymanager.h>
|
void | propertyChanged (QString propertyName, QVariant value) |
| propertyChanged Should be emited whenever the source data is changed from a place other than the property browser. More...
|
|
void | blankProperty (QString propertyName) |
| blankProperty More...
|
|
|
| AbstractPropertyManager () |
|
virtual void | propertyEdited (QString propertyName, QVariant value)=0 |
| propertyEdited Called from PropertyBrowser when a property is edited. Should be handled, and modify the source data as expected. More...
|
|
virtual QVector< QVector< QVariant > > | properties ()=0 |
| properties Returns a vector of all the properties. It must be ordered as follows: Must have at least three elements: 0 - A QString which is the name of the property 1 - The initial value of the property. Values can be of the types handled in propertybrowser.h 2 - A bool which says whether or not the value can be edited. There can be as many more elements as needed by the given type, for instance, a value of type float produces a spin box. Elements 3 and 4 will be considered the min and max of the box, respectivly, if they are present. Explore propertybrowser.h for more details on how different types are handled. More...
|
|
The AbstractPropertyManager class Should take some source data in the constructor, and implement the ability to see and modify any properties of the core object.
◆ AbstractPropertyManager()
AbstractPropertyManager::AbstractPropertyManager |
( |
| ) |
|
|
inline |
◆ blankProperty
void AbstractPropertyManager::blankProperty |
( |
QString |
propertyName | ) |
|
|
signal |
blankProperty
Should be emited when a property should be blanked. Mainly used with spinboxs representing multiple differing things.
Only supports: Int, Float, Double, QString
- Parameters
-
◆ properties()
virtual QVector<QVector<QVariant> > AbstractPropertyManager::properties |
( |
| ) |
|
|
pure virtual |
properties Returns a vector of all the properties. It must be ordered as follows: Must have at least three elements: 0 - A QString which is the name of the property 1 - The initial value of the property. Values can be of the types handled in propertybrowser.h 2 - A bool which says whether or not the value can be edited. There can be as many more elements as needed by the given type, for instance, a value of type float produces a spin box. Elements 3 and 4 will be considered the min and max of the box, respectivly, if they are present. Explore propertybrowser.h for more details on how different types are handled.
- Returns
Implemented in TilePropertyManager, MaterialPropertyManager, MapPropertyManager, and TileTemplatePropertyManager.
◆ propertyChanged
void AbstractPropertyManager::propertyChanged |
( |
QString |
propertyName, |
|
|
QVariant |
value |
|
) |
| |
|
signal |
propertyChanged Should be emited whenever the source data is changed from a place other than the property browser.
- Parameters
-
◆ propertyEdited()
virtual void AbstractPropertyManager::propertyEdited |
( |
QString |
propertyName, |
|
|
QVariant |
value |
|
) |
| |
|
pure virtual |
The documentation for this class was generated from the following file: