Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/sidebar.cc')
-rw-r--r--src/sidebar.cc19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/sidebar.cc b/src/sidebar.cc
index f3ac033..0a75b1b 100644
--- a/src/sidebar.cc
+++ b/src/sidebar.cc
@@ -22,11 +22,16 @@ SideBar::SideBar(QWidget *parent) : QWidget(parent)
label_zone = new QLabel(tr("Zone Name"));
label_zone->setAlignment(Qt::AlignHCenter);
+ // entity type
+ label_entitytype = new QLabel(tr("[type]"));
+ label_entitytype->setAlignment(Qt::AlignHCenter);
+
// entity label
QHBoxLayout *box_entitylabel = new QHBoxLayout();
QLabel *label_entitylabel = new QLabel(tr("label"));
- edit_entitylabel = new QLineEdit(tr("entity_label"));
+ edit_entitylabel = new QLineEdit(tr("entity_label"));
+
box_entitylabel->addWidget(label_entitylabel);
box_entitylabel->addWidget(edit_entitylabel);
@@ -70,6 +75,9 @@ SideBar::SideBar(QWidget *parent) : QWidget(parent)
box_global->addWidget(label_zone);
box_global->addSpacing(8);
+
+ box_global->addWidget(label_entitytype);
+
box_global->addLayout(box_entitylabel);
box_global->addLayout(box_entityname);
box_global->addLayout(box_entitylocation);
@@ -129,6 +137,8 @@ void SideBar::setProperties(EntityProperties *properties)
last_selected = properties;
if (!properties) {
+ label_entitytype->clear();
+
edit_entitylabel->setEnabled(false);
edit_entitylabel->clear();
@@ -155,7 +165,12 @@ void SideBar::setProperties(EntityProperties *properties)
} else {
QString value;
-
+
+ value = '[';
+ value += properties->type();
+ value += ']';
+ label_entitytype->setText(value);
+
edit_entitylabel->setEnabled(true);
edit_entitylabel->setText(properties->label());