Freeciv-3.3
|
#include <SDL2/SDL.h>
#include "astring.h"
#include "bitvector.h"
#include "fcintl.h"
#include "log.h"
#include "rand.h"
#include "combat.h"
#include "game.h"
#include "government.h"
#include "movement.h"
#include "sex.h"
#include "unitlist.h"
#include "client_main.h"
#include "climap.h"
#include "goto.h"
#include "helpdata.h"
#include "packhand.h"
#include "ratesdlg_g.h"
#include "text.h"
#include "zoom.h"
#include "chatline.h"
#include "citydlg.h"
#include "cityrep.h"
#include "cma_fe.h"
#include "colors.h"
#include "finddlg.h"
#include "gotodlg.h"
#include "graphics.h"
#include "gui_id.h"
#include "gui_main.h"
#include "gui_tilespec.h"
#include "helpdlg.h"
#include "inteldlg.h"
#include "mapctrl.h"
#include "mapview.h"
#include "menu.h"
#include "messagewin.h"
#include "optiondlg.h"
#include "plrdlg.h"
#include "repodlgs.h"
#include "sprite.h"
#include "themespec.h"
#include "widget.h"
#include "wldlg.h"
#include "dialogs.h"
#include "speclist.h"
Go to the source code of this file.
Data Structures | |
struct | notify_goto_data |
struct | notify_goto_dialog |
struct | nation_info |
Macros | |
#define | SPECLIST_TAG notify_goto |
#define | SPECLIST_TYPE struct notify_goto_data |
#define | NUM_SEEN 20 |
#define | ADV_NUM_SEEN 15 |
#define | TARGETS_ROW 5 |
#define | TARGETS_COL 1 |
#define ADV_NUM_SEEN 15 |
#define NUM_SEEN 20 |
#define SPECLIST_TAG notify_goto |
#define SPECLIST_TYPE struct notify_goto_data |
#define TARGETS_COL 1 |
#define TARGETS_ROW 5 |
User selected all units from tile.
Definition at line 1555 of file dialogs.c.
Referenced by popup_advanced_terrain_dialog().
User selected unit.
Definition at line 1536 of file dialogs.c.
Referenced by popup_advanced_terrain_dialog().
Sentry unit widget contains.
Definition at line 1573 of file dialogs.c.
Referenced by popup_advanced_terrain_dialog().
User selected "Advanced Menu"
Definition at line 1432 of file dialogs.c.
Referenced by popup_advanced_terrain_dialog().
User interacted with disband unit dialog cancel -button
Definition at line 844 of file dialogs.c.
Referenced by popup_unit_disband_dlg().
User requested closing of help dialog.
Definition at line 2863 of file dialogs.c.
Referenced by nation_button_callback(), and popdown_races_dialog().
User interacted with upgrade unit dialog cancel -button
Definition at line 635 of file dialogs.c.
Referenced by popup_unit_upgrade_dlg().
Update nation label.
Definition at line 3024 of file dialogs.c.
Referenced by nation_button_callback(), and races_toggles_set_sensitive().
User requested production change.
Definition at line 1490 of file dialogs.c.
Referenced by popup_advanced_terrain_dialog().
User requested leader gender change.
Definition at line 2637 of file dialogs.c.
Referenced by next_name_callback(), popup_races_dialog(), and prev_name_callback().
User requested opening of cma settings.
Definition at line 1521 of file dialogs.c.
Referenced by popup_advanced_terrain_dialog().
User interacted with disband unit widget.
Definition at line 832 of file dialogs.c.
Referenced by popup_unit_disband_dlg().
User requested closing of advanced terrain dialog.
Definition at line 1444 of file dialogs.c.
Referenced by popup_advanced_terrain_dialog().
User interacted with image popup dialog close button.
Definition at line 3737 of file dialogs.c.
Referenced by popup_image().
User interacted with notify dialog close button.
Definition at line 493 of file dialogs.c.
Referenced by popup_notify_dialog().
User requested closing of pillage dialog.
Definition at line 2258 of file dialogs.c.
Referenced by popup_pillage_dialog().
Popdown terrain information dialog.
Definition at line 1293 of file dialogs.c.
Referenced by popup_terrain_info_dialog().
User requested unit select window to be closed.
Definition at line 1044 of file dialogs.c.
Referenced by unit_select_dialog_popup().
Count available playable nations.
Definition at line 3097 of file dialogs.c.
Referenced by popup_races_dialog(), and races_toggles_set_sensitive().
Initiate goto to selected tile.
Definition at line 1600 of file dialogs.c.
Referenced by popup_advanced_terrain_dialog().
User selected government button.
Definition at line 2426 of file dialogs.c.
Referenced by popup_government_dialog().
User interacted with help dialog.
Definition at line 2855 of file dialogs.c.
Referenced by nation_button_callback().
User requested hurry production.
Definition at line 1505 of file dialogs.c.
Referenced by popup_advanced_terrain_dialog().
User interacted with image popup dialog.
Definition at line 3725 of file dialogs.c.
Referenced by popup_image().
User interacted with leader name edit widget.
Definition at line 3004 of file dialogs.c.
Referenced by popup_races_dialog().
User requested move of government dialog.
Definition at line 2440 of file dialogs.c.
Referenced by popup_government_dialog().
User selected nation.
Definition at line 2882 of file dialogs.c.
Referenced by popup_races_dialog().
User interacted with nations dialog.
Definition at line 2591 of file dialogs.c.
Referenced by popup_races_dialog().
Nationset selection update
Definition at line 3565 of file dialogs.c.
Referenced by option_gui_update(), and races_dialog::races_dialog().
User requested next leader name.
Definition at line 2666 of file dialogs.c.
Referenced by popup_races_dialog().
User requested next nationset
Definition at line 2776 of file dialogs.c.
Referenced by popup_races_dialog().
User interacted with generic notify dialog.
Definition at line 481 of file dialogs.c.
Referenced by popup_notify_dialog().
|
static |
Destroy a notify goto data.
Definition at line 254 of file dialogs.c.
Referenced by notify_goto_dialog_new().
|
static |
Create a notify goto data.
Definition at line 238 of file dialogs.c.
Referenced by popup_notify_goto_dialog().
|
static |
Update a notify dialog.
Definition at line 422 of file dialogs.c.
Referenced by notify_goto_dialog_close_callback().
Move the notify dialog.
Definition at line 263 of file dialogs.c.
Referenced by notify_goto_dialog_new().
Close the notify dialog.
Definition at line 278 of file dialogs.c.
Referenced by notify_goto_dialog_new().
|
static |
Destroy a notify dialog.
Definition at line 357 of file dialogs.c.
Referenced by notify_goto_dialog_advance(), and popdown_notify_goto_dialog().
|
static |
Create a notify dialog.
Definition at line 318 of file dialogs.c.
Referenced by popup_notify_goto_dialog().
|
static |
Update a notify dialog.
Definition at line 376 of file dialogs.c.
Referenced by notify_goto_dialog_advance(), and popup_notify_goto_dialog().
User interacted with unit disband dialog "Disband" -button.
Definition at line 859 of file dialogs.c.
Referenced by popup_unit_disband_dlg().
User interacted with unit upgrade dialog "Upgrade" -button.
Definition at line 650 of file dialogs.c.
Referenced by popup_unit_upgrade_dlg().
Initiate paradrop to selected tile.
Definition at line 1648 of file dialogs.c.
Referenced by popup_advanced_terrain_dialog().
Initiate patrol to selected tile.
Definition at line 1619 of file dialogs.c.
Referenced by popup_advanced_terrain_dialog().
User interacted with pillage dialog.
Definition at line 2225 of file dialogs.c.
Referenced by popup_pillage_dialog().
Popdown a generic dialog to display some generic information about terrain : tile, units , cities, etc.
Definition at line 1417 of file dialogs.c.
Referenced by adv_unit_select_all_callback(), adv_unit_select_callback(), adv_unit_sentry_idle_callback(), change_production_callback(), cma_callback(), exit_advanced_terrain_dlg_callback(), goto_here_callback(), hurry_production_callback(), paradrop_here_callback(), patrol_here_callback(), popdown_all_game_dialogs(), terrain_info_callback(), unit_help_callback(), and zoom_to_city_callback().
Popdown a dialog asking a diplomatic unit if it wishes to bribe the given enemy unit.
Definition at line 1891 of file action_dialog.c.
Referenced by popdown_all_game_dialogs().
Popdown a dialog asking the unit how they want to "connect" their location to the destination.
Definition at line 2393 of file dialogs.c.
Referenced by popdown_all_game_dialogs().
Popdown a dialog giving a diplomatic unit some options when moving into the target tile.
Definition at line 846 of file action_dialog.c.
Referenced by popdown_all_game_dialogs().
Close the government dialog.
Definition at line 2413 of file dialogs.c.
Referenced by government_dlg_callback().
Popdown a window asking a diplomatic unit if it wishes to incite the given enemy city.
Definition at line 1612 of file action_dialog.c.
Referenced by popdown_all_game_dialogs().
Popdown the notify goto dialog.
Definition at line 459 of file dialogs.c.
Referenced by popdown_all_game_dialogs().
Popdown a dialog asking the unit which improvement they would like to pillage.
Definition at line 2271 of file dialogs.c.
Referenced by exit_pillage_dlg_callback(), pillage_callback(), and popdown_all_game_dialogs().
Popdown terrain information dialog.
Definition at line 1280 of file dialogs.c.
Referenced by exit_terrain_info_dialog_callback(), and popdown_all_game_dialogs().
Close unit disband dialog.
Definition at line 1015 of file dialogs.c.
Referenced by cancel_disband_unit_callback(), ok_disband_unit_window_callback(), and popdown_all_game_dialogs().
Close unit upgrade dialog.
Definition at line 815 of file dialogs.c.
Referenced by cancel_upgrade_unit_callback(), ok_upgrade_unit_window_callback(), and popdown_all_game_dialogs().
Popup a generic dialog to display some generic information about terrain : tile, units , cities, etc.
Definition at line 1697 of file dialogs.c.
Referenced by button_down_on_map(), and button_up_on_map().
Popup a dialog asking the player what government to switch to.
Definition at line 2452 of file dialogs.c.
Referenced by revolution_callback().
|
static |
Popup terrain information dialog.
Definition at line 1326 of file dialogs.c.
Referenced by popup_advanced_terrain_dialog(), and terrain_info_callback().
Open unit disband dialog.
Definition at line 878 of file dialogs.c.
Referenced by disband_units_orders_city_dlg_callback(), and unit_order_callback().
Open unit upgrade dialog.
Definition at line 683 of file dialogs.c.
Referenced by popup_upgrade_dialog(), unit_order_callback(), upgrade_callback(), and upgrade_units_orders_city_dlg_callback().
User requested previous leader name.
Definition at line 2721 of file dialogs.c.
Referenced by popup_races_dialog().
User requested prev nationset
Definition at line 2796 of file dialogs.c.
Referenced by popup_races_dialog().
void put_window_near_map_tile | ( | struct widget * | pwindow, |
int | window_width, | ||
int | window_height, | ||
struct tile * | ptile | ||
) |
Place window near given tile on screen.
Definition at line 109 of file dialogs.c.
Referenced by popup_action_selection(), popup_bribe_stack_dialog(), popup_bribe_unit_dialog(), popup_hurry_production_dialog(), popup_incite_dialog(), popup_pillage_dialog(), popup_sabotage_dialog(), popup_terrain_info_dialog(), popup_unit_disband_dlg(), popup_unit_upgrade_dlg(), and unit_select_dialog_popup().
User cancelled nations dialog.
Definition at line 2815 of file dialogs.c.
Referenced by popup_races_dialog().
User accepted nation.
Definition at line 2605 of file dialogs.c.
Referenced by popup_races_dialog().
void request_action_confirmation | ( | const char * | expl, |
struct act_confirmation_data * | data | ||
) |
|
static |
Find my unit's (focus) chance of success at attacking/defending the given enemy unit. Return FALSE if the values cannot be determined (e.g., no units given).
Definition at line 192 of file dialogs.c.
Referenced by popup_advanced_terrain_dialog(), and unit_select_dialog_popup().
Return a (static) string with terrain defense bonus. This does not include bonuses some units may get out of bases.
Definition at line 1306 of file dialogs.c.
Referenced by redraw_unit_info_label().
|
static |
Selects a leader and the appropriate sex. Updates the gui elements and the selected_* variables.
Definition at line 3051 of file dialogs.c.
Referenced by nation_button_callback(), popup_races_dialog(), and races_toggles_set_sensitive().
void show_tech_gained_dialog | ( | Tech_type_id | tech | ) |
User interacted with style widget.
Definition at line 2828 of file dialogs.c.
Referenced by popup_races_dialog().
User requested terrain info.
Definition at line 1457 of file dialogs.c.
Referenced by popup_advanced_terrain_dialog().
Popdown terrain information dialog.
Definition at line 1268 of file dialogs.c.
Referenced by popup_terrain_info_dialog().
Show help about unit type.
Definition at line 1681 of file dialogs.c.
Referenced by popup_advanced_terrain_dialog().
User selected unit from unit select window.
Definition at line 1057 of file dialogs.c.
Referenced by unit_select_dialog_popup().
User interacted with unit selection window.
Definition at line 1032 of file dialogs.c.
Referenced by unit_select_dialog_popup().
User interacted with upgrade unit widget.
Definition at line 623 of file dialogs.c.
Referenced by popup_unit_upgrade_dlg().
User requested zoom to city.
Definition at line 1474 of file dialogs.c.
Referenced by popup_advanced_terrain_dialog().
struct advanced_dialog* advanced_image_popup = NULL |
Definition at line 3720 of file dialogs.c.
Referenced by exit_image_popup_callback(), image_popup_window_callback(), and popup_image().
struct advanced_dialog* advanced_terrain_dlg = NULL |
Definition at line 1411 of file dialogs.c.
Referenced by advanced_terrain_window_dlg_callback(), popdown_advanced_terrain_dialog(), and popup_advanced_terrain_dialog().
|
static |
Definition at line 2387 of file dialogs.c.
Referenced by popdown_connect_dialog().
|
static |
Definition at line 2408 of file dialogs.c.
Referenced by move_government_dlg_callback(), popdown_government_dialog(), and popup_government_dialog().
|
static |
Definition at line 2559 of file dialogs.c.
Referenced by cancel_help_dlg_callback(), and nation_button_callback().
|
extern |
Definition at line 108 of file gui_main.c.
Referenced by exit_unit_select_callback(), popdown_advanced_terrain_dialog(), popdown_connect_dialog(), popdown_pillage_dialog(), popup_advanced_terrain_dialog(), popup_pillage_dialog(), unit_select_dialog_popdown(), and unit_select_dialog_popup().
Definition at line 97 of file dialogs.c.
Referenced by aifill(), create_command_pregame(), leader_name_edit_callback(), next_name_callback(), popdown_races_dialog(), populate_leader_list(), prev_name_callback(), receive_packet_ruleset_nation_100(), and select_random_leader().
|
static |
Definition at line 2558 of file dialogs.c.
Referenced by change_nation_label(), change_sex_callback(), nation_button_callback(), nations_dialog_callback(), nationset_changed(), next_name_callback(), next_set_callback(), popdown_races_dialog(), popup_races_dialog(), prev_name_callback(), prev_set_callback(), races_dialog_ok_callback(), races_toggles_set_sensitive(), races_update_pickable(), select_random_leader(), and style_callback().
struct advanced_dialog* notify_dlg = NULL |
Definition at line 476 of file dialogs.c.
Referenced by exit_notify_dialog_callback(), notify_dialog_window_callback(), and popup_notify_dialog().
|
static |
|
static |
Definition at line 2220 of file dialogs.c.
Referenced by pillage_window_callback(), popdown_pillage_dialog(), and popup_pillage_dialog().
|
static |
Definition at line 1262 of file dialogs.c.
Referenced by popdown_terrain_info_dialog(), popup_terrain_info_dialog(), and terrain_info_window_dlg_callback().
|
static |
Definition at line 827 of file dialogs.c.
Referenced by disband_unit_window_callback(), popdown_unit_disband_dlg(), and popup_unit_disband_dlg().
|
static |
Definition at line 1027 of file dialogs.c.
Referenced by unit_select_dialog_popdown(), unit_select_dialog_popup(), and unit_select_window_callback().
|
static |
Definition at line 618 of file dialogs.c.
Referenced by popdown_unit_upgrade_dlg(), popup_unit_upgrade_dlg(), and upgrade_unit_window_callback().