From 46f48143ed59eddafa86f2711f518792f362a46c Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 19 Feb 2012 13:26:32 +0000 Subject: Added text area with all entity properties, made location editable. --- src/mapentity.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/mapentity.h') 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: /** @@ -81,6 +88,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 * */ @@ -104,6 +121,8 @@ private: QString entity_name; QString entity_type; + QString entity_properties; + float entity_location[3]; float entity_radius; -- cgit v1.2.3