From c3afc2172e6a272e330ae6c2a3aad377eb876ba9 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 19 Feb 2012 21:52:48 +0000 Subject: Added entity ino .ext area --- src/sidebar.cc | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'src/sidebar.cc') diff --git a/src/sidebar.cc b/src/sidebar.cc index c541f92..f3ac033 100644 --- a/src/sidebar.cc +++ b/src/sidebar.cc @@ -54,9 +54,13 @@ SideBar::SideBar(QWidget *parent) : QWidget(parent) connect(edit_entitylocation_z, SIGNAL(textChanged(const QString &)), this, SLOT(updateEntityLocationZ(const QString &))); // entity properties - QLabel *label_entityproperties = new QLabel(tr("properties")); + QLabel *label_entityproperties = new QLabel(tr("properties")); text_entityproperties = new QTextEdit(); + // entity info + QLabel *label_info = new QLabel(tr("info")); + text_info = new QTextEdit(); + // entity subsections QLabel *label_entitysubsections = new QLabel(tr("subsections")); text_subsections = new QTextEdit(); @@ -69,8 +73,13 @@ SideBar::SideBar(QWidget *parent) : QWidget(parent) box_global->addLayout(box_entitylabel); box_global->addLayout(box_entityname); box_global->addLayout(box_entitylocation); + box_global->addWidget(label_entityproperties); box_global->addWidget(text_entityproperties,1); + + box_global->addWidget(label_info); + box_global->addWidget(text_info,1); + box_global->addWidget(label_entitysubsections); box_global->addWidget(text_subsections,1); @@ -140,6 +149,10 @@ void SideBar::setProperties(EntityProperties *properties) text_subsections->setEnabled(false); text_subsections->clear(); + + text_info->setEnabled(false); + text_info->clear(); + } else { QString value; @@ -166,6 +179,9 @@ void SideBar::setProperties(EntityProperties *properties) text_subsections->setEnabled(true); text_subsections->setText(properties->subsections()); + + text_info->setEnabled(true); + text_info->setText(properties->info()); } } -- cgit v1.2.3