diff options
author | Stijn Buys <ingar@osirion.org> | 2012-02-19 22:11:38 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-02-19 22:11:38 +0000 |
commit | 43c292e1dda7c789a31cdb679065c75d8f8cebba (patch) | |
tree | d4ebeebe2adf53d688942f786f42fcdbc21bad1c /src/entityproperties.h | |
parent | c3afc2172e6a272e330ae6c2a3aad377eb876ba9 (diff) |
Added entity type label.
Diffstat (limited to 'src/entityproperties.h')
-rw-r--r-- | src/entityproperties.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/entityproperties.h b/src/entityproperties.h index 9ea38b5..6189309 100644 --- a/src/entityproperties.h +++ b/src/entityproperties.h @@ -25,6 +25,13 @@ public: /* ---- inspectors ---- */ /** + * @brief returns the type string of this object + * */ + inline const QString & type() const { + return properties_type; + } + + /** * @brief returns the object radius * */ inline const float radius() const { @@ -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 |