Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2012-02-19 22:11:38 +0000
committerStijn Buys <ingar@osirion.org>2012-02-19 22:11:38 +0000
commit43c292e1dda7c789a31cdb679065c75d8f8cebba (patch)
treed4ebeebe2adf53d688942f786f42fcdbc21bad1c /src/entityproperties.h
parentc3afc2172e6a272e330ae6c2a3aad377eb876ba9 (diff)
Added entity type label.
Diffstat (limited to 'src/entityproperties.h')
-rw-r--r--src/entityproperties.h17
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