|
Freeciv-3.2
|
#include <math.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <gtk/gtk.h>#include <gdk/gdk.h>#include "fcintl.h"#include "log.h"#include "shared.h"#include "support.h"#include "fc_types.h"#include "game.h"#include "government.h"#include "packets.h"#include "research.h"#include "tech.h"#include "unitlist.h"#include "chatline_common.h"#include "client_main.h"#include "climisc.h"#include "control.h"#include "mapview_common.h"#include "options.h"#include "packhand_gen.h"#include "reqtree.h"#include "text.h"#include "canvas.h"#include "cityrep.h"#include "dialogs.h"#include "gui_main.h"#include "gui_stuff.h"#include "helpdlg.h"#include "plrdlg.h"#include "sprite.h"#include "repodlgs.h"Go to the source code of this file.
Data Structures | |
| class | science_report |
| struct | economy_report |
| struct | units_report |
| class | endgame_report |
Enumerations | |
| enum | science_report_columns { SRD_COL_NAME , SRD_COL_STEPS , SRD_COL_ID , SRD_COL_NUM } |
| enum | economy_report_response { ERD_RES_SELL_REDUNDANT = 1 , ERD_RES_SELL_ALL , ERD_RES_DISBAND_UNITS } |
| enum | economy_report_columns { ERD_COL_SPRITE , ERD_COL_NAME , ERD_COL_REDUNDANT , ERD_COL_COUNT , ERD_COL_COST , ERD_COL_TOTAL_COST , ERD_COL_EMPTY , ERD_COL_IS_IMPROVEMENT , ERD_COL_CID , ERD_COL_NUM } |
| enum | units_report_response { URD_RES_NEAREST = 1 , URD_RES_UPGRADE } |
| enum | units_report_columns { URD_COL_UTYPE_NAME , URD_COL_UPGRADABLE , URD_COL_N_UPGRADABLE , URD_COL_IN_PROGRESS , URD_COL_ACTIVE , URD_COL_SHIELD , URD_COL_FOOD , URD_COL_GOLD , URD_COL_EMPTY , URD_COL_TEXT_WEIGHT , URD_COL_UPG_VISIBLE , URD_COL_NUPG_VISIBLE , URD_COL_UTYPE_ID , URD_COL_NUM } |
| enum | endgame_report_columns { FRD_COL_PLAYER , FRD_COL_NATION , FRD_COL_SCORE , FRD_COL_TOOLTIP , FRD_COL_NUM } |
Variables | ||
| static struct science_report | science_report = { NULL, } | |
| static bool | science_report_no_combo_callback = FALSE | |
| static struct economy_report | economy_report = { NULL, NULL, NULL } | |
| static struct units_report | units_report = { NULL, NULL } | |
| struct { | ||
| GType type | ||
| const char * title | ||
| const char * tooltip | ||
| bool rightalign | ||
| int visible_col | ||
| } | unit_report_columns [] | |
| static struct endgame_report | endgame_report = { NULL, NULL } | |
| Enumerator | |
|---|---|
| ERD_COL_SPRITE | |
| ERD_COL_NAME | |
| ERD_COL_REDUNDANT | |
| ERD_COL_COUNT | |
| ERD_COL_COST | |
| ERD_COL_TOTAL_COST | |
| ERD_COL_EMPTY | |
| ERD_COL_IS_IMPROVEMENT | |
| ERD_COL_CID | |
| ERD_COL_NUM | |
Definition at line 806 of file repodlgs.c.
| Enumerator | |
|---|---|
| ERD_RES_SELL_REDUNDANT | |
| ERD_RES_SELL_ALL | |
| ERD_RES_DISBAND_UNITS | |
Definition at line 798 of file repodlgs.c.
| Enumerator | |
|---|---|
| FRD_COL_PLAYER | |
| FRD_COL_NATION | |
| FRD_COL_SCORE | |
| FRD_COL_TOOLTIP | |
| FRD_COL_NUM | |
Definition at line 1826 of file repodlgs.c.
| Enumerator | |
|---|---|
| SRD_COL_NAME | |
| SRD_COL_STEPS | |
| SRD_COL_ID | |
| SRD_COL_NUM | |
Definition at line 116 of file repodlgs.c.
Definition at line 1308 of file repodlgs.c.
| Enumerator | |
|---|---|
| URD_RES_NEAREST | |
| URD_RES_UPGRADE | |
Definition at line 1302 of file repodlgs.c.
|
static |
Utility for g_list_sort.
Definition at line 389 of file repodlgs.c.
|
static |
Returns the title of the column (translated).
Definition at line 844 of file repodlgs.c.
|
static |
Issue a command on the economy report.
Definition at line 971 of file repodlgs.c.
Close the economy report dialog.
Definition at line 1274 of file repodlgs.c.
Create the economy report if needed.
Definition at line 1259 of file repodlgs.c.
|
static |
Free an economy report.
Definition at line 1246 of file repodlgs.c.
|
static |
Create a new economy report.
Definition at line 1136 of file repodlgs.c.
|
static |
Called when a building or a unit type is selected in the economy list.
Definition at line 1087 of file repodlgs.c.
|
static |
Create a new economy report list store.
Definition at line 825 of file repodlgs.c.
|
static |
Update the economy report dialog.
Definition at line 876 of file repodlgs.c.
|
static |
Returns the title of the column (translated).
Definition at line 1841 of file repodlgs.c.
| void endgame_report_dialog_player | ( | const struct packet_endgame_player * | packet | ) |
Handle endgame report information about one player.
Definition at line 1930 of file repodlgs.c.
| void endgame_report_dialog_start | ( | const struct packet_endgame_report * | packet | ) |
Start building a dialog with player statistics at endgame.
Definition at line 1996 of file repodlgs.c.
|
static |
Prepare a final report.
Definition at line 1961 of file repodlgs.c.
|
static |
Fill a final report with statistics for each player.
Definition at line 1861 of file repodlgs.c.
|
static |
Returns the nearest unit of the type 'utype'.
Definition at line 1555 of file repodlgs.c.
Update the economy report dialog.
Definition at line 1284 of file repodlgs.c.
Update the science report dialog.
Definition at line 769 of file repodlgs.c.
Update the units report dialog.
Definition at line 1807 of file repodlgs.c.
|
static |
Set the diagram parent to point to 'tech' location.
Definition at line 337 of file repodlgs.c.
Recreate the req tree.
Definition at line 318 of file repodlgs.c.
|
static |
Change tech goal or research.
Definition at line 202 of file repodlgs.c.
Referenced by science_diagram_new().
Return the drawing area widget of new technology diagram. Set in 'x' the position of the current tech to center to it.
Definition at line 291 of file repodlgs.c.
|
static |
Open tech help dialog.
Definition at line 238 of file repodlgs.c.
Referenced by science_diagram_new().
|
static |
Draw the invalidated portion of the reqtree.
Definition at line 267 of file repodlgs.c.
|
static |
Get the active tech of the combo.
Definition at line 158 of file repodlgs.c.
|
static |
Set the active tech of the combo.
Definition at line 180 of file repodlgs.c.
|
static |
Activated item in the reachable techs combo box.
Definition at line 541 of file repodlgs.c.
Closes the science report dialog.
Definition at line 758 of file repodlgs.c.
Create the science report is needed.
Definition at line 734 of file repodlgs.c.
Resize and redraw the requirement tree.
Definition at line 779 of file repodlgs.c.
|
static |
Free a science report.
Definition at line 721 of file repodlgs.c.
|
static |
Activated item in the reachable goals combo box.
Definition at line 577 of file repodlgs.c.
|
static |
Initialize a science report.
Definition at line 601 of file repodlgs.c.
|
static |
Resize and redraw the requirement tree.
Definition at line 366 of file repodlgs.c.
|
static |
Show or hide unreachable techs.
Definition at line 566 of file repodlgs.c.
|
static |
Create a science report list store.
Definition at line 129 of file repodlgs.c.
|
inlinestatic |
Append a technology to the list store.
Definition at line 140 of file repodlgs.c.
|
static |
Update a science report dialog.
Definition at line 404 of file repodlgs.c.
|
static |
Gui dialog handler.
Definition at line 1587 of file repodlgs.c.
Closes the units report dialog.
Definition at line 1796 of file repodlgs.c.
Create the units report if needed.
Definition at line 1781 of file repodlgs.c.
|
static |
Free an units report.
Definition at line 1768 of file repodlgs.c.
|
static |
Create a units report.
Definition at line 1669 of file repodlgs.c.
|
static |
GtkTreeSelection "changed" signal handler.
Definition at line 1517 of file repodlgs.c.
|
static |
Create a new units report list store.
Definition at line 1364 of file repodlgs.c.
|
static |
Update the units report.
Definition at line 1381 of file repodlgs.c.
|
static |
Definition at line 796 of file repodlgs.c.
|
static |
Definition at line 1835 of file repodlgs.c.
| bool rightalign |
Definition at line 1332 of file repodlgs.c.
|
static |
Definition at line 112 of file repodlgs.c.
Definition at line 113 of file repodlgs.c.
Definition at line 1330 of file repodlgs.c.
Definition at line 1331 of file repodlgs.c.
| GType type |
Definition at line 1329 of file repodlgs.c.
| const struct { ... } unit_report_columns[] |
|
static |
Definition at line 1300 of file repodlgs.c.
| int visible_col |
Definition at line 1333 of file repodlgs.c.