Freeciv-3.1
|
#include <gtk/gtk.h>
#include "fcintl.h"
#include "log.h"
#include "mem.h"
#include "support.h"
#include "city.h"
#include "game.h"
#include "government.h"
#include "text.h"
#include "tilespec.h"
#include "graphics.h"
#include "gui_main.h"
#include "gui_stuff.h"
#include "happiness.h"
#include "mapview.h"
#include "speclist.h"
Go to the source code of this file.
Data Structures | |
struct | happiness_dialog |
Macros | |
#define | HAPPINESS_PIX_WIDTH 30 |
#define | FEELING_WIDTH (HAPPINESS_PIX_WIDTH * tileset_small_sprite_width(tileset)) |
#define | FEELING_HEIGHT (tileset_small_sprite_height(tileset)) |
#define | NUM_HAPPINESS_MODIFIERS 6 |
#define | SPECLIST_TAG dialog |
#define | SPECLIST_TYPE struct happiness_dialog |
#define | dialog_list_iterate(dialoglist, pdialog) TYPED_LIST_ITERATE(struct happiness_dialog, dialoglist, pdialog) |
#define | dialog_list_iterate_end LIST_ITERATE_END |
Enumerations | |
enum | { CITIES , LUXURIES , BUILDINGS , NATIONALITY , UNITS , WONDERS } |
Functions | |
static struct happiness_dialog * | get_happiness_dialog (struct city *pcity) |
static struct happiness_dialog * | create_happiness_dialog (struct city *pcity, bool low_dlg, GtkWidget *win) |
static gboolean | show_happiness_popup (GtkGestureClick *gesture, int n_press, double x, double y, gpointer data) |
void | happiness_dialog_init (void) |
void | happiness_dialog_done (void) |
static void | refresh_feeling_surface (GtkWidget *pic, cairo_surface_t *dst, struct city *pcity, enum citizen_feeling index) |
void | refresh_happiness_dialog (struct city *pcity) |
void | close_happiness_dialog (struct city *pcity) |
GtkWidget * | get_top_happiness_display (struct city *pcity, bool low_dlg, GtkWidget *win) |
Variables | |
static struct dialog_list * | dialog_list |
#define dialog_list_iterate | ( | dialoglist, | |
pdialog | |||
) | TYPED_LIST_ITERATE(struct happiness_dialog, dialoglist, pdialog) |
Definition at line 67 of file happiness.c.
#define dialog_list_iterate_end LIST_ITERATE_END |
Definition at line 69 of file happiness.c.
#define FEELING_HEIGHT (tileset_small_sprite_height(tileset)) |
Definition at line 46 of file happiness.c.
#define FEELING_WIDTH (HAPPINESS_PIX_WIDTH * tileset_small_sprite_width(tileset)) |
Definition at line 45 of file happiness.c.
#define HAPPINESS_PIX_WIDTH 30 |
Definition at line 43 of file happiness.c.
#define NUM_HAPPINESS_MODIFIERS 6 |
Definition at line 48 of file happiness.c.
#define SPECLIST_TAG dialog |
Definition at line 63 of file happiness.c.
#define SPECLIST_TYPE struct happiness_dialog |
Definition at line 64 of file happiness.c.
anonymous enum |
Enumerator | |
---|---|
CITIES | |
LUXURIES | |
BUILDINGS | |
NATIONALITY | |
UNITS | |
WONDERS |
Definition at line 50 of file happiness.c.
void close_happiness_dialog | ( | struct city * | pcity | ) |
Close happiness dialog of given city
Definition at line 309 of file happiness.c.
|
static |
Create the happiness notebook page.
Definition at line 168 of file happiness.c.
|
static |
Return happiness dialog for a city
Definition at line 99 of file happiness.c.
Create happiness dialog and get its widget
Definition at line 336 of file happiness.c.
void happiness_dialog_done | ( | void | ) |
Remove happiness dialog
Definition at line 91 of file happiness.c.
void happiness_dialog_init | ( | void | ) |
Create happiness dialog
Definition at line 83 of file happiness.c.
|
static |
Refresh citizens surface
Definition at line 267 of file happiness.c.
void refresh_happiness_dialog | ( | struct city * | pcity | ) |
Refresh whole happiness dialog
Definition at line 295 of file happiness.c.
|
static |
Popup for the happiness display.
Definition at line 113 of file happiness.c.
|
static |
Definition at line 71 of file happiness.c.