51 QPushButton *effects_button;
53 QPushButton *delete_button;
64 good_layout->setSizeConstraint(QLayout::SetMaximumSize);
66 label =
new QLabel(QString::fromUtf8(
R__(
"Rule Name")));
67 label->setParent(
this);
68 rname =
new QLineEdit(
this);
74 label =
new QLabel(QString::fromUtf8(
R__(
"Name")));
75 label->setParent(
this);
78 name =
new QLineEdit(
this);
85 reqs_button =
new QPushButton(QString::fromUtf8(
R__(
"Requirements")),
this);
89 effects_button =
new QPushButton(QString::fromUtf8(
R__(
"Effects")),
this);
93 add_button =
new QPushButton(QString::fromUtf8(
R__(
"Add Good")),
this);
98 delete_button =
new QPushButton(QString::fromUtf8(
R__(
"Remove this Good")),
this);
140 name->setEnabled(
false);
144 name->setEnabled(
true);
150 name->setEnabled(
false);
232 if (
pgood->helptext !=
nullptr) {
248 if (
pgood->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 goods_type * selected
bool initialize_new_good(struct goods_type *pgood)
tab_good(ruledit_gui *ui_in)
void update_good_info(struct goods_type *pgood)
void same_name_toggle(bool checked)
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 reqs
struct name_translation name
struct goods_type * goods_by_rule_name(const char *name)
const char * goods_rule_name(struct goods_type *pgood)
Goods_type_id goods_index(const struct goods_type *pgood)
struct goods_type * goods_by_number(Goods_type_id id)
#define goods_type_iterate_end
#define goods_type_re_active_iterate_end
#define goods_type_iterate(_p)
#define goods_type_re_active_iterate(_p)
bool is_good_needed(struct goods_type *pgood, requirers_cb cb, void *data)