Freeciv-3.2
|
#include "fcintl.h"
#include "log.h"
#include "game.h"
#include "government.h"
#include "research.h"
#include "unitlist.h"
#include "client_main.h"
#include "text.h"
#include "cityrep.h"
#include "colors.h"
#include "dialogs.h"
#include "graphics.h"
#include "gui_id.h"
#include "gui_main.h"
#include "gui_tilespec.h"
#include "helpdlg.h"
#include "mapctrl.h"
#include "mapview.h"
#include "sprite.h"
#include "themespec.h"
#include "widget.h"
#include "repodlgs.h"
Go to the source code of this file.
Data Structures | |
struct | units_entry |
struct | rates_move |
Macros | |
#define | TARGETS_ROW 2 |
#define | TARGETS_COL 4 |
Variables | |
static struct advanced_dialog * | units_dlg = NULL |
static struct small_dialog * | units_upg_dlg = NULL |
static struct advanced_dialog * | economy_dlg = NULL |
static struct small_dialog * | economy_sell_dlg = NULL |
static struct small_dialog * | science_dlg = NULL |
static struct advanced_dialog * | change_tech_dlg = NULL |
static char | eg_buffer [150 *MAX_NUM_PLAYERS] |
static int | eg_player_count = 0 |
static int | eg_players_received = 0 |
#define TARGETS_COL 4 |
Definition at line 1817 of file repodlgs.c.
#define TARGETS_ROW 2 |
Definition at line 1816 of file repodlgs.c.
User interacted with Update button of the Rates.
Definition at line 1408 of file repodlgs.c.
Referenced by economy_report_dialog_popup().
User interacted with Cancel button of the improvement selling dialog.
Definition at line 1573 of file repodlgs.c.
Referenced by popup_sell_impr_callback().
User interacted with Cancel button of the unit upgrade dialog.
Definition at line 165 of file repodlgs.c.
Referenced by popup_upgrade_unit_callback().
User interacted with button of specific Tech.
Definition at line 2905 of file repodlgs.c.
Referenced by popup_change_research_dialog().
User chose spesic tech as research goal.
Definition at line 3103 of file repodlgs.c.
Referenced by popup_change_research_goal_dialog().
This function is used by change research and change goals dlgs.
Definition at line 2920 of file repodlgs.c.
Referenced by popup_change_research_dialog(), and popup_change_research_goal_dialog().
SDL_Surface * create_select_tech_icon | ( | utf8_str * | pstr, |
Tech_type_id | tech_id, | ||
enum tech_info_mode | mode | ||
) |
Create icon surface for a tech.
Definition at line 2423 of file repodlgs.c.
Referenced by create_tech_tree(), popup_change_research_dialog(), popup_change_research_goal_dialog(), popup_tech_info(), and spy_steal_popup_shared().
Set economy dialog widgets disabled.
Definition at line 1484 of file repodlgs.c.
Referenced by popup_sell_impr_callback().
Disable science dialog group ( without window )
Definition at line 2610 of file repodlgs.c.
Referenced by popup_change_research_dialog(), and popup_change_research_goal_dialog().
User interacted with Economy Report window.
Definition at line 1133 of file repodlgs.c.
Referenced by economy_report_dialog_popup().
Popdown the economy report.
Definition at line 1798 of file repodlgs.c.
Popup (or raise) the economy report (F5). It may or may not be modal.
Definition at line 1822 of file repodlgs.c.
Set economy dialog widgets enabled.
Definition at line 1445 of file repodlgs.c.
Referenced by cancel_sell_impr_callback(), and ok_sell_impr_callback().
Enable science dialog group ( without window )
Definition at line 2601 of file repodlgs.c.
Referenced by exit_change_tech_dlg_callback().
void endgame_report_dialog_player | ( | const struct packet_endgame_player * | packet | ) |
Received endgame report information about single player
Definition at line 3527 of file repodlgs.c.
void endgame_report_dialog_start | ( | const struct packet_endgame_report * | packet | ) |
Show a dialog with player statistics at endgame. TODO: Display all statistics in packet_endgame_report.
Definition at line 3517 of file repodlgs.c.
Close research target changing dialog.
Definition at line 2884 of file repodlgs.c.
Referenced by change_research_callback(), change_research_goal_callback(), popup_change_research_dialog(), and popup_change_research_goal_dialog().
User interacted with Economy dialog Close Dialog button.
Definition at line 1145 of file repodlgs.c.
Referenced by economy_report_dialog_popup().
User interacted with units dialog Close Dialog button.
Definition at line 333 of file repodlgs.c.
Referenced by real_activeunits_report_dialog_update().
|
static |
Fill unit types specific report data + totals.
Definition at line 74 of file repodlgs.c.
Referenced by real_units_report_dialog_update(), and units_report_dialog_popup().
Handle Rates sliders.
Definition at line 1319 of file repodlgs.c.
Referenced by economy_report_dialog_popup().
User interacted with Yes button of the improvement selling dialog.
Definition at line 1525 of file repodlgs.c.
Referenced by popup_sell_impr_callback().
User interacted with accept button of the unit upgrade dialog.
Definition at line 134 of file repodlgs.c.
Referenced by popup_upgrade_unit_callback().
Close science dialog.
Definition at line 3354 of file repodlgs.c.
Referenced by science_report_dialog_popup().
Popup dialog to change current research.
Definition at line 2934 of file repodlgs.c.
Referenced by popup_change_research_dialog_callback().
Open research target changing dialog.
Definition at line 3320 of file repodlgs.c.
Referenced by science_report_dialog_popup().
Popup dialog to change research goal.
Definition at line 3123 of file repodlgs.c.
Referenced by popup_change_research_goal_dialog_callback().
Open research goal changing dialog.
Definition at line 3337 of file repodlgs.c.
Referenced by science_report_dialog_popup().
Open improvement selling dialog.
Definition at line 1591 of file repodlgs.c.
Referenced by economy_report_dialog_popup().
Open dialog for upgrading units.
Definition at line 182 of file repodlgs.c.
Referenced by real_activeunits_report_dialog_update(), and real_units_report_dialog_update().
|
static |
Rebuild the units report.
Definition at line 356 of file repodlgs.c.
Referenced by real_units_report_dialog_update(), and units_report_dialog_popup().
Update the economy report.
Definition at line 1750 of file repodlgs.c.
Update the science report.
Definition at line 2619 of file repodlgs.c.
Update the units report.
Definition at line 892 of file repodlgs.c.
|
static |
User released mouse button while adjusting rates.
Definition at line 1194 of file repodlgs.c.
Referenced by horiz_taxrate_callback().
|
static |
User moved a mouse while adjusting rates.
Definition at line 1203 of file repodlgs.c.
Referenced by horiz_taxrate_callback().
User interacted with science dialog window.
Definition at line 3301 of file repodlgs.c.
Referenced by science_report_dialog_popup().
Close science report dialog.
Definition at line 2868 of file repodlgs.c.
Popup (or raise) the science report(F6). It may or may not be modal.
Definition at line 3366 of file repodlgs.c.
Resize and redraw the requirement tree.
Definition at line 3500 of file repodlgs.c.
Popdown all the science reports (report, change tech, change goals).
Definition at line 3479 of file repodlgs.c.
Referenced by popdown_all_game_dialogs().
User interacted with the improvement selling window.
Definition at line 1561 of file repodlgs.c.
Referenced by popup_sell_impr_callback().
Toggle Rates dialog locking checkbox.
Definition at line 1171 of file repodlgs.c.
Referenced by economy_report_dialog_popup().
User interacted with Units Report button.
Definition at line 120 of file repodlgs.c.
Referenced by real_activeunits_report_dialog_update().
Closes the units report dialog.
Definition at line 1102 of file repodlgs.c.
Popup (or raise) the units report (F2). It may or may not be modal.
Definition at line 1086 of file repodlgs.c.
User interacted with Upgrade Obsolete button of the unit upgrade dialog.
Definition at line 153 of file repodlgs.c.
Referenced by popup_upgrade_unit_callback().
|
static |
Definition at line 2418 of file repodlgs.c.
Referenced by change_research_goal_dialog_callback(), exit_change_tech_dlg_callback(), popup_change_research_dialog(), popup_change_research_goal_dialog(), science_dialog_callback(), and science_report_dialogs_popdown_all().
|
static |
Definition at line 1120 of file repodlgs.c.
Referenced by disable_economy_dlg(), economy_dialog_callback(), economy_report_dialog_popdown(), economy_report_dialog_popup(), enable_economy_dlg(), exit_economy_dialog_callback(), horiz_taxrate_callback(), ok_sell_impr_callback(), popup_sell_impr_callback(), real_economy_report_dialog_update(), and report_scroll_mouse_motion_handler().
|
static |
Definition at line 1121 of file repodlgs.c.
Referenced by cancel_sell_impr_callback(), economy_report_dialog_popdown(), exit_economy_dialog_callback(), ok_sell_impr_callback(), popup_sell_impr_callback(), and sell_impr_window_callback().
|
static |
Definition at line 3509 of file repodlgs.c.
Referenced by endgame_report_dialog_player(), and endgame_report_dialog_start().
|
static |
Definition at line 3510 of file repodlgs.c.
Referenced by endgame_report_dialog_player(), and endgame_report_dialog_start().
|
static |
Definition at line 3511 of file repodlgs.c.
Referenced by endgame_report_dialog_player(), and endgame_report_dialog_start().
|
static |
Definition at line 2416 of file repodlgs.c.
Referenced by disable_science_dialog(), enable_science_dialog(), real_science_report_dialog_update(), science_dialog_callback(), science_report_dialog_popdown(), science_report_dialog_popup(), and science_report_dialogs_popdown_all().
|
static |
Definition at line 61 of file repodlgs.c.
Referenced by exit_units_dlg_callback(), popup_upgrade_unit_callback(), real_activeunits_report_dialog_update(), real_units_report_dialog_update(), units_dialog_callback(), units_report_dialog_popdown(), and units_report_dialog_popup().
|
static |
Definition at line 62 of file repodlgs.c.
Referenced by cancel_upgrade_unit_callback(), exit_units_dlg_callback(), ok_upgrade_unit_window_callback(), popup_upgrade_unit_callback(), units_report_dialog_popdown(), and upgrade_unit_window_callback().