49 QVBoxLayout *main_layout =
new QVBoxLayout(
this);
50 QGridLayout *terrains_layout =
new QGridLayout();
52 QPushButton *effects_button;
53 QPushButton *add_button;
54 QPushButton *delete_button;
55 QPushButton *edit_button;
66 terrains_layout->setSizeConstraint(QLayout::SetMaximumSize);
68 label =
new QLabel(QString::fromUtf8(
R__(
"Rule Name")));
69 label->setParent(
this);
70 rname =
new QLineEdit(
this);
73 terrains_layout->addWidget(label, row, 0);
74 terrains_layout->addWidget(
rname, row++, 2);
76 label =
new QLabel(QString::fromUtf8(
R__(
"Name")));
77 label->setParent(
this);
80 name =
new QLineEdit(
this);
83 terrains_layout->addWidget(label, row, 0);
84 terrains_layout->addWidget(
same_name, row, 1);
85 terrains_layout->addWidget(
name, row++, 2);
87 edit_button =
new QPushButton(QString::fromUtf8(
R__(
"Edit Values")),
this);
88 connect(edit_button, SIGNAL(pressed()),
this, SLOT(
edit_now()));
89 terrains_layout->addWidget(edit_button, row++, 2);
91 effects_button =
new QPushButton(QString::fromUtf8(
R__(
"Effects")),
this);
92 connect(effects_button, SIGNAL(pressed()),
this, SLOT(
edit_effects()));
93 terrains_layout->addWidget(effects_button, row++, 2);
95 add_button =
new QPushButton(QString::fromUtf8(
R__(
"Add Terrain")),
this);
96 connect(add_button, SIGNAL(pressed()),
this, SLOT(
add_now()));
97 terrains_layout->addWidget(add_button, row, 0);
100 delete_button =
new QPushButton(QString::fromUtf8(
R__(
"Remove this Terrain")),
this);
101 connect(delete_button, SIGNAL(pressed()),
this, SLOT(
delete_now()));
102 terrains_layout->addWidget(delete_button, row++, 2);
108 main_layout->addLayout(terrains_layout);
110 setLayout(main_layout);