Freeciv-3.2
|
#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 "sex.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.
This is the response callback for the action confirmation dialog.
Definition at line 1592 of file dialogs.c.
Referenced by request_action_confirmation().
|
static |
Creates a list of currently-pickable nations in the given group Inserts appropriate gtk_tree_view into races_nation_list[index] (or NULL if the group has no nations) If group == NULL, create a list of all nations
Definition at line 609 of file dialogs.c.
Referenced by create_nation_selection_lists().
Creates lists of nations for left side of nation selection dialog
Definition at line 696 of file dialogs.c.
Referenced by create_races_dialog(), and races_update_pickable().
Give a warning when user is about to edit scenario with manually set properties.
Definition at line 1573 of file dialogs.c.
Referenced by handle_game_info().
|
static |
Called when the nationset control's value has changed.
Definition at line 814 of file dialogs.c.
Referenced by create_races_dialog().
Sync nationset control with the current state of the server.
Definition at line 801 of file dialogs.c.
Referenced by create_races_dialog(), and option_gui_update_extra().
User clicked close for connect message dialog
Definition at line 186 of file dialogs.c.
Referenced by popup_connect_msg().
User has responded to notify dialog with possibility to center (goto) on event location.
Definition at line 159 of file dialogs.c.
Referenced by popup_notify_goto_dialog().
|
static |
Return the GtkTreePath for a given nation on the specified list, or NULL if it's not there at all. Caller must free with gtk_tree_path_free().
Definition at line 399 of file dialogs.c.
Referenced by select_nation_on_tab().
Callback for pillage dialog.
Definition at line 313 of file dialogs.c.
Referenced by popup_pillage_dialog().
This function is called when the client disconnects or the game is over. It should close all dialog windows for that game.
Definition at line 1514 of file dialogs.c.
Referenced by popup_optiondlg(), set_client_state(), themespec_reread(), and tileset_changed().
Close nations dialog
Definition at line 1230 of file dialogs.c.
Referenced by close_socket_nomessage(), handle_ruleset_control(), nationset_changed(), races_dialog_cancel_callback(), races_dialog_ok_callback(), races_response(), races_update_pickable(), and set_client_state().
Populates leader list. If no nation selected, blanks it.
Definition at line 487 of file dialogs.c.
Referenced by select_nation().
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 | ||
) |
Popup detailed information about battle or save information for some kind of statistics
Definition at line 1583 of file dialogs.c.
Referenced by handle_unit_combat_info().
Popup a dialog to display connection message from server.
Definition at line 239 of file dialogs.c.
Referenced by handle_connect_msg().
Pops up a dialog to confirm disband of the unit(s).
Definition at line 1473 of file dialogs.c.
Referenced by unit_item::disband(), mr_menu::slot_disband(), unit_disband_callback(), unit_disband_callback(), unit_disband_callback(), and unit_disband_callback().
void popup_notify_goto_dialog | ( | const char * | headline, |
const char * | lines, | ||
const struct text_tag_list * | tags, | ||
struct tile * | ptile | ||
) |
Popup a dialog to display information about an event that has a specific location. The user should be given the option to goto that location.
Definition at line 196 of file dialogs.c.
Referenced by handle_event().
Opens pillage dialog listing possible pillage targets.
Definition at line 338 of file dialogs.c.
Referenced by request_unit_pillage().
Popup the dialog 10% inside the main-window
Definition at line 1215 of file dialogs.c.
Referenced by conn_menu_nation_chosen(), conn_menu_nation_chosen(), nation_button_callback(), nationset_changed(), pregame_options::pick_nation(), races_update_pickable(), select_nation_callback(), chat_listener::send_chat_message(), and fc_client::slot_pick_nation().
void popup_revolution_dialog | ( | struct government * | government | ) |
Pops up a dialog to confirm upgrading of the unit.
Definition at line 1435 of file dialogs.c.
Referenced by mr_menu::slot_upgrade(), unit_upgrade_callback(), unit_upgrade_callback(), unit_upgrade_callback(), unit_upgrade_callback(), upgrade_callback(), and unit_item::upgrade_unit().
Leader name has been chosen
Definition at line 1322 of file dialogs.c.
Referenced by create_races_dialog().
|
static |
Called whenever a user selects a nation in nation list
Definition at line 1293 of file dialogs.c.
Referenced by create_list_of_nations_in_group(), and select_nation_on_tab().
User has selected some of the responses for whole nations dialog
Definition at line 1380 of file dialogs.c.
Referenced by create_races_dialog().
|
static |
Determines which nations can be selected in the UI
Definition at line 1350 of file dialogs.c.
Referenced by create_list_of_nations_in_group().
Leader sex has been chosen
Definition at line 1342 of file dialogs.c.
Referenced by create_races_dialog().
|
static |
City style has been chosen
Definition at line 1365 of file dialogs.c.
Referenced by create_races_dialog().
Update which nations are allowed to be selected (due to e.g. another player choosing a nation).
Definition at line 1245 of file dialogs.c.
Referenced by handle_player_info().
The server has changed the set of selectable nations. Update any current nations dialog accordingly.
Definition at line 731 of file dialogs.c.
Referenced by handle_nation_availability().
void request_action_confirmation | ( | const char * | expl, |
struct act_confirmation_data * | data | ||
) |
Common code wants confirmation for an action.
Definition at line 1607 of file dialogs.c.
Referenced by request_do_action().
User has responded to revolution dialog
Definition at line 265 of file dialogs.c.
Referenced by popup_revolution_dialog().
|
static |
Update dialog state by selecting a nation and choosing values for its parameters, and update the right-hand side of the dialog accordingly. If 'leadername' is NULL, pick a random leader name and sex from the nation's list (ignoring the 'is_male' parameter).
Definition at line 513 of file dialogs.c.
Referenced by create_races_dialog(), races_nation_callback(), and races_update_pickable().
Make sure the given nation is selected in the list on a given groups notebook tab, if it's present on that tab. Intended for synchronising the tabs to the current selection, so does not disturb the controls on the right-hand side.
Definition at line 427 of file dialogs.c.
Referenced by sync_tabs_to_nation().
void show_tech_gained_dialog | ( | Tech_type_id | tech | ) |
Player has gained a new tech.
Definition at line 1524 of file dialogs.c.
Referenced by handle_research_info().
Select the given nation in the nation lists in the left-hand-side notebook.
Definition at line 471 of file dialogs.c.
Referenced by races_update_pickable(), and select_nation().
gboolean taxrates_callback | ( | GtkWidget * | w, |
GdkEventButton * | ev, | ||
gpointer | data | ||
) |
Adjust tax rates from main window
Definition at line 1425 of file dialogs.c.
Referenced by setup_widgets().
Popup unit selection dialog. It is a wrapper for the main function; see unitselect.c:unit_select_dialog_popup_main().
Definition at line 377 of file dialogs.c.
Referenced by do_map_click(), select_dialog_callback(), select_dialog_callback(), select_more_arrow_callback(), select_more_arrow_pixmap_callback(), and show_units_response().
Update unit selection dialog. It is a wrapper for the main function; see unitselect.c:unit_select_dialog_popup_main().
Definition at line 386 of file dialogs.c.
Referenced by unit_select_dialog_update().
Definition at line 98 of file dialogs.c.
Referenced by pillage_callback(), and popup_pillage_dialog().
|
static |
Definition at line 73 of file dialogs.c.
Referenced by create_races_dialog(), and nationset_sync_to_server().
|
static |
Definition at line 79 of file dialogs.c.
Referenced by create_races_dialog(), populate_leader_list(), races_leader_callback(), races_response(), and select_nation().
|
static |
Definition at line 76 of file dialogs.c.
Referenced by create_list_of_nations_in_group(), create_nation_selection_lists(), races_toggles_set_sensitive(), races_update_pickable(), and sync_tabs_to_nation().
|
static |
Definition at line 77 of file dialogs.c.
Referenced by create_nation_selection_lists(), create_races_dialog(), and races_update_pickable().
Definition at line 74 of file dialogs.c.
Referenced by create_list_of_nations_in_group(), create_races_dialog(), popup_races_dialog(), races_dialog_ok_callback(), races_response(), and races_toggles_set_sensitive().
|
static |
Definition at line 78 of file dialogs.c.
Referenced by create_races_dialog(), and select_nation().
|
static |
Definition at line 80 of file dialogs.c.
Referenced by create_races_dialog(), races_leader_callback(), and select_nation().
|
static |
Definition at line 72 of file dialogs.c.
Referenced by create_races_dialog(), popdown_races_dialog(), popup_races_dialog(), races_toggles_set_sensitive(), races_update_pickable(), and select_nation().
|
static |
Definition at line 81 of file dialogs.c.
Referenced by create_races_dialog(), and select_nation().
|
static |
Definition at line 82 of file dialogs.c.
Referenced by create_races_dialog(), and select_nation().
|
static |
Definition at line 94 of file dialogs.c.
Referenced by create_races_dialog(), populate_leader_list(), races_leader_callback(), races_nation_callback(), races_response(), races_update_pickable(), and select_nation().
|
static |
Definition at line 95 of file dialogs.c.
Referenced by races_leader_callback(), races_response(), and races_sex_callback().
|
static |
Definition at line 96 of file dialogs.c.
Referenced by races_response(), and races_style_callback().