From 43c292e1dda7c789a31cdb679065c75d8f8cebba Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 19 Feb 2012 22:11:38 +0000 Subject: Added entity type label. --- src/entityproperties.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'src/entityproperties.h') diff --git a/src/entityproperties.h b/src/entityproperties.h index 9ea38b5..6189309 100644 --- a/src/entityproperties.h +++ b/src/entityproperties.h @@ -24,6 +24,13 @@ public: /* ---- inspectors ---- */ + /** + * @brief returns the type string of this object + * */ + inline const QString & type() const { + return properties_type; + } + /** * @brief returns the object radius * */ @@ -49,7 +56,14 @@ public: * @brief add a value key pair to the subsection string of this object * */ void add_subsection_value(const QString &key, const QString &value); - + + /** + * @brief set the type string of this object + * */ + inline void set_type(const QString &type) { + properties_type = type; + } + /** * @brief set the object radius * */ @@ -61,6 +75,7 @@ private: float properties_radius; QString properties_subsections; + QString properties_type; }; } // namespace editor -- cgit v1.2.3