62 gov_layout->setSizeConstraint(QLayout::SetMaximumSize);
64 label =
new QLabel(QString::fromUtf8(
R__(
"Rule Name")));
65 label->setParent(
this);
66 rname =
new QLineEdit(
this);
72 label =
new QLabel(QString::fromUtf8(
R__(
"Name")));
73 label->setParent(
this);
76 name =
new QLineEdit(
this);
83 button =
new QPushButton(QString::fromUtf8(
R__(
"Edit Values")),
this);
87 button =
new QPushButton(QString::fromUtf8(
R__(
"Requirements")),
this);
91 button =
new QPushButton(QString::fromUtf8(
R__(
"Effects")),
this);
95 button =
new QPushButton(QString::fromUtf8(
R__(
"Add Government")),
this);
100 button =
new QPushButton(QString::fromUtf8(
R__(
"Remove this Government")),
this);
142 name->setEnabled(
false);
146 name->setEnabled(
true);
152 name->setEnabled(
false);
255 if (
pgov->helptext !=
nullptr) {
271 if (
pgov->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)
tab_gov(ruledit_gui *ui_in)
bool initialize_new_gov(struct government *pgov)
void update_gov_info(struct government *pgov)
struct government * selected
void same_name_toggle(bool checked)
struct government * government_by_number(const Government_type_id gov)
Government_type_id government_index(const struct government *pgovern)
const char * government_rule_name(const struct government *pgovern)
struct government * government_by_rule_name(const char *name)
#define governments_iterate(NAME_pgov)
#define governments_re_active_iterate(_p)
#define governments_re_active_iterate_end
#define governments_iterate_end
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 government * govern
bool is_government_needed(struct government *pgov, requirers_cb cb, void *data)