Freeciv-3.1
|
#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.
|
static |
User interacted with Update button of the Rates.
Definition at line 1408 of file repodlgs.c.
Referenced by economy_report_dialog_popup().
|
static |
User interacted with Cancel button of the improvement selling dialog.
Definition at line 1573 of file repodlgs.c.
Referenced by popup_sell_impr_callback().
|
static |
User interacted with Cancel button of the unit upgrade dialog.
Definition at line 165 of file repodlgs.c.
Referenced by popup_upgrade_unit_callback().
|
static |
User interacted with button of specific Tech.
Definition at line 2910 of file repodlgs.c.
Referenced by popup_change_research_dialog().
|
static |
User chose spesic tech as research goal.
Definition at line 3106 of file repodlgs.c.
Referenced by popup_change_research_goal_dialog().
|
static |
This function is used by change research and change goals dlgs.
Definition at line 2925 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().
|
static |
Set economy dialog widgets disabled.
Definition at line 1484 of file repodlgs.c.
Referenced by popup_sell_impr_callback().
|
static |
Disable science dialog group ( without window )
Definition at line 2612 of file repodlgs.c.
Referenced by popup_change_research_dialog(), and popup_change_research_goal_dialog().
|
static |
User interacted with Economy Report window.
Definition at line 1133 of file repodlgs.c.
Referenced by economy_report_dialog_popup().
void economy_report_dialog_popdown | ( | void | ) |
Popdown the economy report.
Definition at line 1798 of file repodlgs.c.
void economy_report_dialog_popup | ( | bool | make_modal | ) |
Popup (or raise) the economy report (F5). It may or may not be modal.
Definition at line 1822 of file repodlgs.c.
|
static |
Set economy dialog widgets enabled.
Definition at line 1445 of file repodlgs.c.
Referenced by cancel_sell_impr_callback(), and ok_sell_impr_callback().
|
static |
Enable science dialog group ( without window )
Definition at line 2603 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 3529 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 3519 of file repodlgs.c.
|
static |
Close research target changing dialog.
Definition at line 2889 of file repodlgs.c.
Referenced by change_research_callback(), change_research_goal_callback(), popup_change_research_dialog(), and popup_change_research_goal_dialog().
|
static |
User interacted with Economy dialog Close Dialog button.
Definition at line 1145 of file repodlgs.c.
Referenced by economy_report_dialog_popup().
|
static |
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().
|
static |
Handle Rates sliders.
Definition at line 1319 of file repodlgs.c.
Referenced by economy_report_dialog_popup().
|
static |
User interacted with Yes button of the improvement selling dialog.
Definition at line 1525 of file repodlgs.c.
Referenced by popup_sell_impr_callback().
|
static |
User interacted with accept button of the unit upgrade dialog.
Definition at line 134 of file repodlgs.c.
Referenced by popup_upgrade_unit_callback().
|
static |
Close science dialog.
Definition at line 3356 of file repodlgs.c.
Referenced by science_report_dialog_popup().
|
static |
Popup dialog to change current research.
Definition at line 2939 of file repodlgs.c.
Referenced by popup_change_research_dialog_callback().
|
static |
Open research target changing dialog.
Definition at line 3322 of file repodlgs.c.
Referenced by science_report_dialog_popup().
|
static |
Popup dialog to change research goal.
Definition at line 3126 of file repodlgs.c.
Referenced by popup_change_research_goal_dialog_callback().
|
static |
Open research goal changing dialog.
Definition at line 3339 of file repodlgs.c.
Referenced by science_report_dialog_popup().
|
static |
Open improvement selling dialog.
Definition at line 1591 of file repodlgs.c.
Referenced by economy_report_dialog_popup().
|
static |
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().
void real_economy_report_dialog_update | ( | void * | unused | ) |
Update the economy report.
Definition at line 1750 of file repodlgs.c.
void real_science_report_dialog_update | ( | void * | unused | ) |
Update the science report.
Definition at line 2621 of file repodlgs.c.
void real_units_report_dialog_update | ( | void * | unused | ) |
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().
|
static |
User interacted with science dialog window.
Definition at line 3303 of file repodlgs.c.
Referenced by science_report_dialog_popup().
|
static |
Close science report dialog.
Definition at line 2873 of file repodlgs.c.
void science_report_dialog_popup | ( | bool | raise | ) |
Popup (or raise) the science report(F6). It may or may not be modal.
Definition at line 3368 of file repodlgs.c.
void science_report_dialog_redraw | ( | void | ) |
Resize and redraw the requirement tree.
Definition at line 3502 of file repodlgs.c.
void science_report_dialogs_popdown_all | ( | void | ) |
Popdown all the science reports (report, change tech, change goals).
Definition at line 3481 of file repodlgs.c.
Referenced by popdown_all_game_dialogs().
|
static |
User interacted with the improvement selling window.
Definition at line 1561 of file repodlgs.c.
Referenced by popup_sell_impr_callback().
|
static |
Toggle Rates dialog locking checkbox.
Definition at line 1171 of file repodlgs.c.
Referenced by economy_report_dialog_popup().
|
static |
User interacted with Units Report button.
Definition at line 120 of file repodlgs.c.
Referenced by real_activeunits_report_dialog_update().
void units_report_dialog_popdown | ( | void | ) |
Closes the units report dialog.
Definition at line 1102 of file repodlgs.c.
void units_report_dialog_popup | ( | bool | make_modal | ) |
Popup (or raise) the units report (F2). It may or may not be modal.
Definition at line 1086 of file repodlgs.c.
|
static |
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 3511 of file repodlgs.c.
Referenced by endgame_report_dialog_player(), and endgame_report_dialog_start().
|
static |
Definition at line 3512 of file repodlgs.c.
Referenced by endgame_report_dialog_player(), and endgame_report_dialog_start().
|
static |
Definition at line 3513 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().