diff options
| author | Stijn Buys <ingar@osirion.org> | 2012-02-19 21:29:24 +0000 | 
|---|---|---|
| committer | Stijn Buys <ingar@osirion.org> | 2012-02-19 21:29:24 +0000 | 
| commit | 9e7fa49f168c4ae25d23e4858a895216e997d205 (patch) | |
| tree | 330e927dd3d6a79559ad2800d1160c5c11e499b9 /src/sidebar.h | |
| parent | 85500fcb7a8aae73da87af337e2984cc91425eb8 (diff) | |
Added a seperate class to hold entity properties.
Diffstat (limited to 'src/sidebar.h')
| -rw-r--r-- | src/sidebar.h | 18 | 
1 files changed, 15 insertions, 3 deletions
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 <QWidget>  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;  };  }  | 
