#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
#include "citizens.h"
#include "city.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.
◆ CITIZENS_DLG_COL_ID
◆ CITIZENS_DLG_COL_STYLE
◆ CITIZENS_DLG_COL_WEIGHT
◆ dialog_list_iterate
◆ dialog_list_iterate_end
◆ SPECLIST_TAG
#define SPECLIST_TAG dialog |
◆ SPECLIST_TYPE
◆ citizens_dialog_close()
void citizens_dialog_close |
( |
const struct city * |
pcity | ) |
|
◆ citizens_dialog_create()
◆ citizens_dialog_default_sort_column()
static int citizens_dialog_default_sort_column |
( |
void |
| ) |
|
|
static |
◆ citizens_dialog_display()
GtkWidget * citizens_dialog_display |
( |
const struct city * |
pcity | ) |
|
Make citizen dialog of the city visible.
Definition at line 384 of file citizensinfo.c.
◆ citizens_dialog_done()
void citizens_dialog_done |
( |
void |
| ) |
|
Free resources allocated for citizens dialog
Definition at line 276 of file citizensinfo.c.
◆ citizens_dialog_get()
◆ citizens_dialog_init()
void citizens_dialog_init |
( |
void |
| ) |
|
◆ citizens_dialog_refresh()
void citizens_dialog_refresh |
( |
const struct city * |
pcity | ) |
|
Refresh citizen dialog of the given city
Definition at line 298 of file citizensinfo.c.
◆ citizens_dialog_row()
static void citizens_dialog_row |
( |
GtkTreeStore * |
store, |
|
|
GtkTreeIter * |
it, |
|
|
const struct city * |
pcity, |
|
|
const struct player_slot * |
pslot |
|
) |
| |
|
static |
Fills the citizens list with the data for 'pslot' at the row given by 'it'.
Definition at line 318 of file citizensinfo.c.
◆ citizens_dialog_store_new()
static GtkTreeStore * citizens_dialog_store_new |
( |
void |
| ) |
|
|
static |
◆ col_citizens()
static const char * col_citizens |
( |
const struct city * |
pcity, |
|
|
const struct player_slot * |
pslot |
|
) |
| |
|
static |
The number of citizens for the player in the city.
Definition at line 105 of file citizensinfo.c.
◆ col_nation()
static const char * col_nation |
( |
const struct city * |
pcity, |
|
|
const struct player_slot * |
pslot |
|
) |
| |
|
static |
The name of the player's nation for the plrdlg.
Definition at line 96 of file citizensinfo.c.
◆ citizens_cols
Initial value:= {
}
static const char * col_citizens(const struct city *pcity, const struct player_slot *pslot)
static const char * col_nation(const struct city *pcity, const struct player_slot *pslot)
◆ dialog_list
struct dialog_list* dialog_list |
|
static |
◆ num_citizens_cols