![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include "dialogs.h"#include <QApplication>#include <QComboBox>#include <QGroupBox>#include <QHeaderView>#include <QKeyEvent>#include <QPainter>#include <QRadioButton>#include <QRandomGenerator>#include <QVBoxLayout>#include <QtMath>#include "astring.h"#include "fcintl.h"#include "actions.h"#include "city.h"#include "climisc.h"#include "game.h"#include "government.h"#include "improvement.h"#include "movement.h"#include "nation.h"#include "research.h"#include "style.h"#include "audio/audio.h"#include "chatline_common.h"#include "client_main.h"#include "control.h"#include "fc_client.h"#include "fonts.h"#include "helpdlg.h"#include "hudwidget.h"#include "icons.h"#include "packhand.h"#include "page_game.h"#include "qtg_cxxside.h"#include "text.h"#include "tileset/layer_city.h"#include "tileset/tilespec.h"#include "unithudselector.h"#include "unitselect.h"#include "views/view_map.h"#include "views/view_map_common.h"#include "widgets/report_widget.h"
Include dependency graph for dialogs.cpp:Go to the source code of this file.
Macros | |
| #define | BUTTON_MOVE ACTION_COUNT |
| #define | BUTTON_WAIT BUTTON_MOVE + 1 |
| #define | BUTTON_CANCEL BUTTON_MOVE + 2 |
| #define | BUTTON_COUNT BUTTON_MOVE + 3 |
Functions | |
| void | popdown_all_spaceships_dialogs () |
| Close all spaceships dialogs. More... | |
| void | popdown_players_report () |
| Closes players report. More... | |
| void | popdown_economy_report () |
| Closes economy report. More... | |
| void | popdown_science_report () |
| Closes science report. More... | |
| void | popdown_city_report () |
| Closes city report. More... | |
| void | popdown_endgame_report () |
| Removes endgame report. More... | |
| static void | act_sel_keep_moving (QVariant data1, QVariant data2) |
| Action keep moving with actor unit for choice dialog. More... | |
| static void | spy_request_strike_bld_list (QVariant data1, QVariant data2) |
| Action request "Surgical Strike Building" list for choice dialog. More... | |
| static void | diplomat_incite (QVariant data1, QVariant data2) |
| Action incite revolt for choice dialog. More... | |
| static void | diplomat_incite_escape (QVariant data1, QVariant data2) |
| Action incite revolt and escape for choice dialog. More... | |
| static void | spy_request_sabotage_list (QVariant data1, QVariant data2) |
| Action request sabotage list for choice dialog. More... | |
| static void | spy_request_sabotage_esc_list (QVariant data1, QVariant data2) |
| Action request sabotage (and escape) list for choice dialog. More... | |
| static void | spy_sabotage (QVariant data1, QVariant data2) |
| Action sabotage with spy for choice dialog. More... | |
| static void | spy_steal (QVariant data1, QVariant data2) |
| Action "Targeted Steal Tech" for choice dialog. More... | |
| static void | spy_steal_esc (QVariant data1, QVariant data2) |
| Action "Targeted Steal Tech Escape Expected" for choice dialog. More... | |
| static void | spy_steal_something (QVariant data1, QVariant data2) |
| Action steal given tech for choice dialog. More... | |
| static void | diplomat_steal (QVariant data1, QVariant data2) |
| Action steal with diplomat for choice dialog. More... | |
| static void | diplomat_steal_esc (QVariant data1, QVariant data2) |
| Action "Steal Tech Escape Expected" for choice dialog. More... | |
| static void | spy_poison (QVariant data1, QVariant data2) |
| Action Poison City for choice dialog. More... | |
| static void | spy_poison_esc (QVariant data1, QVariant data2) |
| Action Poison City Escape for choice dialog. More... | |
| static void | spy_steal_gold (QVariant data1, QVariant data2) |
| Action steal gold for choice dialog. More... | |
| static void | spy_steal_gold_esc (QVariant data1, QVariant data2) |
| Action steal gold escape for choice dialog. More... | |
| static void | spy_steal_maps (QVariant data1, QVariant data2) |
| Action steal maps for choice dialog. More... | |
| static void | spy_steal_maps_esc (QVariant data1, QVariant data2) |
| Action steal maps escape for choice dialog. More... | |
| static void | spy_nuke_city (QVariant data1, QVariant data2) |
| Action suitcase nuke for choice dialog. More... | |
| static void | spy_nuke_city_esc (QVariant data1, QVariant data2) |
| Action suitcase nuke escape for choice dialog. More... | |
| static void | nuke_city (QVariant data1, QVariant data2) |
| Action "Nuke City" for choice dialog. More... | |
| static void | destroy_city (QVariant data1, QVariant data2) |
| Action destroy city for choice dialog. More... | |
| static void | diplomat_embassy (QVariant data1, QVariant data2) |
| Action establish embassy for choice dialog. More... | |
| static void | spy_embassy (QVariant data1, QVariant data2) |
| Action establish embassy for choice dialog. More... | |
| static void | spy_sabotage_unit (QVariant data1, QVariant data2) |
| Action sabotage unit for choice dialog. More... | |
| static void | spy_sabotage_unit_esc (QVariant data1, QVariant data2) |
| Action Sabotage Unit Escape for choice dialog. More... | |
| static void | spy_investigate (QVariant data1, QVariant data2) |
| Action investigate city for choice dialog. More... | |
| static void | diplomat_investigate (QVariant data1, QVariant data2) |
| Action Investigate City Spend Unit for choice dialog. More... | |
| static void | diplomat_sabotage (QVariant data1, QVariant data2) |
| Action sabotage for choice dialog. More... | |
| static void | diplomat_sabotage_esc (QVariant data1, QVariant data2) |
| Action sabotage and escape for choice dialog. More... | |
| static void | diplomat_bribe (QVariant data1, QVariant data2) |
| Action bribe unit for choice dialog. More... | |
| static void | caravan_marketplace (QVariant data1, QVariant data2) |
| Action enter market place for choice dialog. More... | |
| static void | caravan_establish_trade (QVariant data1, QVariant data2) |
| Action establish trade for choice dialog. More... | |
| static void | caravan_help_build (QVariant data1, QVariant data2) |
| Action help build wonder for choice dialog. More... | |
| static void | unit_recycle (QVariant data1, QVariant data2) |
| Action Recycle Unit for choice dialog. More... | |
| static void | capture_units (QVariant data1, QVariant data2) |
| Action capture units for choice dialog. More... | |
| static void | nuke_units (QVariant data1, QVariant data2) |
| Action "Nuke Units" for choice dialog. More... | |
| static void | expel_unit (QVariant data1, QVariant data2) |
| Action expel unit for choice dialog. More... | |
| static void | bombard (QVariant data1, QVariant data2) |
| Action "Bombard" for choice dialog. More... | |
| static void | bombard2 (QVariant data1, QVariant data2) |
| Action "Bombard 2" for choice dialog. More... | |
| static void | bombard3 (QVariant data1, QVariant data2) |
| Action "Bombard 3" for choice dialog. More... | |
| static void | found_city (QVariant data1, QVariant data2) |
| Action build city for choice dialog. More... | |
| static void | transform_terrain (QVariant data1, QVariant data2) |
| Action "Transform Terrain" for choice dialog. More... | |
| static void | cultivate (QVariant data1, QVariant data2) |
| Action "Cultivate" for choice dialog. More... | |
| static void | plant (QVariant data1, QVariant data2) |
| Action "Plant" for choice dialog. More... | |
| static void | pillage (QVariant data1, QVariant data2) |
| Action "Pillage" for choice dialog. More... | |
| static void | clean_pollution (QVariant data1, QVariant data2) |
| Action "Clean Pollution" for choice dialog. More... | |
| static void | clean_fallout (QVariant data1, QVariant data2) |
| Action "Clean Fallout" for choice dialog. More... | |
| static void | road (QVariant data1, QVariant data2) |
| Action "Build Road" for choice dialog. More... | |
| static void | base (QVariant data1, QVariant data2) |
| Action "Build Base" for choice dialog. More... | |
| static void | mine (QVariant data1, QVariant data2) |
| Action "Build Mine" for choice dialog. More... | |
| static void | irrigate (QVariant data1, QVariant data2) |
| Action "Build Irrigation" for choice dialog. More... | |
| static void | nuke (QVariant data1, QVariant data2) |
| Action "Explode Nuclear" for choice dialog. More... | |
| static void | attack (QVariant data1, QVariant data2) |
| Action "Attack" for choice dialog. More... | |
| static void | suicide_attack (QVariant data1, QVariant data2) |
| Action "Suicide Attack" for choice dialog. More... | |
| static void | paradrop (QVariant data1, QVariant data2) |
| Action "Paradrop Unit" for choice dialog. More... | |
| static void | disembark1 (QVariant data1, QVariant data2) |
| Action "Transport Disembark" for choice dialog. More... | |
| static void | disembark2 (QVariant data1, QVariant data2) |
| Action "Transport Disembark 2" for choice dialog. More... | |
| static void | convert_unit (QVariant data1, QVariant data2) |
| Action Convert Unit for choice dialog. More... | |
| static void | fortify (QVariant data1, QVariant data2) |
| Action "Fortify" for choice dialog. More... | |
| static void | disband_unit (QVariant data1, QVariant data2) |
| Action Disband Unit for choice dialog. More... | |
| static void | join_city (QVariant data1, QVariant data2) |
| Action join city for choice dialog. More... | |
| static void | unit_home_city (QVariant data1, QVariant data2) |
| Action Home City for choice dialog. More... | |
| static void | unit_upgrade (QVariant data1, QVariant data2) |
| Action "Upgrade Unit" for choice dialog. More... | |
| static void | airlift (QVariant data1, QVariant data2) |
| Action "Airlift Unit" for choice dialog. More... | |
| static void | conquer_city (QVariant data1, QVariant data2) |
| Action "Conquer City" for choice dialog. More... | |
| static void | conquer_city2 (QVariant data1, QVariant data2) |
| Action "Conquer City 2" for choice dialog. More... | |
| static void | heal_unit (QVariant data1, QVariant data2) |
| Action "Heal Unit" for choice dialog. More... | |
| static void | transport_board (QVariant data1, QVariant data2) |
| Action "Transport Board" for choice dialog. More... | |
| static void | transport_embark (QVariant data1, QVariant data2) |
| Action "Transport Embark" for choice dialog. More... | |
| static void | transport_alight (QVariant data1, QVariant data2) |
| Action "Transport Alight" for choice dialog. More... | |
| static void | transport_unload (QVariant data1, QVariant data2) |
| Action "Transport Unload" for choice dialog. More... | |
| static void | keep_moving (QVariant data1, QVariant data2) |
| Empty action for choice dialog (just do nothing) More... | |
| static void | pillage_something (QVariant data1, QVariant data2) |
| Action pillage for choice dialog. More... | |
| static void | user_action_1 (QVariant data1, QVariant data2) |
| User Action 1 for choice dialog. More... | |
| static void | user_action_2 (QVariant data1, QVariant data2) |
| User Action 2 for choice dialog. More... | |
| static void | user_action_3 (QVariant data1, QVariant data2) |
| User Action 3 for choice dialog. More... | |
| static void | action_entry (choice_dialog *cd, action_id act, const struct act_prob *act_probs, const QString custom, QVariant data1, QVariant data2) |
| Show the user the action if it is enabled. More... | |
| static const QHash< action_id, pfcn_void > | af_map_init () |
| Initialize a mapping between an action and the function to call if the action's button is pushed. More... | |
| 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. More... | |
| void | popup_connect_msg (const char *headline, const char *message) |
| Popup a dialog to display connection message from server. More... | |
| void | popup_notify_dialog (const char *caption, const char *headline, const char *lines) |
| Popup a generic dialog to display some generic information. More... | |
| void | popup_races_dialog (struct player *pplayer) |
| Popup the nation selection dialog. More... | |
| void | popdown_races_dialog (void) |
| Close the nation selection dialog. More... | |
| void | unit_select_dialog_popup (struct tile *ptile) |
| Popup a dialog window to select units on a particular tile. More... | |
| void | unit_select_dialog_update_real (void *unused) |
| Update the dialog window to select units on a particular tile. More... | |
| void | update_nationset_combo () |
| Updates nationset combobox. More... | |
| void | races_update_pickable (bool nationset_change) |
| The server has changed the set of selectable nations. More... | |
| void | races_toggles_set_sensitive (void) |
| In the nation selection dialog, make already-taken nations unavailable. More... | |
| void | popup_revolution_dialog (struct government *government) |
| Popup a dialog asking if the player wants to start a revolution. More... | |
| bool | try_default_unit_action (QVariant q1, QVariant q2) |
| Try to pick up default unit action. More... | |
| bool | try_default_city_action (QVariant q1, QVariant q2) |
| Try to pick up default city action. More... | |
| static void | act_sel_wait (QVariant data1, QVariant data2) |
| Delay selection of what action to take. More... | |
| void | revolution_response (struct government *government) |
| Starts revolution with targeted government as target or anarchy otherwise. More... | |
| static void | diplomat_queue_handle_primary (int actor_unit_id) |
| Move the queue of diplomats that need user input forward unless the current diplomat will need more input. More... | |
| static void | diplomat_queue_handle_secondary (int actor_id) |
| Move the queue of diplomats that need user input forward since the current diplomat got the extra input that was required. More... | |
| void | action_selection_no_longer_in_progress_gui_specific (int actor_id) |
| Let the non shared client code know that the action selection process no longer is in progress for the specified unit. More... | |
| void | popup_action_selection (struct unit *actor_unit, struct city *target_city, struct unit *target_unit, struct tile *target_tile, struct extra_type *target_extra, const struct act_prob *act_probs) |
| Popup a dialog that allows the player to select what action a unit should take. More... | |
| static action_id | get_non_targeted_action_id (action_id tgt_action_id) |
| Get the non targeted version of an action so it, if enabled, can appear in the target selection dialog. More... | |
| static action_id | get_production_targeted_action_id (action_id tgt_action_id) |
| Get the production targeted version of an action so it, if enabled, can appear in the target selection dialog. More... | |
| static void | action_entry_update (Choice_dialog_button *button, action_id act, const struct act_prob *act_probs, const QString custom, QVariant data1, QVariant data2) |
| Update an existing button. More... | |
| static void | do_that_action (QVariant data1, QVariant data2, enum gen_action a) |
| static void | spy_steal_shared (QVariant data1, QVariant data2, action_id act_id) |
| Action steal tech with spy for choice dialog. More... | |
| void | popup_incite_dialog (struct unit *actor, struct city *tcity, int cost, const struct action *paction) |
| Popup a window asking a diplomatic unit if it wishes to incite the given enemy city. More... | |
| void | popup_bribe_dialog (struct unit *actor, struct unit *tunit, int cost, const struct action *paction) |
| Popup a dialog asking a diplomatic unit if it wishes to bribe the given enemy unit. More... | |
| static void | user_action_unit_vs_unit (int actor_id, int target_id, action_id act_id) |
| User action with target kind ATK_UNIT. More... | |
| static void | user_action_unit_vs_city (int actor_id, int target_id, action_id act_id) |
| User action with target kind ATK_CITY. More... | |
| static void | user_action_unit_vs_tile (int actor_id, int target_id, action_id act_id) |
| User action with target kind ATK_TILE or ATK_UNITS. More... | |
| static void | user_action_unit_vs_self (int actor_id, int target_id, action_id act_id) |
| User action with target kind ATK_SELF. More... | |
| static void | user_action (QVariant data1, QVariant data2, action_id act_id) |
| User action handler, dispatches on target kind. More... | |
| void | popup_sabotage_dialog (struct unit *actor, struct city *tcity, const struct action *paction) |
| Popup a dialog asking a diplomatic unit if it wishes to sabotage the given enemy city. More... | |
| void | popup_pillage_dialog (struct unit *punit, bv_extras extras) |
| Popup a dialog asking the unit which improvement they would like to pillage. More... | |
| void | popup_disband_dialog (const std::vector< unit * > &punits) |
| Pops up a dialog to confirm disband of the unit(s). More... | |
| void | popup_tileset_suggestion_dialog (void) |
| Ruleset (modpack) has suggested loading certain tileset. More... | |
| void | popup_soundset_suggestion_dialog (void) |
| Ruleset (modpack) has suggested loading certain soundset. More... | |
| void | popup_musicset_suggestion_dialog (void) |
| Ruleset (modpack) has suggested loading certain musicset. More... | |
| bool | popup_theme_suggestion_dialog (const char *theme_name) |
| Tileset (modpack) has suggested loading certain theme. More... | |
| void | popdown_all_game_dialogs (void) |
| This function is called when the client disconnects or the game is over. More... | |
| int | action_selection_actor_unit (void) |
| Returns the id of the actor unit currently handled in action selection dialog when the action selection dialog is open. More... | |
| int | action_selection_target_city (void) |
| Returns id of the target city of the actions currently handled in action selection dialog when the action selection dialog is open and it has a city target. More... | |
| int | action_selection_target_tile (void) |
| Returns id of the target tile of the actions currently handled in action selection dialog when the action selection dialog is open and it has a tile target. More... | |
| int | action_selection_target_extra (void) |
| Returns id of the target extra of the actions currently handled in action selection dialog when the action selection dialog is open and it has an extra target. More... | |
| int | action_selection_target_unit (void) |
| Returns id of the target unit of the actions currently handled in action selection dialog when the action selection dialog is open and it has a unit target. More... | |
| void | action_selection_refresh (struct unit *actor_unit, struct city *target_city, struct unit *target_unit, struct tile *target_tile, struct extra_type *target_extra, const struct act_prob *act_probs) |
| Updates the action selection dialog with new information. More... | |
| void | action_selection_close (void) |
| Closes the action selection dialog. More... | |
| void | show_tech_gained_dialog (Tech_type_id tech) |
| Player has gained a new tech. More... | |
| void | popup_upgrade_dialog (const std::vector< unit * > &punits) |
| Popup dialog for upgrade units. More... | |
| bool | handmade_scenario_warning () |
| Give a warning when user is about to edit scenario with manually set properties. More... | |
| bool | request_transport (struct unit *pcargo, struct tile *ptile) |
| Unit wants to get into some transport on given tile. More... | |
| 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. More... | |
Variables | |
| static bool | is_showing_pillage_dialog = false |
| static races_dialog * | race_dialog |
| static bool | is_race_dialog_open = false |
| static bool | is_more_user_input_needed = false |
| static bool | did_not_decide = false |
| QString | forced_tileset_name |
| static const QHash< action_id, pfcn_void > | af_map = af_map_init() |
| #define BUTTON_CANCEL BUTTON_MOVE + 2 |
Definition at line 62 of file dialogs.cpp.
| #define BUTTON_COUNT BUTTON_MOVE + 3 |
Definition at line 63 of file dialogs.cpp.
| #define BUTTON_MOVE ACTION_COUNT |
Definition at line 60 of file dialogs.cpp.
| #define BUTTON_WAIT BUTTON_MOVE + 1 |
Definition at line 61 of file dialogs.cpp.
|
static |
Action keep moving with actor unit for choice dialog.
Definition at line 2989 of file dialogs.cpp.
Referenced by popup_action_selection().
|
static |
Delay selection of what action to take.
Definition at line 1620 of file dialogs.cpp.
Referenced by popup_action_selection().
|
static |
Show the user the action if it is enabled.
Definition at line 2004 of file dialogs.cpp.
Referenced by action_selection_refresh(), and popup_action_selection().
|
static |
Update an existing button.
Definition at line 2034 of file dialogs.cpp.
Referenced by action_selection_refresh().
| int action_selection_actor_unit | ( | void | ) |
Returns the id of the actor unit currently handled in action selection dialog when the action selection dialog is open.
Returns IDENTITY_NUMBER_ZERO if no action selection dialog is open.
Definition at line 3528 of file dialogs.cpp.
Referenced by action_selection_refresh(), can_ask_server_for_actions(), handle_city_info(), handle_player_diplstate(), handle_unit_actions(), handle_unit_remove(), and unit_focus_set().
| void action_selection_close | ( | void | ) |
Closes the action selection dialog.
Definition at line 3740 of file dialogs.cpp.
Referenced by handle_unit_remove(), and unit_focus_set().
| void action_selection_no_longer_in_progress_gui_specific | ( | int | actor_id | ) |
Let the non shared client code know that the action selection process no longer is in progress for the specified unit.
This allows the client to clean up any client specific assumptions.
Definition at line 1697 of file dialogs.cpp.
Referenced by action_selection_no_longer_in_progress().
| void action_selection_refresh | ( | struct unit * | actor_unit, |
| struct city * | target_city, | ||
| struct unit * | target_unit, | ||
| struct tile * | target_tile, | ||
| struct extra_type * | target_extra, | ||
| const struct act_prob * | act_probs | ||
| ) |
Updates the action selection dialog with new information.
Definition at line 3610 of file dialogs.cpp.
Referenced by handle_unit_actions(), and choice_dialog::update_dialog().
| int action_selection_target_city | ( | void | ) |
Returns id of the target city of the actions currently handled in action selection dialog when the action selection dialog is open and it has a city target.
Returns IDENTITY_NUMBER_ZERO if no action selection dialog is open or no city target is present in the action selection dialog.
Definition at line 3545 of file dialogs.cpp.
Referenced by handle_city_info(), and handle_player_diplstate().
| int action_selection_target_extra | ( | void | ) |
Returns id of the target extra of the actions currently handled in action selection dialog when the action selection dialog is open and it has an extra target.
Returns EXTRA_NONE if no action selection dialog is open or no extra target is present in the action selection dialog.
Definition at line 3579 of file dialogs.cpp.
Referenced by base(), clean_fallout(), clean_pollution(), handle_city_info(), handle_player_diplstate(), irrigate(), mine(), pillage(), road(), and choice_dialog::switch_target().
| int action_selection_target_tile | ( | void | ) |
Returns id of the target tile of the actions currently handled in action selection dialog when the action selection dialog is open and it has a tile target.
Returns TILE_INDEX_NONE if no action selection dialog is open.
Definition at line 3562 of file dialogs.cpp.
Referenced by handle_player_diplstate().
| int action_selection_target_unit | ( | void | ) |
Returns id of the target unit of the actions currently handled in action selection dialog when the action selection dialog is open and it has a unit target.
Returns IDENTITY_NUMBER_ZERO if no action selection dialog is open or no unit target is present in the action selection dialog.
Definition at line 3596 of file dialogs.cpp.
Referenced by handle_city_info(), and handle_player_diplstate().
Initialize a mapping between an action and the function to call if the action's button is pushed.
Definition at line 174 of file dialogs.cpp.
|
static |
Action "Airlift Unit" for choice dialog.
Definition at line 1578 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action "Attack" for choice dialog.
Definition at line 2464 of file dialogs.cpp.
Referenced by af_map_init(), dai_choose_defender_versus(), dai_rampage_want(), dai_unit_attack_desirability(), dai_unit_defence_desirability(), find_something_to_kill(), kill_desire(), kill_something_with(), and process_attacker_want().
|
static |
Action "Build Base" for choice dialog.
Definition at line 2393 of file dialogs.cpp.
Referenced by advance_req_iter_init(), af_map_init(), check_vote(), get_city_dialog_output_text(), get_unit_vision_at(), hp_gain_coord(), impr_base_build_shield_cost(), impr_build_shield_cost(), impr_estimate_build_shield_cost(), luascript_call(), secfile_save(), set_unit_activity_base(), sg_load_player_unit(), trade_from_route(), and utype_build_shield_cost().
|
static |
Action "Bombard" for choice dialog.
Definition at line 2253 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action "Bombard 2" for choice dialog.
Definition at line 2264 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action "Bombard 3" for choice dialog.
Definition at line 2275 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action capture units for choice dialog.
Definition at line 2231 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action establish trade for choice dialog.
Definition at line 1504 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action help build wonder for choice dialog.
Definition at line 1519 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action enter market place for choice dialog.
Definition at line 1489 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action "Clean Fallout" for choice dialog.
Definition at line 2356 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action "Clean Pollution" for choice dialog.
Definition at line 2338 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action "Conquer City" for choice dialog.
Definition at line 1592 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action "Conquer City 2" for choice dialog.
Definition at line 1606 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action Convert Unit for choice dialog.
Definition at line 2084 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action "Cultivate" for choice dialog.
Definition at line 2304 of file dialogs.cpp.
Referenced by af_map_init(), and insert_generated_text().
|
static |
Action destroy city for choice dialog.
Definition at line 2756 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action bribe unit for choice dialog.
Definition at line 2095 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action establish embassy for choice dialog.
Definition at line 2846 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action incite revolt for choice dialog.
Definition at line 2951 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action incite revolt and escape for choice dialog.
Definition at line 2970 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action Investigate City Spend Unit for choice dialog.
Definition at line 2876 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Move the queue of diplomats that need user input forward unless the current diplomat will need more input.
Definition at line 1643 of file dialogs.cpp.
Referenced by diplomat_queue_handle_secondary(), and popup_action_selection().
|
static |
Move the queue of diplomats that need user input forward since the current diplomat got the extra input that was required.
Definition at line 1684 of file dialogs.cpp.
Referenced by popup_bribe_dialog(), popup_incite_dialog(), popup_sabotage_dialog(), and spy_steal_shared().
|
static |
Action sabotage for choice dialog.
Definition at line 2891 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action sabotage and escape for choice dialog.
Definition at line 2906 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action steal with diplomat for choice dialog.
Definition at line 2921 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action "Steal Tech Escape Expected" for choice dialog.
Definition at line 2936 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action Disband Unit for choice dialog.
Definition at line 2060 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action "Transport Disembark" for choice dialog.
Definition at line 2204 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action "Transport Disembark 2" for choice dialog.
Definition at line 2212 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Definition at line 2190 of file dialogs.cpp.
Referenced by cultivate(), disembark1(), disembark2(), paradrop(), plant(), and transform_terrain().
|
static |
Action expel unit for choice dialog.
Definition at line 2242 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action "Fortify" for choice dialog.
Definition at line 2071 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action build city for choice dialog.
Definition at line 2286 of file dialogs.cpp.
Referenced by af_map_init().
Get the non targeted version of an action so it, if enabled, can appear in the target selection dialog.
Definition at line 1961 of file dialogs.cpp.
Referenced by popup_sabotage_dialog(), spy_sabotage(), spy_steal_shared(), and spy_steal_something().
Get the production targeted version of an action so it, if enabled, can appear in the target selection dialog.
Definition at line 1984 of file dialogs.cpp.
Referenced by popup_sabotage_dialog(), and spy_sabotage().
| bool handmade_scenario_warning | ( | ) |
Give a warning when user is about to edit scenario with manually set properties.
Definition at line 3818 of file dialogs.cpp.
Referenced by handle_game_info().
|
static |
Action "Heal Unit" for choice dialog.
Definition at line 2138 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action "Build Irrigation" for choice dialog.
Definition at line 2431 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action join city for choice dialog.
Definition at line 2501 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Empty action for choice dialog (just do nothing)
Definition at line 1625 of file dialogs.cpp.
Referenced by popup_action_selection().
|
static |
Action "Build Mine" for choice dialog.
Definition at line 2412 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action "Explode Nuclear" for choice dialog.
Definition at line 2450 of file dialogs.cpp.
Referenced by adv_data_phase_init(), and af_map_init().
|
static |
Action "Nuke City" for choice dialog.
Definition at line 2742 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action "Nuke Units" for choice dialog.
Definition at line 2220 of file dialogs.cpp.
Referenced by adv_data_phase_init(), and af_map_init().
|
static |
Action "Paradrop Unit" for choice dialog.
Definition at line 2493 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action "Pillage" for choice dialog.
Definition at line 2320 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action pillage for choice dialog.
Definition at line 3115 of file dialogs.cpp.
Referenced by popup_pillage_dialog().
|
static |
Action "Plant" for choice dialog.
Definition at line 2312 of file dialogs.cpp.
Referenced by af_map_init(), and insert_generated_text().
| void popdown_all_game_dialogs | ( | void | ) |
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 3496 of file dialogs.cpp.
Referenced by client_state().
| void popdown_all_spaceships_dialogs | ( | ) |
Close all spaceships dialogs.
Definition at line 241 of file spaceshipdlg.cpp.
Referenced by popdown_all_game_dialogs().
| void popdown_city_report | ( | ) |
Closes city report.
Definition at line 1312 of file view_cities.cpp.
Referenced by popdown_all_game_dialogs().
| void popdown_economy_report | ( | ) |
Closes economy report.
Definition at line 421 of file view_economics.cpp.
Referenced by popdown_all_game_dialogs().
| void popdown_endgame_report | ( | ) |
Removes endgame report.
Definition at line 122 of file endgamereport.cpp.
Referenced by popdown_all_game_dialogs().
| void popdown_players_report | ( | ) |
Closes players report.
Definition at line 1013 of file view_nations.cpp.
Referenced by popdown_all_game_dialogs().
| void popdown_races_dialog | ( | void | ) |
Close the nation selection dialog.
This should allow the user to (at least) select a unit to activate.
Definition at line 1011 of file dialogs.cpp.
Referenced by client_state(), close_socket_nomessage(), and handle_ruleset_control().
| void popdown_science_report | ( | ) |
Closes science report.
Definition at line 726 of file view_research.cpp.
Referenced by popdown_all_game_dialogs().
| void popup_action_selection | ( | struct unit * | actor_unit, |
| struct city * | target_city, | ||
| struct unit * | target_unit, | ||
| struct tile * | target_tile, | ||
| struct extra_type * | target_extra, | ||
| const struct act_prob * | act_probs | ||
| ) |
Popup a dialog that allows the player to select what action a unit should take.
Definition at line 1708 of file dialogs.cpp.
Referenced by handle_unit_actions().
| void popup_bribe_dialog | ( | struct unit * | actor, |
| struct unit * | tunit, | ||
| int | cost, | ||
| const struct action * | paction | ||
| ) |
Popup a dialog asking a diplomatic unit if it wishes to bribe the given enemy unit.
Definition at line 3068 of file dialogs.cpp.
Referenced by handle_unit_action_answer().
| 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 3871 of file dialogs.cpp.
Referenced by handle_unit_combat_info().
| void popup_connect_msg | ( | const char * | headline, |
| const char * | message | ||
| ) |
Popup a dialog to display connection message from server.
Definition at line 956 of file dialogs.cpp.
Referenced by handle_connect_msg().
| void popup_disband_dialog | ( | const std::vector< unit * > & | punits | ) |
Pops up a dialog to confirm disband of the unit(s).
Definition at line 3395 of file dialogs.cpp.
Referenced by freeciv::add_quick_unit_actions(), and mr_menu::slot_disband().
| void popup_incite_dialog | ( | struct unit * | actor, |
| struct city * | tcity, | ||
| int | cost, | ||
| const struct action * | paction | ||
| ) |
Popup a window asking a diplomatic unit if it wishes to incite the given enemy city.
Definition at line 3007 of file dialogs.cpp.
Referenced by handle_unit_action_answer().
| void popup_musicset_suggestion_dialog | ( | void | ) |
Ruleset (modpack) has suggested loading certain musicset.
Confirm from user and load.
Definition at line 3461 of file dialogs.cpp.
Referenced by handle_ruleset_control().
| void popup_notify_dialog | ( | const char * | caption, |
| const char * | headline, | ||
| const char * | lines | ||
| ) |
Popup a generic dialog to display some generic information.
Definition at line 970 of file dialogs.cpp.
Referenced by handle_page_msg_part().
| 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 944 of file dialogs.cpp.
Referenced by handle_event().
| void popup_pillage_dialog | ( | struct unit * | punit, |
| bv_extras | extras | ||
| ) |
Popup a dialog asking the unit which improvement they would like to pillage.
Definition at line 3321 of file dialogs.cpp.
Referenced by request_unit_pillage().
| void popup_races_dialog | ( | struct player * | pplayer | ) |
Popup the nation selection dialog.
Definition at line 997 of file dialogs.cpp.
Referenced by pregame_options::pick_nation(), and page_pregame::start_page_menu().
| void popup_revolution_dialog | ( | struct government * | government | ) |
Popup a dialog asking if the player wants to start a revolution.
Definition at line 1071 of file dialogs.cpp.
Referenced by gov_menu::change_gov(), and gov_menu::revolution().
| void popup_sabotage_dialog | ( | struct unit * | actor, |
| struct city * | tcity, | ||
| const struct action * | paction | ||
| ) |
Popup a dialog asking a diplomatic unit if it wishes to sabotage the given enemy city.
Definition at line 3263 of file dialogs.cpp.
Referenced by handle_city_sabotage_list().
| void popup_soundset_suggestion_dialog | ( | void | ) |
Ruleset (modpack) has suggested loading certain soundset.
Confirm from user and load.
Definition at line 3436 of file dialogs.cpp.
Referenced by handle_ruleset_control().
| bool popup_theme_suggestion_dialog | ( | const char * | theme_name | ) |
Tileset (modpack) has suggested loading certain theme.
Confirm from user and load.
Definition at line 3486 of file dialogs.cpp.
| void popup_tileset_suggestion_dialog | ( | void | ) |
Ruleset (modpack) has suggested loading certain tileset.
Confirm from user and load.
Definition at line 3405 of file dialogs.cpp.
Referenced by handle_ruleset_control().
| void popup_upgrade_dialog | ( | const std::vector< unit * > & | punits | ) |
Popup dialog for upgrade units.
Definition at line 3759 of file dialogs.cpp.
Referenced by freeciv::add_quick_unit_actions(), mr_menu::slot_upgrade(), and unit_upgrade().
| void races_toggles_set_sensitive | ( | void | ) |
In the nation selection dialog, make already-taken nations unavailable.
This information is contained in the packet_nations_used packet.
Definition at line 1061 of file dialogs.cpp.
Referenced by handle_player_info().
| void races_update_pickable | ( | bool | nationset_change | ) |
The server has changed the set of selectable nations.
Definition at line 1049 of file dialogs.cpp.
Referenced by handle_nation_availability().
Unit wants to get into some transport on given tile.
Definition at line 3827 of file dialogs.cpp.
Referenced by request_move_unit_direction(), and mr_menu::slot_load().
| void revolution_response | ( | struct government * | government | ) |
Starts revolution with targeted government as target or anarchy otherwise.
Definition at line 1630 of file dialogs.cpp.
Referenced by popup_revolution_dialog().
|
static |
Action "Build Road" for choice dialog.
Definition at line 2374 of file dialogs.cpp.
Referenced by af_map_init(), helptext_extra(), set_unit_activity_road(), and sg_load_player_unit().
| void show_tech_gained_dialog | ( | Tech_type_id | tech | ) |
Player has gained a new tech.
Definition at line 3754 of file dialogs.cpp.
Referenced by handle_research_info().
|
static |
Action establish embassy for choice dialog.
Definition at line 2831 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action investigate city for choice dialog.
Definition at line 2861 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action suitcase nuke for choice dialog.
Definition at line 2712 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action suitcase nuke escape for choice dialog.
Definition at line 2727 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action Poison City for choice dialog.
Definition at line 2682 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action Poison City Escape for choice dialog.
Definition at line 2697 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action request sabotage (and escape) list for choice dialog.
Definition at line 2663 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action request sabotage list for choice dialog.
Definition at line 2644 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action request "Surgical Strike Building" list for choice dialog.
Definition at line 2626 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action sabotage with spy for choice dialog.
Definition at line 3235 of file dialogs.cpp.
Referenced by popup_sabotage_dialog().
|
static |
Action sabotage unit for choice dialog.
Definition at line 2114 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action Sabotage Unit Escape for choice dialog.
Definition at line 2126 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action "Targeted Steal Tech" for choice dialog.
Definition at line 2587 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action "Targeted Steal Tech Escape Expected" for choice dialog.
Definition at line 2595 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action steal gold for choice dialog.
Definition at line 2771 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action steal gold escape for choice dialog.
Definition at line 2786 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action steal maps for choice dialog.
Definition at line 2801 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action steal maps escape for choice dialog.
Definition at line 2816 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action steal tech with spy for choice dialog.
Definition at line 2515 of file dialogs.cpp.
Referenced by spy_steal(), and spy_steal_esc().
|
static |
Action steal given tech for choice dialog.
Definition at line 2603 of file dialogs.cpp.
Referenced by spy_steal_shared().
|
static |
Action "Suicide Attack" for choice dialog.
Definition at line 2478 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action "Transform Terrain" for choice dialog.
Definition at line 2296 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action "Transport Alight" for choice dialog.
Definition at line 2182 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action "Transport Board" for choice dialog.
Definition at line 2149 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action "Transport Embark" for choice dialog.
Definition at line 2160 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action "Transport Unload" for choice dialog.
Definition at line 2171 of file dialogs.cpp.
Referenced by af_map_init().
| bool try_default_city_action | ( | QVariant | q1, |
| QVariant | q2 | ||
| ) |
Try to pick up default city action.
Definition at line 1315 of file dialogs.cpp.
Referenced by popup_action_selection().
| bool try_default_unit_action | ( | QVariant | q1, |
| QVariant | q2 | ||
| ) |
Try to pick up default unit action.
Definition at line 1297 of file dialogs.cpp.
Referenced by popup_action_selection().
|
static |
Action Home City for choice dialog.
Definition at line 1548 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
Action Recycle Unit for choice dialog.
Definition at line 1534 of file dialogs.cpp.
Referenced by af_map_init().
| void unit_select_dialog_popup | ( | struct tile * | ptile | ) |
Popup a dialog window to select units on a particular tile.
Definition at line 1022 of file dialogs.cpp.
Referenced by do_map_click().
| void unit_select_dialog_update_real | ( | void * | unused | ) |
Update the dialog window to select units on a particular tile.
Definition at line 1034 of file dialogs.cpp.
Referenced by unit_select_dialog_update().
|
static |
Action "Upgrade Unit" for choice dialog.
Definition at line 1562 of file dialogs.cpp.
Referenced by af_map_init().
| void update_nationset_combo | ( | ) |
Updates nationset combobox.
Definition at line 1039 of file dialogs.cpp.
Referenced by option_gui_update().
|
static |
User action handler, dispatches on target kind.
Definition at line 3182 of file dialogs.cpp.
Referenced by user_action_1(), user_action_2(), and user_action_3().
|
static |
User Action 1 for choice dialog.
Definition at line 3211 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
User Action 2 for choice dialog.
Definition at line 3219 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
User Action 3 for choice dialog.
Definition at line 3227 of file dialogs.cpp.
Referenced by af_map_init().
|
static |
User action with target kind ATK_CITY.
Definition at line 3147 of file dialogs.cpp.
Referenced by user_action().
|
static |
User action with target kind ATK_SELF.
Definition at line 3171 of file dialogs.cpp.
Referenced by user_action().
|
static |
User action with target kind ATK_TILE or ATK_UNITS.
Definition at line 3159 of file dialogs.cpp.
Referenced by user_action().
|
static |
User action with target kind ATK_UNIT.
Definition at line 3135 of file dialogs.cpp.
Referenced by user_action().
|
static |
Definition at line 269 of file dialogs.cpp.
Referenced by action_entry(), try_default_city_action(), and try_default_unit_action().
|
static |
Definition at line 165 of file dialogs.cpp.
Referenced by action_selection_close(), and diplomat_queue_handle_primary().
|
extern |
Definition at line 127 of file client_main.cpp.
Referenced by popup_tileset_suggestion_dialog().
|
static |
Definition at line 161 of file dialogs.cpp.
Referenced by action_selection_no_longer_in_progress_gui_specific(), diplomat_bribe(), diplomat_incite(), diplomat_incite_escape(), diplomat_queue_handle_primary(), diplomat_queue_handle_secondary(), popup_action_selection(), popup_bribe_dialog(), popup_incite_dialog(), popup_sabotage_dialog(), spy_request_sabotage_esc_list(), spy_request_sabotage_list(), spy_request_strike_bld_list(), and spy_steal_shared().
|
static |
Definition at line 156 of file dialogs.cpp.
Referenced by popdown_races_dialog(), popup_races_dialog(), races_dialog::races_dialog(), races_toggles_set_sensitive(), races_update_pickable(), update_nationset_combo(), and races_dialog::~races_dialog().
|
static |
Definition at line 154 of file dialogs.cpp.
Referenced by pillage_something(), and popup_pillage_dialog().
|
static |
Definition at line 155 of file dialogs.cpp.
Referenced by popdown_races_dialog(), popup_races_dialog(), races_toggles_set_sensitive(), races_update_pickable(), and update_nationset_combo().