48 QVBoxLayout *main_layout =
new QVBoxLayout(
this);
49 QGridLayout *bldg_layout =
new QGridLayout();
51 QPushButton *add_button;
52 QPushButton *delete_button;
53 QPushButton *reqs_button;
54 QPushButton *effects_button;
55 QPushButton *edit_button;
65 bldg_layout->setSizeConstraint(QLayout::SetMaximumSize);
67 label =
new QLabel(QString::fromUtf8(
R__(
"Rule Name")));
68 label->setParent(
this);
69 rname =
new QLineEdit(
this);
72 bldg_layout->addWidget(label, 0, 0);
73 bldg_layout->addWidget(
rname, 0, 2);
75 label =
new QLabel(QString::fromUtf8(
R__(
"Name")));
76 label->setParent(
this);
79 name =
new QLineEdit(
this);
82 bldg_layout->addWidget(label, 1, 0);
84 bldg_layout->addWidget(
name, 1, 2);
86 edit_button =
new QPushButton(QString::fromUtf8(
R__(
"Edit Values")),
this);
87 connect(edit_button, SIGNAL(pressed()),
this, SLOT(
edit_now()));
88 bldg_layout->addWidget(edit_button, 2, 2);
90 reqs_button =
new QPushButton(QString::fromUtf8(
R__(
"Requirements")),
this);
91 connect(reqs_button, SIGNAL(pressed()),
this, SLOT(
edit_reqs()));
92 bldg_layout->addWidget(reqs_button, 3, 2);
94 effects_button =
new QPushButton(QString::fromUtf8(
R__(
"Effects")),
this);
95 connect(effects_button, SIGNAL(pressed()),
this, SLOT(
edit_effects()));
96 bldg_layout->addWidget(effects_button, 4, 2);
98 add_button =
new QPushButton(QString::fromUtf8(
R__(
"Add Building")),
this);
99 connect(add_button, SIGNAL(pressed()),
this, SLOT(
add_now2()));
100 bldg_layout->addWidget(add_button, 5, 0);
103 delete_button =
new QPushButton(QString::fromUtf8(
R__(
"Remove this Building")),
this);
104 connect(delete_button, SIGNAL(pressed()),
this, SLOT(
delete_now()));
105 bldg_layout->addWidget(delete_button, 5, 2);
111 main_layout->addLayout(bldg_layout);
113 setLayout(main_layout);