Freeciv-3.3
|
#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 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 53 of file optiondlg.c.
#define option_dialogs_iterate_end LIST_ITERATE_END |
Definition at line 55 of file optiondlg.c.
#define SPECLIST_TAG option_dialog |
Definition at line 50 of file optiondlg.c.
#define SPECLIST_TYPE struct option_dialog |
Definition at line 51 of file optiondlg.c.
Enumerator | |
---|---|
RESPONSE_CANCEL | |
RESPONSE_OK | |
RESPONSE_APPLY | |
RESPONSE_RESET | |
RESPONSE_REFRESH | |
RESPONSE_SAVE |
Definition at line 60 of file optiondlg.c.
"response" signal callback.
Definition at line 333 of file optiondlg.c.
|
static |
Option apply requested from menu.
Definition at line 184 of file optiondlg.c.
|
static |
Called when a button is pressed on an option.
Definition at line 201 of file optiondlg.c.
GDestroyNotify callback.
Definition at line 272 of file optiondlg.c.
Called when the user press a color button.
Definition at line 355 of file optiondlg.c.
Set the color of a button.
Definition at line 284 of file optiondlg.c.
|
static |
Destroys an option dialog.
Definition at line 439 of file optiondlg.c.
Option dialog widget destroyed callback.
Definition at line 131 of file optiondlg.c.
|
inlinestatic |
Do an action for all options of the option dialog.
Definition at line 499 of file optiondlg.c.
|
static |
Returns the option dialog which fit the option set.
Definition at line 257 of file optiondlg.c.
|
static |
Creates a new option dialog.
Definition at line 384 of file optiondlg.c.
|
static |
Add an option to the option dialog.
Definition at line 513 of file optiondlg.c.
Apply the option change.
Definition at line 929 of file optiondlg.c.
|
inlinestatic |
Set the enum value of the option.
Definition at line 796 of file optiondlg.c.
Set the boolean value of the option.
Definition at line 733 of file optiondlg.c.
|
inlinestatic |
Set the font value of the option.
Definition at line 822 of file optiondlg.c.
Set the enum value of the option.
Definition at line 771 of file optiondlg.c.
|
inlinestatic |
Set the font value of the option.
Definition at line 812 of file optiondlg.c.
Set the integer value of the option.
Definition at line 744 of file optiondlg.c.
Update an option in the option dialog.
Definition at line 856 of file optiondlg.c.
|
static |
Remove an option from the option dialog.
Definition at line 710 of file optiondlg.c.
Reset the option.
Definition at line 894 of file optiondlg.c.
|
inlinestatic |
Set the string value of the option.
Definition at line 754 of file optiondlg.c.
Utility for sorting the pages of an option dialog.
Definition at line 465 of file optiondlg.c.
void option_dialog_popdown | ( | const struct option_set * | poptset | ) |
Popdown the option dialog for the option set.
Definition at line 1037 of file optiondlg.c.
Popup the option dialog for the option set.
Definition at line 1023 of file optiondlg.c.
|
static |
Reorder the pages of the notebook of the option dialog.
Definition at line 477 of file optiondlg.c.
|
static |
Option dialog widget response callback.
Definition at line 99 of file optiondlg.c.
Add the GUI for the option.
Definition at line 1078 of file optiondlg.c.
Remove the GUI for the option.
Definition at line 1092 of file optiondlg.c.
Update the GUI for the option.
Definition at line 1064 of file optiondlg.c.
Pass on updated option values to controls outside the main option dialogs.
Definition at line 1050 of file optiondlg.c.
|
static |
Option refresh requested from menu.
Definition at line 150 of file optiondlg.c.
|
static |
Option reset requested from menu.
Definition at line 167 of file optiondlg.c.
Definition at line 69 of file optiondlg.c.
Referenced by option_apply_callback(), option_button_press_callback(), option_refresh_callback(), and option_reset_callback().
|
static |
Definition at line 58 of file optiondlg.c.