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 328 of file optiondlg.c.
|
static |
Option apply requested from menu.
Definition at line 179 of file optiondlg.c.
|
static |
Called when a button is pressed on an option.
Definition at line 196 of file optiondlg.c.
GDestroyNotify callback.
Definition at line 267 of file optiondlg.c.
Called when the user press a color button.
Definition at line 350 of file optiondlg.c.
Set the color of a button.
Definition at line 279 of file optiondlg.c.
|
static |
Destroys an option dialog.
Definition at line 432 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 492 of file optiondlg.c.
|
static |
Returns the option dialog which fit the option set.
Definition at line 252 of file optiondlg.c.
|
static |
Creates a new option dialog.
Definition at line 379 of file optiondlg.c.
|
static |
Add an option to the option dialog.
Definition at line 506 of file optiondlg.c.
Apply the option change.
Definition at line 922 of file optiondlg.c.
|
inlinestatic |
Set the enum value of the option.
Definition at line 789 of file optiondlg.c.
Set the boolean value of the option.
Definition at line 726 of file optiondlg.c.
|
inlinestatic |
Set the font value of the option.
Definition at line 815 of file optiondlg.c.
Set the enum value of the option.
Definition at line 764 of file optiondlg.c.
|
inlinestatic |
Set the font value of the option.
Definition at line 805 of file optiondlg.c.
Set the integer value of the option.
Definition at line 737 of file optiondlg.c.
Update an option in the option dialog.
Definition at line 849 of file optiondlg.c.
|
static |
Remove an option from the option dialog.
Definition at line 703 of file optiondlg.c.
Reset the option.
Definition at line 887 of file optiondlg.c.
|
inlinestatic |
Set the string value of the option.
Definition at line 747 of file optiondlg.c.
Utility for sorting the pages of an option dialog.
Definition at line 458 of file optiondlg.c.
void option_dialog_popdown | ( | const struct option_set * | poptset | ) |
Popdown the option dialog for the option set.
Definition at line 1030 of file optiondlg.c.
Popup the option dialog for the option set.
Definition at line 1016 of file optiondlg.c.
|
static |
Reorder the pages of the notebook of the option dialog.
Definition at line 470 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 1071 of file optiondlg.c.
Remove the GUI for the option.
Definition at line 1085 of file optiondlg.c.
Update the GUI for the option.
Definition at line 1057 of file optiondlg.c.
Pass on updated option values to controls outside the main option dialogs.
Definition at line 1043 of file optiondlg.c.
|
static |
Option refresh requested from menu.
Definition at line 145 of file optiondlg.c.
|
static |
Option reset requested from menu.
Definition at line 162 of file optiondlg.c.
Definition at line 69 of file optiondlg.c.
|
static |
Definition at line 58 of file optiondlg.c.