52 QPushButton *effects_button;
54 QPushButton *delete_button;
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 effects_button =
new QPushButton(QString::fromUtf8(
R__(
"Effects")),
this);
95 add_button =
new QPushButton(QString::fromUtf8(
R__(
"Add Terrain")),
this);
100 delete_button =
new QPushButton(QString::fromUtf8(
R__(
"Remove this Terrain")),
this);
142 name->setEnabled(
false);
146 name->setEnabled(
true);
152 name->setEnabled(
false);
238 if (
pterr->helptext !=
nullptr) {
254 if (
pterr->ruledit_disabled) {
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)
void same_name_toggle(bool checked)
tab_terrains(ruledit_gui *ui_in)
bool initialize_new_terrain(struct terrain *pterr)
struct terrain * selected
void update_terrain_info(struct terrain *pterr)
QListWidget * terrain_list
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 name_translation name
struct terrain * terrain_by_rule_name(const char *name)
Terrain_type_id terrain_index(const struct terrain *pterrain)
struct terrain * terrain_by_number(const Terrain_type_id type)
const char * terrain_rule_name(const struct terrain *pterrain)
#define terrain_type_iterate(_p)
#define terrain_re_active_iterate_end
#define terrain_re_active_iterate(_p)
#define terrain_type_iterate_end
bool is_terrain_needed(struct terrain *pterr, requirers_cb cb, void *data)