Freeciv-3.2
|
#include <stdlib.h>
#include <gtk/gtk.h>
#include "log.h"
#include "mem.h"
#include "string_vector.h"
#include "options.h"
#include "colors.h"
#include "dialogs.h"
#include "gui_main.h"
#include "gui_stuff.h"
#include "pages.h"
#include "optiondlg.h"
#include "speclist.h"
Go to the source code of this file.
Data Structures | |
struct | option_dialog |
Enumerations | |
enum | { RESPONSE_CANCEL , RESPONSE_OK , RESPONSE_APPLY , RESPONSE_RESET , RESPONSE_REFRESH , RESPONSE_SAVE } |
Variables | |
static int | opt_dlog_width = -1 |
static int | opt_dlog_height = 480 |
static struct option_dialog_list * | option_dialogs = NULL |
static GtkWidget * | opt_popover = NULL |
#define option_dialogs_iterate | ( | pdialog | ) | TYPED_LIST_ITERATE(struct option_dialog, option_dialogs, pdialog) |
Definition at line 54 of file optiondlg.c.
#define option_dialogs_iterate_end LIST_ITERATE_END |
Definition at line 56 of file optiondlg.c.
#define SPECLIST_TAG option_dialog |
Definition at line 51 of file optiondlg.c.
#define SPECLIST_TYPE struct option_dialog |
Definition at line 52 of file optiondlg.c.
Enumerator | |
---|---|
RESPONSE_CANCEL | |
RESPONSE_OK | |
RESPONSE_APPLY | |
RESPONSE_RESET | |
RESPONSE_REFRESH | |
RESPONSE_SAVE |
Definition at line 61 of file optiondlg.c.
"response" signal callback.
Definition at line 334 of file optiondlg.c.
|
static |
Option apply requested from menu.
Definition at line 185 of file optiondlg.c.
|
static |
Called when a button is pressed on an option.
Definition at line 202 of file optiondlg.c.
GDestroyNotify callback.
Definition at line 273 of file optiondlg.c.
Called when the user press a color button.
Definition at line 356 of file optiondlg.c.
Set the color of a button.
Definition at line 285 of file optiondlg.c.
|
static |
Destroys an option dialog.
Definition at line 440 of file optiondlg.c.
Option dialog widget destroyed callback.
Definition at line 132 of file optiondlg.c.
|
inlinestatic |
Do an action for all options of the option dialog.
Definition at line 500 of file optiondlg.c.
|
static |
Returns the option dialog which fit the option set.
Definition at line 258 of file optiondlg.c.
|
static |
Creates a new option dialog.
Definition at line 385 of file optiondlg.c.
|
static |
Add an option to the option dialog.
Definition at line 514 of file optiondlg.c.
Apply the option change.
Definition at line 930 of file optiondlg.c.
|
inlinestatic |
Set the enum value of the option.
Definition at line 797 of file optiondlg.c.
Set the boolean value of the option.
Definition at line 734 of file optiondlg.c.
|
inlinestatic |
Set the font value of the option.
Definition at line 823 of file optiondlg.c.
Set the enum value of the option.
Definition at line 772 of file optiondlg.c.
|
inlinestatic |
Set the font value of the option.
Definition at line 813 of file optiondlg.c.
Set the integer value of the option.
Definition at line 745 of file optiondlg.c.
Update an option in the option dialog.
Definition at line 857 of file optiondlg.c.
|
static |
Remove an option from the option dialog.
Definition at line 711 of file optiondlg.c.
Reset the option.
Definition at line 895 of file optiondlg.c.
|
inlinestatic |
Set the string value of the option.
Definition at line 755 of file optiondlg.c.
Utility for sorting the pages of an option dialog.
Definition at line 466 of file optiondlg.c.
void option_dialog_popdown | ( | const struct option_set * | poptset | ) |
Popdown the option dialog for the option set.
Definition at line 1038 of file optiondlg.c.
Popup the option dialog for the option set.
Definition at line 1024 of file optiondlg.c.
|
static |
Reorder the pages of the notebook of the option dialog.
Definition at line 478 of file optiondlg.c.
|
static |
Option dialog widget response callback.
Definition at line 100 of file optiondlg.c.
Add the GUI for the option.
Definition at line 1079 of file optiondlg.c.
Remove the GUI for the option.
Definition at line 1093 of file optiondlg.c.
Update the GUI for the option.
Definition at line 1065 of file optiondlg.c.
Pass on updated option values to controls outside the main option dialogs.
Definition at line 1051 of file optiondlg.c.
|
static |
Option refresh requested from menu.
Definition at line 151 of file optiondlg.c.
|
static |
Option reset requested from menu.
Definition at line 168 of file optiondlg.c.
|
static |
Definition at line 39 of file optiondlg.c.
|
static |
Definition at line 39 of file optiondlg.c.
Definition at line 70 of file optiondlg.c.
Referenced by option_apply_callback(), option_button_press_callback(), option_refresh_callback(), and option_reset_callback().
|
static |
Definition at line 59 of file optiondlg.c.