40#define NO_MULTIPLIER_NAME "No Multiplier"
52 QPushButton *close_button;
78 lbl =
new QLabel(
R__(
"Type:"));
87 eff = (
enum effect_type)(
eff + 1)) {
92 lbl =
new QLabel(
R__(
"Value:"));
104 mp_button->setToolButtonStyle(Qt::ToolButtonTextOnly);
105 mp_button->setPopupMode(QToolButton::MenuButtonPopup);
115 lbl =
new QLabel(QString::fromUtf8(
R__(
"Comment")));
121 button =
new QPushButton(QString::fromUtf8(
R__(
"Requirements")),
this);
125 button =
new QPushButton(QString::fromUtf8(
R__(
"Add Effect")),
this);
129 button =
new QPushButton(QString::fromUtf8(
R__(
"Delete Effect")),
this);
133 close_button =
new QPushButton(QString::fromUtf8(
R__(
"Close")),
this);
213 item->setSelected(
true);
244 if (
item !=
nullptr &&
item->isSelected()) {
341 nullptr,
false,
true,
false,
393 if (!
comment->text().isEmpty()) {
struct effect_list * effects
void multiplier_menu(QAction *action)
QToolButton * edit_type_button
void add_effect_to_list(struct effect *peffect, struct effect_list_fill_data *fill_data)
enum effect_filter_main_class efmc
void set_value(int value)
void closeEvent(QCloseEvent *event)
QListWidget * list_widget
struct universal * filter_get()
effect_edit(ruledit_gui *ui_in, QString target, struct universal *filter_in, enum effect_filter_main_class efmc_in)
void effect_type_menu(QAction *action)
void unregister_effect_edit(class effect_edit *e_edit)
void refresh_effect_edits()
void open_req_edit(QString target, struct requirement_vector *preqs)
static bool effect_list_fill_cb(struct effect *peffect, void *data)
#define NO_MULTIPLIER_NAME
void effect_remove(struct effect *peffect)
bool iterate_effect_cache(iec_cb cb, void *data)
struct effect * effect_new(enum effect_type type, int value, struct multiplier *pmul)
void effect_req_append(struct effect *peffect, struct requirement req)
#define effect_list_iterate_end
#define effect_list_iterate(effect_list, peffect)
#define fc_assert(condition)
const char * multiplier_rule_name(const struct multiplier *pmul)
struct multiplier * multiplier_by_rule_name(const char *name)
#define multipliers_re_active_iterate(_mul_)
#define multipliers_re_active_iterate_end
struct requirement req_from_str(const char *type, const char *range, bool survives, bool present, bool quiet, const char *value)
const char * universal_rule_name(const struct universal *psource)
const char * universal_type_rule_name(const struct universal *psource)
bool universal_is_mentioned_by_requirements(const struct requirement_vector *reqs, const struct universal *psource)
struct multiplier * multiplier
struct effect::@23 rulesave
struct requirement_vector reqs
int fc_snprintf(char *str, size_t n, const char *format,...)
int fc_strcasecmp(const char *str0, const char *str1)