diff options
author | Stijn Buys <ingar@osirion.org> | 2012-02-19 13:26:32 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-02-19 13:26:32 +0000 |
commit | 46f48143ed59eddafa86f2711f518792f362a46c (patch) | |
tree | 42db107c1ea0f361bb9cdda18959a3fa6d3b84c9 /src/mapentity.h | |
parent | 8aa0a55840f02482884e29b33b770daa6028b81e (diff) |
Added text area with all entity properties, made location editable.
Diffstat (limited to 'src/mapentity.h')
-rw-r--r-- | src/mapentity.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/mapentity.h b/src/mapentity.h index f08f1b0..a7b5a3a 100644 --- a/src/mapentity.h +++ b/src/mapentity.h @@ -52,6 +52,13 @@ public: inline const float location(int index) const { return entity_location[index]; } + + /** + * @brief returns the properties string + * */ + inline const QString &properties() const { + return entity_properties; + } signals: /** @@ -82,6 +89,16 @@ public slots: void set_location(const float x, const float y, const float z); /** + * @brief set the entity properties string + * */ + void set_properties(const QString &properties); + + /** + * @brief add a property + * */ + void add_property(const QString &key, const QString &value); + + /** * @brief set the selected state * */ void set_selected(const bool selected); @@ -104,6 +121,8 @@ private: QString entity_name; QString entity_type; + QString entity_properties; + float entity_location[3]; float entity_radius; |