52 QPushButton *effects_button;
54 QPushButton *delete_button;
66 ach_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 label =
new QLabel(QString::fromUtf8(
R__(
"Type")));
88 label->setParent(
this);
100 type_button->setToolButtonStyle(Qt::ToolButtonTextOnly);
101 type_button->setPopupMode(QToolButton::MenuButtonPopup);
108 label =
new QLabel(QString::fromUtf8(
R__(
"Value")));
109 label->setParent(
this);
118 effects_button =
new QPushButton(QString::fromUtf8(
R__(
"Effects")),
this);
122 add_button =
new QPushButton(QString::fromUtf8(
R__(
"Add Achievement")),
this);
127 delete_button =
new QPushButton(QString::fromUtf8(
R__(
"Remove this Achievement")),
171 name->setEnabled(
false);
175 name->setEnabled(
true);
186 name->setEnabled(
false);
281 if (
pach->ruledit_disabled) {
int achievement_index(const struct achievement *pach)
struct achievement * achievement_by_number(int id)
const char * achievement_rule_name(struct achievement *pach)
struct achievement * achievement_by_rule_name(const char *name)
#define achievements_iterate_end
#define achievements_iterate(_ach_)
#define achievements_re_active_iterate(_p)
#define achievements_re_active_iterate_end
void display_msg(const char *msg)
requirers_dlg * create_requirers(const char *title)
void open_effect_edit(QString target, struct universal *uni, enum effect_filter_main_class efmc)
bool initialize_new_achievement(struct achievement *pach)
void set_value(int value)
void update_achievement_info(struct achievement *pach)
QToolButton * type_button
void same_name_toggle(bool checked)
tab_achievement(ruledit_gui *ui_in)
void select_achievement()
void edit_type(QAction *action)
struct achievement * selected
#define MAX_ACHIEVEMENT_TYPES
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)
enum achievement_type type
struct name_translation name
struct packet_ruleset_control control
int num_achievement_types
int fc_strcasecmp(const char *str0, const char *str1)
struct achievement * achievement
bool is_achievement_needed(struct achievement *pach, requirers_cb cb, void *data)