Walls And Holes  1
tilepropertymanager.h
Go to the documentation of this file.
1 #ifndef TILEPROPERTYMANAGER_H
2 #define TILEPROPERTYMANAGER_H
3 
5 
6 #include "tile.h"
7 
8 #include <QVector>
9 #include <QDebug>
10 
16 {
17  Q_OBJECT
18 
19 public:
20  TilePropertyManager(QVector<Tile *> tiles);
21 
22  void propertyEdited(QString propertyName, QVariant value) override;
23 
24  QVector<QVector<QVariant>> properties() override;
25 
26 private:
27  QVector<Tile *> mTiles;
28 };
29 
30 #endif // TILEPROPERTYMANAGER_H
TilePropertyManager(QVector< Tile *> tiles)
Definition: tilepropertymanager.cpp:3
The TilePropertyManager class Property manager for a Tile.
Definition: tilepropertymanager.h:15
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: tilepropertymanager.cpp:9
QVector< QVector< QVariant > > properties() override
properties Returns a vector of all the properties. It must be ordered as follows: Must have at least ...
Definition: tilepropertymanager.cpp:35
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