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 21:29:24 +0000
committerStijn Buys <ingar@osirion.org>2012-02-19 21:29:24 +0000
commit9e7fa49f168c4ae25d23e4858a895216e997d205 (patch)
tree330e927dd3d6a79559ad2800d1160c5c11e499b9 /src/sidebar.h
parent85500fcb7a8aae73da87af337e2984cc91425eb8 (diff)
Added a seperate class to hold entity properties.
Diffstat (limited to 'src/sidebar.h')
-rw-r--r--src/sidebar.h18
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;
};
}