51 QPushButton *effects_button;
53 QPushButton *delete_button;
66 extra_layout->setSizeConstraint(QLayout::SetMaximumSize);
68 label =
new QLabel(QString::fromUtf8(
R__(
"Rule Name")));
69 label->setParent(
this);
70 rname =
new QLineEdit(
this);
76 label =
new QLabel(QString::fromUtf8(
R__(
"Name")));
77 label->setParent(
this);
80 name =
new QLineEdit(
this);
87 edit_button =
new QPushButton(QString::fromUtf8(
R__(
"Edit Values")),
this);
91 reqs_button =
new QPushButton(QString::fromUtf8(
R__(
"Requirements")),
this);
95 effects_button =
new QPushButton(QString::fromUtf8(
R__(
"Effects")),
this);
99 add_button =
new QPushButton(QString::fromUtf8(
R__(
"Add Extra")),
this);
104 delete_button =
new QPushButton(QString::fromUtf8(
R__(
"Remove this Extra")),
this);
146 name->setEnabled(
false);
150 name->setEnabled(
true);
156 name->setEnabled(
false);
258 if (pextra->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)
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 extra_type * extra
bool is_extra_needed(struct extra_type *pextra, requirers_cb cb, void *data)