62 unit_layout->setSizeConstraint(QLayout::SetMaximumSize);
64 label =
new QLabel(QString::fromUtf8(
R__(
"Rule Name")));
65 label->setParent(
this);
66 rname =
new QLineEdit(
this);
72 label =
new QLabel(QString::fromUtf8(
R__(
"Name")));
73 label->setParent(
this);
76 name =
new QLineEdit(
this);
83 button =
new QPushButton(QString::fromUtf8(
R__(
"Edit Values")),
this);
87 button =
new QPushButton(QString::fromUtf8(
R__(
"Requirements")),
this);
91 button =
new QPushButton(QString::fromUtf8(
R__(
"Effects")),
this);
95 button =
new QPushButton(QString::fromUtf8(
R__(
"Add Unit")),
this);
100 button =
new QPushButton(QString::fromUtf8(
R__(
"Remove this Unit")),
this);
141 name->setEnabled(
false);
145 name->setEnabled(
true);
151 name->setEnabled(
false);
255 if (
ptype->helptext !=
nullptr) {
271 if (
ptype->ruledit_disabled) {
void display_msg(const char *msg)
void open_req_edit(QString target, struct requirement_vector *preqs)
requirers_dlg * create_requirers(const char *title)
void open_effect_edit(QString target, struct universal *uni, enum effect_filter_main_class efmc)
struct unit_type * selected
bool initialize_new_utype(struct unit_type *ptype)
void same_name_toggle(bool checked)
tab_unit(ruledit_gui *ui_in)
void update_utype_info(struct unit_type *ptype)
static void name_set(struct name_translation *ptrans, const char *domain, const char *vernacular_name)
static const char * untranslated_name(const struct name_translation *ptrans)
static void names_set(struct name_translation *ptrans, const char *domain, const char *vernacular_name, const char *rule_name)
void show_experimental(QWidget *wdg)
void ruledit_qt_display_requirers(const char *msg, void *data)
void strvec_clear(struct strvec *psv)
struct packet_ruleset_control control
struct requirement_vector build_reqs
struct name_translation name
const struct unit_type * utype
struct unit_type * unit_type_by_rule_name(const char *name)
const char * utype_rule_name(const struct unit_type *punittype)
struct unit_type * utype_by_number(const Unit_type_id id)
Unit_type_id utype_index(const struct unit_type *punittype)
#define unit_type_re_active_iterate(_p)
#define unit_type_iterate(_p)
#define unit_type_iterate_end
#define unit_type_re_active_iterate_end
bool is_utype_needed(struct unit_type *ptype, requirers_cb cb, void *data)