50#define SPECLIST_TAG option_dialog
51#define SPECLIST_TYPE struct option_dialog
53#define option_dialogs_iterate(pdialog) \
54 TYPED_LIST_ITERATE(struct option_dialog, option_dialogs, pdialog)
55#define option_dialogs_iterate_end LIST_ITERATE_END
148 if (
NULL != pdialog) {
161 if (
NULL != pdialog) {
174 if (
NULL != pdialog) {
545 if (
NULL != values) {
621 _(
"Select the text color"));
630 _(
"Select the background color"));
638 log_error(
"Option type %s (%d) not supported yet.",
646 log_error(
"Failed to create a widget for option %d \"%s\".",
669 if (
NULL !=
object) {
739 log_error(
"Didn't find the value %d for option \"%s\" (nb %d).",
780 &&
'\0' !=
color.foreground[0]
792 &&
'\0' !=
color.background[0]
831 log_error(
"Option type %s (%d) not supported yet.",
869 log_error(
"Option type %s (%d) not supported yet.",
913 &
iter, 0, &value, -1);
962 log_error(
"Option type %s (%d) not supported yet.",
976 if (
NULL != pdialog) {
990 if (
NULL != pdialog) {
1017 if (
NULL != pdialog) {
1031 if (
NULL != pdialog) {
1045 if (
NULL != pdialog) {
static struct fc_sockaddr_list * list
static struct ft_color ft_color_construct(const char *foreground, const char *background)
void nationset_sync_to_server(const char *nationset)
void setup_dialog(GtkWidget *shell, GtkWidget *parent)
static struct gui_dialog * shell
static void option_dialog_destroy_callback(GtkWidget *object, gpointer data)
static void color_selector_response_callback(GtkDialog *dialog, gint res, gpointer data)
static struct option_dialog * option_dialog_get(const struct option_set *poptset)
void option_gui_remove(struct option *poption)
static void option_dialog_option_refresh(struct option *poption)
void option_dialog_popdown(const struct option_set *poptset)
static void option_dialog_option_color_set(struct option *poption, struct ft_color color)
static void option_color_set_button_color(GtkButton *button, const GdkRGBA *new_color)
static void option_dialog_option_add(struct option_dialog *pdialog, struct option *poption, bool reorder_notebook)
#define option_dialogs_iterate_end
static void option_dialog_option_bitwise_set(struct option *poption, unsigned value)
static void option_dialog_destroy(struct option_dialog *pdialog)
static void option_dialog_option_bool_set(struct option *poption, bool value)
static void option_dialog_option_remove(struct option_dialog *pdialog, struct option *poption)
void option_gui_add(struct option *poption)
static void option_color_select_callback(GtkButton *button, gpointer data)
static void option_dialog_option_int_set(struct option *poption, int value)
static void option_dialog_reponse_callback(GtkDialog *dialog, gint response_id, gpointer data)
#define option_dialogs_iterate(pdialog)
static void option_gui_update_extra(struct option *poption)
static void option_apply_callback(GtkMenuItem *menuitem, gpointer data)
static void option_color_destroy_notify(gpointer data)
static void option_dialog_option_font_set(struct option *poption, const char *font)
void option_gui_update(struct option *poption)
static int option_dialog_pages_sort_func(const void *w1, const void *w2)
void option_dialog_popup(const char *name, const struct option_set *poptset)
static void option_dialog_reorder_notebook(struct option_dialog *pdialog)
static void option_dialog_option_apply(struct option *poption)
static gboolean option_button_press_callback(GtkWidget *widget, GdkEventButton *event, gpointer data)
static void option_dialog_option_reset(struct option *poption)
static void option_reset_callback(GtkMenuItem *menuitem, gpointer data)
static void option_dialog_foreach(struct option_dialog *pdialog, void(*option_action)(struct option *))
static void option_dialog_option_str_set(struct option *poption, const char *string)
static struct option_dialog_list * option_dialogs
static void option_dialog_option_enum_set(struct option *poption, int value)
static void option_refresh_callback(GtkMenuItem *menuitem, gpointer data)
void ai_fill_changed_by_server(int aifill)
static struct option_dialog * option_dialog_new(void)
#define fc_assert_ret(condition)
#define fc_assert(condition)
#define log_error(message,...)
#define fc_calloc(n, esz)
const struct strvec * option_str_values(const struct option *poption)
unsigned option_bitwise_def(const struct option *poption)
int option_int_min(const struct option *poption)
bool option_bool_def(const struct option *poption)
const char * option_font_def(const struct option *poption)
const struct option_set * server_optset
const char * option_description(const struct option *poption)
const char * option_help_text(const struct option *poption)
struct ft_color option_color_get(const struct option *poption)
int option_enum_get_int(const struct option *poption)
int option_number(const struct option *poption)
int option_category(const struct option *poption)
bool option_str_set(struct option *poption, const char *str)
const char * option_name(const struct option *poption)
int option_int_get(const struct option *poption)
bool option_color_set(struct option *poption, struct ft_color color)
bool option_bool_set(struct option *poption, bool val)
bool option_is_changeable(const struct option *poption)
void option_set_gui_data(struct option *poption, void *data)
const char * option_str_get(const struct option *poption)
void * option_get_gui_data(const struct option *poption)
bool option_enum_set_int(struct option *poption, int val)
bool option_bool_get(const struct option *poption)
int optset_category_number(const struct option_set *poptset)
enum option_type option_type(const struct option *poption)
const char * option_enum_int_to_str(const struct option *poption, int val)
const struct option_set * option_optset(const struct option *poption)
const char * option_str_def(const struct option *poption)
int option_int_max(const struct option *poption)
bool option_font_set(struct option *poption, const char *font)
void options_save(option_save_log_callback log_cb)
const struct strvec * option_bitwise_values(const struct option *poption)
bool option_bitwise_set(struct option *poption, unsigned val)
const char * option_font_get(const struct option *poption)
void desired_settable_options_update(void)
struct ft_color option_color_def(const struct option *poption)
unsigned option_bitwise_get(const struct option *poption)
int option_enum_def_int(const struct option *poption)
bool option_int_set(struct option *poption, int val)
const char * option_category_name(const struct option *poption)
int option_int_def(const struct option *poption)
#define options_iterate(poptset, poption)
#define options_iterate_end
const char * strvec_get(const struct strvec *psv, size_t svindex)
size_t strvec_size(const struct strvec *psv)
#define strvec_iterate(psv, str)
#define strvec_iterate_end
const struct option_set * poptset