45 QHBoxLayout *main_layout =
new QHBoxLayout(
this);
46 QGridLayout *ter_layout =
new QGridLayout();
61 label =
new QLabel(QString::fromUtf8(
R__(
"Move Cost")));
62 label->setParent(
this);
64 mcost =
new QSpinBox(
this);
65 mcost->setRange(0, 100);
68 ter_layout->addWidget(label, row, 0);
69 ter_layout->addWidget(
mcost, row++, 1);
71 label =
new QLabel(QString::fromUtf8(
R__(
"Defense Bonus %")));
72 label->setParent(
this);
78 ter_layout->addWidget(label, row, 0);
79 ter_layout->addWidget(
defense, row++, 1);
81 label =
new QLabel(QString::fromUtf8(
R__(
"Graphics tag")));
82 label->setParent(
this);
87 ter_layout->addWidget(label, row, 0);
88 ter_layout->addWidget(
gfx_tag, row++, 1);
90 label =
new QLabel(QString::fromUtf8(
R__(
"Alt graphics tag")));
91 label->setParent(
this);
96 ter_layout->addWidget(label, row, 0);
99 button =
new QPushButton(QString::fromUtf8(
R__(
"Helptext")),
this);
100 connect(button, SIGNAL(pressed()),
this, SLOT(
helptext()));
101 ter_layout->addWidget(button, row++, 1);
103 label =
new QLabel(QString::fromUtf8(
R__(
"Native to")));
106 QCheckBox *check =
new QCheckBox();
117 for (
int i = 0; i < TER_USER_LAST; i++) {
118 enum terrain_flag_id flag = (
enum terrain_flag_id)i;
119 QCheckBox *check =
new QCheckBox();
121 label =
new QLabel(terrain_flag_id_name(flag));
122 flag_layout->addWidget(label, rowcount, column + 1);
135 main_layout->addLayout(ter_layout);
139 setLayout(main_layout);