45 QHBoxLayout *main_layout =
new QHBoxLayout(
this);
46 QGridLayout *tech_layout =
new QGridLayout();
60 label =
new QLabel(QString::fromUtf8(
R__(
"Cost")));
61 label->setParent(
this);
63 cost =
new QSpinBox(
this);
64 cost->setRange(0, 10000);
68 tech_layout->addWidget(label, row, 0);
69 tech_layout->addWidget(
cost, row++, 1);
71 label =
new QLabel(QString::fromUtf8(
R__(
"Graphics tag")));
72 label->setParent(
this);
77 tech_layout->addWidget(label, row, 0);
78 tech_layout->addWidget(
gfx_tag, row++, 1);
80 label =
new QLabel(QString::fromUtf8(
R__(
"Alt graphics tag")));
81 label->setParent(
this);
86 tech_layout->addWidget(label, row, 0);
89 button =
new QPushButton(QString::fromUtf8(
R__(
"Helptext")),
this);
90 connect(button, SIGNAL(pressed()),
this, SLOT(
helptext()));
91 tech_layout->addWidget(button, row++, 1);
95 for (
int i = 0; i < TF_COUNT; i++) {
96 enum tech_flag_id flag = (
enum tech_flag_id)i;
97 QCheckBox *check =
new QCheckBox();
99 label =
new QLabel(tech_flag_id_name(flag));
100 flag_layout->addWidget(label, rowcount, column + 1);
113 main_layout->addLayout(tech_layout);
116 setLayout(main_layout);