Walls And Holes  1
AbstractPropertyManager Class Referenceabstract

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>

Inheritance diagram for AbstractPropertyManager:
Collaboration diagram for AbstractPropertyManager:

Signals

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...
 

Public Member Functions

 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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ AbstractPropertyManager()

AbstractPropertyManager::AbstractPropertyManager ( )
inline

Member Function Documentation

◆ 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
propertyName
Here is the caller graph for this function:

◆ 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.

Here is the caller graph for this function:

◆ 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
propertyId
Here is the caller graph for this function:

◆ propertyEdited()

virtual void AbstractPropertyManager::propertyEdited ( QString  propertyName,
QVariant  value 
)
pure virtual

propertyEdited Called from PropertyBrowser when a property is edited. Should be handled, and modify the source data as expected.

Parameters
propertyName
value

Implemented in TilePropertyManager, MaterialPropertyManager, MapPropertyManager, and TileTemplatePropertyManager.


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