15 #include <QGridLayout>
17 #include <QToolButton>
35 QVBoxLayout *main_layout =
new QVBoxLayout(
this);
36 QGridLayout *unit_layout =
new QGridLayout();
45 label =
new QLabel(QString::fromUtf8(
R__(
"Requirement")));
46 label->setParent(
this);
55 unit_layout->addWidget(label, 0, 0);
60 main_layout->addLayout(unit_layout);
62 setLayout(main_layout);
81 an_bytes =
action->text().toUtf8();
84 if (padv !=
nullptr) {
edit_utype(ruledit_gui *ui_in, struct unit_type *utype_in)
Setup edit_utype object.
void refresh()
Refresh the information.
void req_menu(QAction *action)
User selected tech to be req of utype.
static void techs_to_menu(QMenu *fill_menu)
Fill menu with all possible tech values.
static QString tech_name(struct advance *padv)
Display name of the tech.
struct advance * require_advance
struct advance * advance_by_rule_name(const char *name)
Does a linear search of advances[].name.vernacular Returns nullptr when none match.
const char * utype_rule_name(const struct unit_type *punittype)
Return the (untranslated) rule name of the unit type.