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.cc18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/sidebar.cc b/src/sidebar.cc
index 9299f40..3093fc1 100644
--- a/src/sidebar.cc
+++ b/src/sidebar.cc
@@ -8,6 +8,7 @@
#include <QComboBox>
#include <QLabel>
#include <QLineEdit>
+#include <QPushButton>
#include <QTextEdit>
#include <QVBoxLayout>
#include <QSplitter>
@@ -23,13 +24,22 @@ SideBar::SideBar(QWidget *parent) : QWidget(parent)
// global vertical layout
QVBoxLayout *box_global = new QVBoxLayout();
- // zone name
+ // zone name and properties button
+ QHBoxLayout *box_zone = new QHBoxLayout();
+
label_zone = new QLabel(tr("Zone Name"));
label_zone->setAlignment(Qt::AlignHCenter);
- box_global->addWidget(label_zone);
+ button_zone = new QPushButton(tr("..."));
+
+ box_zone->addWidget(label_zone, 1);
+ box_zone->addWidget(button_zone);
+
+ box_global->addLayout(box_zone);
box_global->addSpacing(16);
+ connect(button_zone, SIGNAL(clicked()), this, SLOT(zonePropertiesButtonClicked()));
+
// entity type
QHBoxLayout *box_entitytype = new QHBoxLayout();
QLabel *label_entitytype = new QLabel(tr("type"));
@@ -194,6 +204,10 @@ SideBar::SideBar(QWidget *parent) : QWidget(parent)
setProperties(0);
}
+void SideBar::zonePropertiesButtonClicked()
+{
+ emit(zonePropertiesClicked());
+}
void SideBar::updateEntityType(const QString &value)
{