Walls And Holes  1
materialpropertymanager.h
Go to the documentation of this file.
1 #ifndef MATERIALPROPERTYMANAGER_H
2 #define MATERIALPROPERTYMANAGER_H
3 
5 #include "tilematerial.h"
6 #include "imageandsource.h"
7 
9 {
10  Q_OBJECT
11 
12 public:
14 
15  void propertyEdited(QString propertyName, QVariant value) override;
16 
17  QVector<QVector<QVariant>> properties() override;
18 
19 private slots:
20  void textureChanged(SharedImageAndSource imageAndSource);
21 
22 private:
23  TileMaterial *mMaterial;
24 };
25 
26 #endif // MATERIALPROPERTYMANAGER_H
MaterialPropertyManager(TileMaterial *material)
Definition: materialpropertymanager.cpp:6
QSharedPointer< ImageAndSource > SharedImageAndSource
Definition: imageandsource.h:8
Definition: materialpropertymanager.h:8
void propertyEdited(QString propertyName, QVariant value) override
propertyEdited Called from PropertyBrowser when a property is edited. Should be handled, and modify the source data as expected.
Definition: materialpropertymanager.cpp:15
QVector< QVector< QVariant > > properties() override
properties Returns a vector of all the properties. It must be ordered as follows: Must have at least ...
Definition: materialpropertymanager.cpp:30
Definition: tilematerial.h:8
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.
Definition: abstractpropertymanager.h:13