30#ifdef SDL2_PLAIN_INCLUDE
549 if (
NULL != values) {
616 log_error(
"Option type %s (%d) not supported yet.",
704 log_error(
"Option type %s (%d) not supported yet.",
778 log_error(
"Option type %s (%d) not supported yet.",
853 _(
"Save Local Options"),
987 for (
i = 0;
i < category_num;
i++) {
1187 window = window->
prev;
1261 _(
"Add new worklist"),
1311 0, 0, background->
theme->w - 1, background->
theme->h - 1,
enum client_states client_state(void)
void disconnect_from_server(bool leaving_sound)
void send_save_game(const char *filename)
struct global_worklist * global_worklist_by_id(int id)
const char * global_worklist_name(const struct global_worklist *pgwl)
int global_worklist_id(const struct global_worklist *pgwl)
void global_worklist_destroy(struct global_worklist *pgwl)
struct global_worklist * global_worklist_new(const char *name)
#define global_worklists_iterate(pgwl)
#define global_worklists_iterate_end
void popdown_all_game_dialogs(void)
static GtkTextBuffer * help_text
void meswin_dialog_popup(bool raise)
bool meswin_dialog_is_open(void)
void option_gui_remove(struct option *poption)
void option_dialog_popdown(const struct option_set *poptset)
static void option_dialog_destroy(struct option_dialog *pdialog)
void option_gui_add(struct option *poption)
void option_gui_update(struct option *poption)
void option_dialog_popup(const char *name, const struct option_set *poptset)
SDL_Color * get_theme_color(enum theme_color themecolor)
void nationset_changed(void)
int main_window_width(void)
struct sdl2_data main_data
SDL_Surface * create_surf(int width, int height, Uint32 flags)
int clear_surface(SDL_Surface *surf, SDL_Rect *dstrect)
void create_frame(SDL_Surface *dest, Sint16 left, Sint16 top, Sint16 width, Sint16 height, SDL_Color *pcolor)
int main_window_height(void)
#define map_rgba(format, color)
@ ID_OPTIONS_APPLY_BUTTON
@ ID_OPTIONS_CLIENT_BUTTON
@ ID_OPTIONS_WORKLIST_BUTTON
@ ID_OPTIONS_SAVE_GAME_BUTTON
@ ID_OPTIONS_HELP_BROWSER_BUTTON
@ ID_OPTIONS_SERVER_BUTTON
void force_exit_from_event_loop(void)
struct widget * selected_widget
#define PRESSED_EVENT(event)
utf8_str * copy_chars_to_utf8_str(utf8_str *pstr, const char *pchars)
#define create_utf8_from_char_fonto(string_in, fonto)
void popup_help_browser(void)
void enable_main_widgets(void)
void disable_main_widgets(void)
void dirty_sdl_rect(SDL_Rect *Rect)
struct widget * options_button
static int disconnect_callback(struct widget *pwidget)
void update_worklist_report_dialog(void)
static int save_game_callback(struct widget *pwidget)
static int optset_category_option_count(const struct option_set *poptset, int category)
static int work_lists_callback(struct widget *widget)
static void option_widget_apply(struct option *poption)
static int server_options_callback(struct widget *pwidget)
static struct option_dialog * option_dialog_new(void)
static bool restore_meswin_dialog
void enable_options_button(void)
void popdown_optiondlg(bool leave_game)
static int main_optiondlg_callback(struct widget *pwindow)
static void enum_widget_destroy(struct widget *widget)
static int edit_worklist_callback(struct widget *widget)
static int exit_callback(struct widget *pwidget)
static int client_options_callback(struct widget *pwidget)
static void video_mode_widget_destroy(struct widget *widget)
void init_options_button(void)
static int save_client_options_callback(struct widget *pwidget)
void disable_options_button(void)
static int add_new_worklist_callback(struct widget *widget)
static int back_callback(struct widget *pwidget)
static int none_callback(struct widget *widget)
void popup_optiondlg(void)
static struct widget * option_widget_new(struct option *poption, struct widget *window, bool hide)
static int help_browser_callback(struct widget *pwidget)
static int apply_callback(struct widget *widget)
static void arrange_widgets(struct widget *window, int widgets_per_row, int rows_shown, struct widget *begin, struct widget *end,...)
static void option_dialog_optset_category(struct option_dialog *pdialog, int category)
static void option_widget_update(struct option *poption)
int optiondlg_callback(struct widget *pbutton)
static int option_category_callback(struct widget *widget)
static struct strvec * video_mode_list(void)
SDL_Surface * theme_get_background(const struct theme *t, enum theme_background background)
@ COLOR_THEME_OPTIONDLG_WORKLISTLIST_FRAME
struct theme * active_theme
void popup_worklist_editor(struct city *pcity, struct global_worklist *gwl)
#define fc_assert_ret(condition)
#define fc_assert(condition)
#define fc_assert_ret_val(condition, val)
#define log_error(message,...)
#define fc_calloc(n, esz)
const struct strvec * option_str_values(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)
const char * option_enum_get_str(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 struct option_set * client_optset
const char * option_name(const struct option *poption)
int option_int_get(const struct option *poption)
bool option_bool_set(struct option *poption, bool val)
bool option_is_changeable(const struct option *poption)
bool option_video_mode_set(struct option *poption, struct video_mode mode)
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)
const struct strvec * option_enum_values(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)
bool video_mode_to_string(char *buf, size_t buf_len, struct video_mode *mode)
const struct option_set * option_optset(const struct option *poption)
struct video_mode option_video_mode_get(const struct option *poption)
const char * optset_category_name(const struct option_set *poptset, int category)
bool option_font_set(struct option *poption, const char *font)
void options_save(option_save_log_callback log_cb)
bool string_to_video_mode(const char *buf, struct video_mode *mode)
const char * option_font_get(const struct option *poption)
bool option_int_set(struct option *poption, int val)
#define options_iterate(poptset, poption)
#define options_iterate_end
void set_client_page(enum client_pages page)
bool str_to_int(const char *str, int *pint)
void strvec_destroy(struct strvec *psv)
bool strvec_set(struct strvec *psv, size_t svindex, const char *string)
void strvec_append(struct strvec *psv, const char *string)
void strvec_reserve(struct strvec *psv, size_t reserve)
const char * strvec_get(const struct strvec *psv, size_t svindex)
struct strvec * strvec_new(void)
size_t strvec_size(const struct strvec *psv)
struct widget * begin_active_widget_list
struct widget * end_widget_list
struct widget * end_active_widget_list
struct widget * active_widget_list
struct scroll_bar * scroll
struct widget * begin_widget_list
const struct option_set * poptset
struct widget * widget_list
struct widget * edited_name
struct option_dialog_optset optset
enum option_dialog_mode mode
struct widget * main_widget_list
struct option_dialog_worklist worklist
struct widget * core_widget_list
struct advanced_dialog * advanced
struct widget * begin_widget_list
const struct option_set * poptset
struct widget * end_widget_list
int fc_snprintf(char *str, size_t n, const char *format,...)
int fc_break_lines(char *str, size_t desired_len)