Freeciv21
Develop your civilization from humble roots to a global empire
view_nations_data.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  player_dlg_column
 

Typedefs

typedef int(* plr_dlg_sort_func) (const struct player *p1, const struct player *p2)
 

Enumerations

enum  player_dlg_column_type {
  COL_FLAG , COL_COLOR , COL_BOOLEAN , COL_GOVERNMENT ,
  COL_TEXT , COL_RIGHT_TEXT
}
 

Functions

QString plrdlg_col_state (const struct player *plr)
 Returns a translated string giving the player's "state". More...
 
void init_player_dlg_common ()
 Translate all titles. More...
 
void close_intel_dialog (struct player *pplayer)
 Close an intelligence dialog for the given player. More...
 
void update_intel_dialog (struct player *pplayer)
 Update the intelligence dialog for the given player. More...
 
void popup_players_dialog ()
 Display the player list dialog. More...
 
void real_players_dialog_update (void *unused)
 Update all information in the player list dialog. More...
 

Variables

struct player_dlg_column player_dlg_columns []
 ... More...
 
const int num_player_dlg_columns
 

Typedef Documentation

◆ plr_dlg_sort_func

typedef int(* plr_dlg_sort_func) (const struct player *p1, const struct player *p2)

Definition at line 22 of file view_nations_data.h.

Enumeration Type Documentation

◆ player_dlg_column_type

Enumerator
COL_FLAG 
COL_COLOR 
COL_BOOLEAN 
COL_GOVERNMENT 
COL_TEXT 
COL_RIGHT_TEXT 

Definition at line 13 of file view_nations_data.h.

Function Documentation

◆ close_intel_dialog()

void close_intel_dialog ( struct player pplayer)

Close an intelligence dialog for the given player.

Definition at line 1036 of file view_nations.cpp.

Referenced by handle_player_remove().

◆ init_player_dlg_common()

void init_player_dlg_common ( )

Translate all titles.

Definition at line 507 of file view_nations_data.cpp.

Referenced by client_main().

◆ plrdlg_col_state()

QString plrdlg_col_state ( const struct player plr)

Returns a translated string giving the player's "state".

FIXME: These terms aren't very intuitive for new players.

Definition at line 225 of file view_nations_data.cpp.

◆ popup_players_dialog()

void popup_players_dialog ( )

Display the player list dialog.

Definition at line 964 of file view_nations.cpp.

Referenced by pageGame::pageGame(), and mr_menu::setup_menus().

◆ real_players_dialog_update()

void real_players_dialog_update ( void *  unused)

Update all information in the player list dialog.

Definition at line 993 of file view_nations.cpp.

Referenced by close_intel_dialog(), players_dialog_update(), and update_intel_dialog().

◆ update_intel_dialog()

void update_intel_dialog ( struct player p)

Update the intelligence dialog for the given player.

This is called by the core client code when that player's information changes.

Definition at line 1032 of file view_nations.cpp.

Referenced by handle_player_info().

Variable Documentation

◆ num_player_dlg_columns

const int num_player_dlg_columns
extern

◆ player_dlg_columns