46 QHBoxLayout *main_layout =
new QHBoxLayout(
this);
47 QGridLayout *impr_layout =
new QGridLayout();
62 label =
new QLabel(QString::fromUtf8(
R__(
"Build Cost")));
63 label->setParent(
this);
65 bcost =
new QSpinBox(
this);
66 bcost->setRange(0, 10000);
70 impr_layout->addWidget(label, row, 0);
71 impr_layout->addWidget(
bcost, row++, 1);
73 label =
new QLabel(QString::fromUtf8(
R__(
"Upkeep")));
74 label->setParent(
this);
76 upkeep =
new QSpinBox(
this);
80 impr_layout->addWidget(label, row, 0);
81 impr_layout->addWidget(
upkeep, row++, 1);
83 label =
new QLabel(QString::fromUtf8(
R__(
"Genus")));
84 label->setParent(
this);
87 genus_button->setToolButtonStyle(Qt::ToolButtonTextOnly);
88 genus_button->setPopupMode(QToolButton::MenuButtonPopup);
90 connect(menu, SIGNAL(triggered(QAction *)),
this, SLOT(
genus_menu(QAction *)));
93 menu->addAction(impr_genus_id_name(genus));
98 impr_layout->addWidget(label, row, 0);
101 label =
new QLabel(QString::fromUtf8(
R__(
"Graphics tag")));
102 label->setParent(
this);
107 impr_layout->addWidget(label, row, 0);
108 impr_layout->addWidget(
gfx_tag, row++, 1);
110 label =
new QLabel(QString::fromUtf8(
R__(
"Alt graphics tag")));
111 label->setParent(
this);
116 impr_layout->addWidget(label, row, 0);
119 label =
new QLabel(QString::fromUtf8(
R__(
"Sound tag")));
120 label->setParent(
this);
125 impr_layout->addWidget(label, row, 0);
126 impr_layout->addWidget(
sound_tag, row++, 1);
128 label =
new QLabel(QString::fromUtf8(
R__(
"Alt sound tag")));
129 label->setParent(
this);
134 impr_layout->addWidget(label, row, 0);
137 button =
new QPushButton(QString::fromUtf8(
R__(
"Helptext")),
this);
138 connect(button, SIGNAL(pressed()),
this, SLOT(
helptext()));
139 impr_layout->addWidget(button, row++, 1);
143 for (
int i = 0; i < IF_COUNT; i++) {
144 enum impr_flag_id flag = (
enum impr_flag_id)i;
145 QCheckBox *check =
new QCheckBox();
147 label =
new QLabel(impr_flag_id_name(flag));
148 flag_layout->addWidget(label, rowcount, column + 1);
161 main_layout->addLayout(impr_layout);
164 setLayout(main_layout);