48 QPushButton *close_button;
50 QPushButton *delete_button;
66 lbl =
new QLabel(
R__(
"Type:"));
84 lbl =
new QLabel(
R__(
"Value:"));
102 lbl =
new QLabel(
R__(
"Range:"));
121 menu->addAction(
R__(
"Allows"));
122 menu->addAction(
R__(
"Prevents"));
127 add_button =
new QPushButton(QString::fromUtf8(
R__(
"Add Requirement")),
this);
131 delete_button =
new QPushButton(QString::fromUtf8(
R__(
"Delete Requirement")),
this);
135 close_button =
new QPushButton(QString::fromUtf8(
R__(
"Close")),
this);
166 item->setText(QString::fromUtf8(
buf));
179 if (
item->isSelected()) {
202 item->setSelected(
true);
253 if (
item !=
nullptr &&
item->isSelected()) {
281 data->
number->setValue(val);
282 data->
number->setVisible(
true);
285 data->
menu->addAction(value);
416 false,
true,
false, 0);
struct requirement_vector * req_vector
void req_present_menu(QAction *action)
QToolButton * edit_value_enum_button
QToolButton * edit_present_button
struct requirement selected_values
void univ_value_enum_menu(QAction *action)
void incoming_req_vec_change(const requirement_vector *vec)
void univ_value_edit(int value)
QSpinBox * edit_value_nbr_field
QToolButton * edit_range_button
void closeEvent(QCloseEvent *event)
struct requirement * selected
req_edit(ruledit_gui *ui_in, QString target, struct requirement_vector *preqs)
void req_vec_may_have_changed(const requirement_vector *vec)
QMenu * edit_value_enum_menu
void req_type_menu(QAction *action)
QToolButton * edit_type_button
void refresh_item(QListWidgetItem *item, struct requirement *preq)
void req_range_menu(QAction *action)
void unregister_req_edit(class req_edit *redit)
static void universal_value_cb(const char *value, bool current, void *cbdata)
bool req_text_insert(char *buf, size_t bufsz, struct player *pplayer, const struct requirement *preq, enum rt_verbosity verb, const char *prefix)
void universal_extraction(const struct universal *source, int *kind, int *value)
bool are_requirements_equal(const struct requirement *req1, const struct requirement *req2)
void universal_value_from_str(struct universal *source, const char *value)
struct requirement req_from_values(int type, int range, bool survives, bool present, bool quiet, int value)
const char * universal_name_translation(const struct universal *psource, char *buf, size_t bufsz)
#define universals_iterate(_univ_)
#define requirement_vector_iterate_end
#define req_range_iterate_end
#define req_range_iterate(_range_)
#define requirement_vector_iterate(req_vec, preq)
#define universals_iterate_end
QToolButton * enum_button
int fc_snprintf(char *str, size_t n, const char *format,...)
int fc_strcasecmp(const char *str0, const char *str1)
bool universal_value_initial(struct universal *src)
void universal_kind_values(struct universal *univ, univ_kind_values_cb cb, void *data)