Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
blob: 9dfa682a02b9bc5bd96e734f95cf007b94aea273 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
   sidebar.h
   This file is part of the Project::OSiRiON zone editor 
   and is distributed under the terms and conditions of 
   the GNU General Public License version 2
*/

#include <QVBoxLayout>
#include <QLabel>
#include <QLineEdit>

#include "sidebar.h"

namespace editor
{

SideBar::SideBar(QWidget *parent) : QWidget(parent)
{	
	// entity label
	QHBoxLayout 	*box_entitylabel = new QHBoxLayout();
	QLabel 		*label_entitylabel  = new QLabel(tr("label"));
	QLineEdit 	*edit_entitylabel = new QLineEdit(tr("entity_label"));		
	box_entitylabel->addWidget(label_entitylabel);
	box_entitylabel->addWidget(edit_entitylabel);
	
	// entity name
	QHBoxLayout 	*box_entityname = new QHBoxLayout();
	QLabel 		*label_entityname  = new QLabel(tr("name"));
	QLineEdit 	*edit_entityname = new QLineEdit(tr("Entity Name"));
	box_entityname->addWidget(label_entityname);
	box_entityname->addWidget(edit_entityname);
	
	// global vertical layout
	QVBoxLayout *box_global = new QVBoxLayout();
	box_global->addLayout(box_entitylabel);
	box_global->addLayout(box_entityname);
	
	setLayout(box_global);	
}

}