From 9e7fa49f168c4ae25d23e4858a895216e997d205 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 19 Feb 2012 21:29:24 +0000 Subject: Added a seperate class to hold entity properties. --- src/sidebar.h | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'src/sidebar.h') diff --git a/src/sidebar.h b/src/sidebar.h index 5a20c37..05a79f0 100644 --- a/src/sidebar.h +++ b/src/sidebar.h @@ -8,6 +8,8 @@ #ifndef __INCLUDED_EDITOR_SIDEBAR__ #define __INCLUDED_EDITOR_SIDEBAR__ +#include "entityproperties.h" + #include class QLabel; @@ -31,14 +33,24 @@ class SideBar : public QWidget public: SideBar(QWidget *parent = 0); -public slots: - void setEntity(EntityWidget *entity); +public slots: + + /** + * @brief set the sidebar properties + * */ + void setProperties(EntityProperties *properties); + /** + * @brief set the zone name + * */ void setZoneName(const QString &name); private slots: + void updateEntityLocationX(const QString &value); + void updateEntityLocationY(const QString &value); + void updateEntityLocationZ(const QString &value); signals: @@ -55,7 +67,7 @@ private: QTextEdit *text_entityproperties; QTextEdit *text_subsections; - EntityWidget *last_selected; + EntityProperties *last_selected; }; } -- cgit v1.2.3