From 85500fcb7a8aae73da87af337e2984cc91425eb8 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 19 Feb 2012 16:11:07 +0000 Subject: Added subsections textbox --- src/entitywidget.h | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'src/entitywidget.h') diff --git a/src/entitywidget.h b/src/entitywidget.h index 04a925b..4eaaf49 100644 --- a/src/entitywidget.h +++ b/src/entitywidget.h @@ -59,7 +59,13 @@ public: inline const QString &properties() const { return entity_properties; } - + + /** + * @brief returns the subsections string + * */ + inline const QString &subsections() const { + return entity_subsections; + } signals: /** * @brief this signal is emitted if the entity is clicked with the left mouse button @@ -103,6 +109,16 @@ public slots: * */ void add_property(const QString &key, const QString &value); + /** + * @brief add a subsection + * */ + void add_subsection(const QString &name); + + /** + * @brief add a subsection property + * */ + void add_subsection_property(const QString &key, const QString &value); + /** * @brief set the selected state * */ @@ -138,6 +154,7 @@ private: QString entity_type; QString entity_properties; + QString entity_subsections; float entity_location[3]; float entity_radius; -- cgit v1.2.3