Freeciv21
Develop your civilization from humble roots to a global empire
view_nations_data.h
Go to the documentation of this file.
1 /**************************************************************************
2  Copyright (c) 1996-2020 Freeciv21 and Freeciv contributors. This file is
3  __ __ part of Freeciv21. Freeciv21 is free software: you can
4 / \\..// \ redistribute it and/or modify it under the terms of the GNU
5  ( oo ) General Public License as published by the Free Software
6  \__/ Foundation, either version 3 of the License, or (at your
7  option) any later version. You should have received
8  a copy of the GNU General Public License along with Freeciv21. If not,
9  see https://www.gnu.org/licenses/.
10 **************************************************************************/
11 #pragma once
12 
19  COL_RIGHT_TEXT // right aligned text
20 };
21 
22 typedef int (*plr_dlg_sort_func)(const struct player *p1,
23  const struct player *p2);
24 
26  bool show;
28  const char *title; // already translated
29  QString (*func)(const struct player *); // if type = COL_*TEXT
30  bool (*bool_func)(const struct player *); // if type = COL_BOOLEAN
32  const char *tagname; // for save_options
33 };
34 
36 extern const int num_player_dlg_columns;
37 
38 QString plrdlg_col_state(const struct player *plr);
39 
41 
42 void close_intel_dialog(struct player *pplayer);
43 void update_intel_dialog(struct player *pplayer);
45 void real_players_dialog_update(void *unused);
bool(* bool_func)(const struct player *)
QString(* func)(const struct player *)
const char * tagname
plr_dlg_sort_func sort_func
enum player_dlg_column_type type
Definition: player.h:231
QString plrdlg_col_state(const struct player *plr)
Returns a translated string giving the player's "state".
void real_players_dialog_update(void *unused)
Update all information in the player list dialog.
void update_intel_dialog(struct player *pplayer)
Update the intelligence dialog for the given player.
int(* plr_dlg_sort_func)(const struct player *p1, const struct player *p2)
struct player_dlg_column player_dlg_columns[]
...
void init_player_dlg_common()
Translate all titles.
player_dlg_column_type
@ COL_TEXT
@ COL_BOOLEAN
@ COL_FLAG
@ COL_RIGHT_TEXT
@ COL_COLOR
@ COL_GOVERNMENT
void popup_players_dialog()
Display the player list dialog.
void close_intel_dialog(struct player *pplayer)
Close an intelligence dialog for the given player.
const int num_player_dlg_columns