52 QPushButton *delete_button;
54 QPushButton *effects_button;
65 bldg_layout->setSizeConstraint(QLayout::SetMaximumSize);
67 label =
new QLabel(QString::fromUtf8(
R__(
"Rule Name")));
68 label->setParent(
this);
69 rname =
new QLineEdit(
this);
75 label =
new QLabel(QString::fromUtf8(
R__(
"Name")));
76 label->setParent(
this);
79 name =
new QLineEdit(
this);
86 edit_button =
new QPushButton(QString::fromUtf8(
R__(
"Edit Values")),
this);
90 reqs_button =
new QPushButton(QString::fromUtf8(
R__(
"Requirements")),
this);
94 effects_button =
new QPushButton(QString::fromUtf8(
R__(
"Effects")),
this);
98 add_button =
new QPushButton(QString::fromUtf8(
R__(
"Add Building")),
this);
102 delete_button =
new QPushButton(QString::fromUtf8(
R__(
"Remove this Building")),
this);
142 name->setEnabled(
false);
146 name->setEnabled(
true);
152 name->setEnabled(
false);
239 if (
pimpr->helptext !=
nullptr) {
259 if (
pimpr->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 impr_type * selected
bool initialize_new_bldg(struct impr_type *pimpr)
void update_bldg_info(struct impr_type *pimpr)
tab_building(ruledit_gui *ui_in)
void same_name_toggle(bool checked)
struct impr_type * improvement_by_number(const Impr_type_id id)
const char * improvement_rule_name(const struct impr_type *pimprove)
Impr_type_id improvement_index(const struct impr_type *pimprove)
struct impr_type * improvement_by_rule_name(const char *name)
#define improvement_re_active_iterate_end
#define improvement_iterate_end
#define improvement_re_active_iterate(_p)
#define improvement_iterate(_p)
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 ruledit_qt_display_requirers(const char *msg, void *data)
void strvec_clear(struct strvec *psv)
struct packet_ruleset_control control
struct requirement_vector reqs
struct name_translation name
const struct impr_type * building
bool is_building_needed(struct impr_type *pimpr, requirers_cb cb, void *data)