Freeciv-3.2
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
#include "citizens.h"
#include "city.h"
#include "nation.h"
#include "player.h"
#include "gui_stuff.h"
#include "plrdlg.h"
#include "citizensinfo.h"
#include "speclist.h"
Go to the source code of this file.
Data Structures | |
struct | citizens_column |
struct | citizens_dialog |
Macros | |
#define | CITIZENS_DLG_COL_STYLE (0 + num_citizens_cols) |
#define | CITIZENS_DLG_COL_WEIGHT (1 + num_citizens_cols) |
#define | CITIZENS_DLG_COL_ID (2 + num_citizens_cols) |
#define | SPECLIST_TAG dialog |
#define | SPECLIST_TYPE struct citizens_dialog |
#define | dialog_list_iterate(dialoglist, pdialog) TYPED_LIST_ITERATE(struct citizens_dialog, dialoglist, pdialog) |
#define | dialog_list_iterate_end LIST_ITERATE_END |
Functions | |
static struct citizens_dialog * | citizens_dialog_get (const struct city *pcity) |
static struct citizens_dialog * | citizens_dialog_create (const struct city *pcity) |
static GtkTreeStore * | citizens_dialog_store_new (void) |
static int | citizens_dialog_default_sort_column (void) |
static void | citizens_dialog_row (GtkTreeStore *store, GtkTreeIter *it, const struct city *pcity, const struct player_slot *pslot) |
static const char * | col_nation (const struct city *pcity, const struct player_slot *pslot) |
static const char * | col_citizens (const struct city *pcity, const struct player_slot *pslot) |
void | citizens_dialog_init (void) |
void | citizens_dialog_done (void) |
void | citizens_dialog_refresh (const struct city *pcity) |
void | citizens_dialog_close (const struct city *pcity) |
GtkWidget * | citizens_dialog_display (const struct city *pcity) |
Variables | |
static struct citizens_column | citizens_cols [] |
static const int | num_citizens_cols = ARRAY_SIZE(citizens_cols) |
static struct dialog_list * | dialog_list |
#define CITIZENS_DLG_COL_ID (2 + num_citizens_cols) |
Definition at line 70 of file citizensinfo.c.
#define CITIZENS_DLG_COL_STYLE (0 + num_citizens_cols) |
Definition at line 68 of file citizensinfo.c.
#define CITIZENS_DLG_COL_WEIGHT (1 + num_citizens_cols) |
Definition at line 69 of file citizensinfo.c.
#define dialog_list_iterate | ( | dialoglist, | |
pdialog | |||
) | TYPED_LIST_ITERATE(struct citizens_dialog, dialoglist, pdialog) |
Definition at line 87 of file citizensinfo.c.
#define dialog_list_iterate_end LIST_ITERATE_END |
Definition at line 89 of file citizensinfo.c.
#define SPECLIST_TAG dialog |
Definition at line 83 of file citizensinfo.c.
#define SPECLIST_TYPE struct citizens_dialog |
Definition at line 84 of file citizensinfo.c.
Close citizens dialog of one city
Definition at line 362 of file citizensinfo.c.
Create citizens dialog
Definition at line 170 of file citizensinfo.c.
Returns column to sort by by default
Definition at line 162 of file citizensinfo.c.
Make citizen dialog of the city visible.
Definition at line 382 of file citizensinfo.c.
Free resources allocated for citizens dialog
Definition at line 274 of file citizensinfo.c.
Get citizen dialog of the given city
Definition at line 282 of file citizensinfo.c.
Initialize citizens dialog
Definition at line 266 of file citizensinfo.c.
Refresh citizen dialog of the given city
Definition at line 296 of file citizensinfo.c.
|
static |
Fills the citizens list with the data for 'pslot' at the row given by 'it'.
Definition at line 316 of file citizensinfo.c.
|
static |
Create a citizens dialog store.
FIXME: copy of players_dialog_store_new();
Definition at line 126 of file citizensinfo.c.
|
static |
The number of citizens for the player in the city.
Definition at line 105 of file citizensinfo.c.
|
static |
The name of the player's nation for the plrdlg.
Definition at line 96 of file citizensinfo.c.
|
static |
|
static |
Definition at line 91 of file citizensinfo.c.
|
static |
Definition at line 67 of file citizensinfo.c.