Freeciv-3.3
|
#include <stdarg.h>
#include <stdlib.h>
#include <SDL2/SDL.h>
#include "fcintl.h"
#include "log.h"
#include "string_vector.h"
#include "fc_types.h"
#include "game.h"
#include "client_main.h"
#include "climisc.h"
#include "clinet.h"
#include "connectdlg_common.h"
#include "global_worklist.h"
#include "pages_g.h"
#include "colors.h"
#include "connectdlg.h"
#include "dialogs.h"
#include "graphics.h"
#include "gui_id.h"
#include "gui_main.h"
#include "gui_tilespec.h"
#include "helpdlg.h"
#include "mapctrl.h"
#include "mapview.h"
#include "menu.h"
#include "messagewin.h"
#include "themespec.h"
#include "widget.h"
#include "wldlg.h"
#include "optiondlg.h"
Go to the source code of this file.
Data Structures | |
struct | option_dialog_optset |
struct | option_dialog_worklist |
struct | option_dialog |
Enumerations | |
enum | option_dialog_mode { ODM_MAIN , ODM_OPTSET , ODM_WORKLIST } |
Variables | |
static struct option_dialog * | option_dialog = NULL |
struct widget * | options_button = NULL |
static bool | restore_meswin_dialog = FALSE |
Enumerator | |
---|---|
ODM_MAIN | |
ODM_OPTSET | |
ODM_WORKLIST |
Definition at line 72 of file optiondlg.c.
Callback to append a global worklist.
Definition at line 1150 of file optiondlg.c.
Referenced by option_dialog_worklist().
Apply the changes for the option category.
Definition at line 428 of file optiondlg.c.
Referenced by option_dialog_optset_category().
|
static |
Arrange the widgets. NB: end argument is excluded. End the argument list with the icons on the top, terminated by NULL.
Definition at line 127 of file optiondlg.c.
Referenced by back_callback(), option_dialog_new(), option_dialog_optset(), and option_dialog_optset_category().
Back requested.
Definition at line 239 of file optiondlg.c.
Referenced by apply_callback(), option_dialog_new(), option_dialog_popdown(), option_dialog_popup(), option_gui_add(), option_gui_remove(), and save_game_callback().
Create the client options dialog.
Definition at line 315 of file optiondlg.c.
Referenced by option_dialog_new().
Disable button to open option dialog.
Definition at line 1374 of file optiondlg.c.
Referenced by disable_main_widgets().
Client disconnect from server callback.
Definition at line 388 of file optiondlg.c.
Referenced by option_dialog_new().
Clicked on a global worklist name.
Definition at line 1092 of file optiondlg.c.
Referenced by add_new_worklist_callback(), and option_dialog_worklist().
Enable button to open option dialog.
Definition at line 1366 of file optiondlg.c.
Referenced by back_callback(), disconnect_callback(), enable_main_widgets(), init_options_button(), and show_game_page().
Free correctly the memory assigned to the enum_widget.
Definition at line 482 of file optiondlg.c.
Referenced by option_widget_new().
Open Help Browser callback
Definition at line 376 of file optiondlg.c.
Referenced by option_dialog_new().
Create button to open option dialog.
Definition at line 1382 of file optiondlg.c.
Referenced by show_game_page().
User interacted with the option dialog window.
Definition at line 226 of file optiondlg.c.
Referenced by option_dialog_new().
Dummy callback. Disable exit().
Definition at line 447 of file optiondlg.c.
Referenced by option_widget_new().
Option set category selected.
Definition at line 416 of file optiondlg.c.
Referenced by option_dialog_optset().
|
static |
Destroys an option dialog.
Definition at line 917 of file optiondlg.c.
|
static |
Return a new option dialog.
Definition at line 788 of file optiondlg.c.
Referenced by option_dialog_popup(), and popup_optiondlg().
|
static |
Initialize an option set page.
Definition at line 960 of file optiondlg.c.
|
static |
Initialize an option set category page.
Definition at line 1011 of file optiondlg.c.
Referenced by option_category_callback(), option_gui_add(), and option_gui_remove().
void option_dialog_popdown | ( | const struct option_set * | poptset | ) |
Popdown the option dialog for the option set.
Definition at line 1492 of file optiondlg.c.
Popup the option dialog for the option set.
Definition at line 1472 of file optiondlg.c.
|
static |
The Worklist Report part of Options dialog shows all the global worklists that the player has defined.
Definition at line 1223 of file optiondlg.c.
Add the GUI for the option.
Definition at line 1521 of file optiondlg.c.
Remove the GUI for the option.
Definition at line 1535 of file optiondlg.c.
Update the GUI for the option.
Definition at line 1504 of file optiondlg.c.
Apply the changes for the option.
Definition at line 717 of file optiondlg.c.
Referenced by apply_callback().
|
static |
Create a widget for the option.
Definition at line 499 of file optiondlg.c.
Referenced by option_dialog_optset_category().
Update the widget of the option.
Definition at line 646 of file optiondlg.c.
Referenced by option_gui_update().
User interacted with the option dialog button.
Definition at line 1345 of file optiondlg.c.
Referenced by init_options_button(), and popup_minimap_window().
Return the number of options of the category.
Definition at line 943 of file optiondlg.c.
Referenced by option_dialog_optset(), and option_dialog_optset_category().
Close option dialog.
Definition at line 1451 of file optiondlg.c.
Referenced by back_callback(), disconnect_callback(), exit_callback(), and popdown_all_game_dialogs().
Popup the main option menu dialog.
Definition at line 1432 of file optiondlg.c.
Referenced by option_dialog_popup(), optiondlg_callback(), and options_callback().
Option set category selected.
Definition at line 351 of file optiondlg.c.
Referenced by option_dialog_new().
Create the server options dialog.
Definition at line 327 of file optiondlg.c.
Referenced by option_dialog_new().
If the Options Dlg is open, force Worklist List contents to be updated. This function is call by exiting worklist editor to update changed worklist name in global worklist report ( Options Dlg )
Definition at line 1409 of file optiondlg.c.
Return a string vector containing all video modes.
Definition at line 455 of file optiondlg.c.
Referenced by option_widget_new().
Free correctly the memory assigned to the video_mode_widget.
Definition at line 490 of file optiondlg.c.
Referenced by option_widget_new().
Create the worklist editor.
Definition at line 339 of file optiondlg.c.
Referenced by option_dialog_new().
|
static |
Definition at line 102 of file optiondlg.c.
Definition at line 103 of file optiondlg.c.
Referenced by back_callback(), disable_options_button(), enable_options_button(), and init_options_button().
Definition at line 104 of file optiondlg.c.
Referenced by popdown_optiondlg(), and popup_optiondlg().