|
Freeciv-3.1
|
#include <stdarg.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <gtk/gtk.h>#include <gdk/gdkkeysyms.h>#include "astring.h"#include "bitvector.h"#include "fcintl.h"#include "log.h"#include "mem.h"#include "rand.h"#include "support.h"#include "game.h"#include "government.h"#include "map.h"#include "packets.h"#include "player.h"#include "client_main.h"#include "climisc.h"#include "connectdlg_common.h"#include "control.h"#include "helpdata.h"#include "goto.h"#include "options.h"#include "packhand.h"#include "text.h"#include "tilespec.h"#include "chatline.h"#include "choice_dialog.h"#include "citydlg.h"#include "editprop.h"#include "graphics.h"#include "gui_main.h"#include "gui_stuff.h"#include "mapview.h"#include "plrdlg.h"#include "wldlg.h"#include "unitselect.h"#include "unitselextradlg.h"#include "dialogs.h"Go to the source code of this file.
Functions | |
| static void | create_races_dialog (struct player *pplayer) |
| static void | races_response (GtkWidget *w, gint response, gpointer data) |
| static void | races_nation_callback (GtkTreeSelection *select, gpointer data) |
| static void | races_leader_callback (void) |
| static void | races_sex_callback (GtkWidget *w, gpointer data) |
| static void | races_style_callback (GtkTreeSelection *select, gpointer data) |
| static gboolean | races_selection_func (GtkTreeSelection *select, GtkTreeModel *model, GtkTreePath *path, gboolean selected, gpointer data) |
| void | popup_notify_dialog (const char *caption, const char *headline, const char *lines) |
| static void | notify_goto_response (GtkWidget *w, gint response) |
| static void | notify_connect_msg_response (GtkWidget *w, gint response) |
| void | popup_notify_goto_dialog (const char *headline, const char *lines, const struct text_tag_list *tags, struct tile *ptile) |
| void | popup_connect_msg (const char *headline, const char *message) |
| static void | revolution_response (GtkWidget *w, gint response, gpointer data) |
| void | popup_revolution_dialog (struct government *government) |
| static void | pillage_callback (GtkWidget *dlg, gint arg) |
| void | popup_pillage_dialog (struct unit *punit, bv_extras extras) |
| void | unit_select_dialog_popup (struct tile *ptile) |
| void | unit_select_dialog_update_real (void *unused) |
| static GtkTreePath * | path_to_nation_on_list (Nation_type_id nation, GtkTreeView *list) |
| static void | select_nation_on_tab (GtkWidget *tab_list, int nation) |
| static void | sync_tabs_to_nation (int nation) |
| static void | populate_leader_list (void) |
| static void | select_nation (int nation, const char *leadername, bool is_male, int style_id) |
| static GtkWidget * | create_list_of_nations_in_group (struct nation_group *group, int index) |
| static void | create_nation_selection_lists (void) |
| void | races_update_pickable (bool nationset_change) |
| void | nationset_sync_to_server (const char *nationset) |
| static void | nationset_callback (GtkComboBox *b, gpointer data) |
| void | popup_races_dialog (struct player *pplayer) |
| void | popdown_races_dialog (void) |
| void | races_toggles_set_sensitive (void) |
| gboolean | taxrates_callback (GtkGestureClick *gesture, int n_press, double x, double y) |
| gboolean | reverse_taxrates_callback (GtkGestureClick *gesture, int n_press, double x, double y) |
| void | popup_upgrade_dialog (struct unit_list *punits) |
| void | popup_disband_dialog (struct unit_list *punits) |
| void | popdown_all_game_dialogs (void) |
| void | show_tech_gained_dialog (Tech_type_id tech) |
| void | show_tileset_error (bool fatal, const char *tset_name, const char *msg) |
| bool | handmade_scenario_warning (void) |
| void | popup_combat_info (int attacker_unit_id, int defender_unit_id, int attacker_hp, int defender_hp, bool make_att_veteran, bool make_def_veteran) |
Variables | |
| static GtkWidget * | races_shell |
| static GtkWidget * | nationsets_chooser |
| struct player * | races_player |
| static GtkWidget * | races_nation_list [MAX_NUM_NATION_GROUPS+1] |
| static GtkWidget * | races_notebook |
| static GtkWidget * | races_properties |
| static GtkWidget * | races_leader |
| static GtkWidget * | races_sex [2] |
| static GtkWidget * | races_style_list |
| static GtkTextBuffer * | races_text |
| static int | selected_nation |
| static int | selected_sex |
| static int | selected_style |
| static int | is_showing_pillage_dialog = FALSE |
|
static |
|
static |
|
static |
| bool handmade_scenario_warning | ( | void | ) |
|
static |
| void nationset_sync_to_server | ( | const char * | nationset | ) |
|
static |
|
static |
|
static |
|
static |
| void popdown_all_game_dialogs | ( | void | ) |
|
static |
| void popup_connect_msg | ( | const char * | headline, |
| const char * | message | ||
| ) |
| void popup_disband_dialog | ( | struct unit_list * | punits | ) |
| void popup_notify_dialog | ( | const char * | caption, |
| const char * | headline, | ||
| const char * | lines | ||
| ) |
| void popup_notify_goto_dialog | ( | const char * | headline, |
| const char * | lines, | ||
| const struct text_tag_list * | tags, | ||
| struct tile * | ptile | ||
| ) |
| void popup_pillage_dialog | ( | struct unit * | punit, |
| bv_extras | extras | ||
| ) |
| void popup_races_dialog | ( | struct player * | pplayer | ) |
| void popup_revolution_dialog | ( | struct government * | government | ) |
| void popup_upgrade_dialog | ( | struct unit_list * | punits | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| void races_toggles_set_sensitive | ( | void | ) |
| void races_update_pickable | ( | bool | nationset_change | ) |
| gboolean reverse_taxrates_callback | ( | GtkGestureClick * | gesture, |
| int | n_press, | ||
| double | x, | ||
| double | y | ||
| ) |
Adjust tax rates from main window
Definition at line 1454 of file dialogs.c.
Referenced by setup_widgets().
|
static |
|
static |
|
static |
| void show_tech_gained_dialog | ( | Tech_type_id | tech | ) |
| void show_tileset_error | ( | bool | fatal, |
| const char * | tset_name, | ||
| const char * | msg | ||
| ) |
|
static |
| gboolean taxrates_callback | ( | GtkGestureClick * | gesture, |
| int | n_press, | ||
| double | x, | ||
| double | y | ||
| ) |
| void unit_select_dialog_popup | ( | struct tile * | ptile | ) |
Popup unit selection dialog. It is a wrapper for the main function; see unitselect.c:unit_select_dialog_popup_main().
| void unit_select_dialog_update_real | ( | void * | unused | ) |
Update unit selection dialog. It is a wrapper for the main function; see unitselect.c:unit_select_dialog_popup_main().
|
static |