Freeciv-3.3
|
#include <stdio.h>
#include <stdlib.h>
#include <gtk/gtk.h>
#include "fcintl.h"
#include "log.h"
#include "mem.h"
#include "shared.h"
#include "support.h"
#include "game.h"
#include "map.h"
#include "packets.h"
#include "player.h"
#include "spaceship.h"
#include "victory.h"
#include "client_main.h"
#include "climisc.h"
#include "colors.h"
#include "options.h"
#include "text.h"
#include "tilespec.h"
#include "dialogs.h"
#include "graphics.h"
#include "gui_main.h"
#include "gui_stuff.h"
#include "helpdlg.h"
#include "inputdlg.h"
#include "mapctrl.h"
#include "mapview.h"
#include "repodlgs.h"
#include "spaceshipdlg.h"
#include "speclist.h"
Go to the source code of this file.
Data Structures | |
struct | spaceship_dialog |
Macros | |
#define | SPECLIST_TAG dialog |
#define | SPECLIST_TYPE struct spaceship_dialog |
#define | dialog_list_iterate(dialoglist, pdialog) TYPED_LIST_ITERATE(struct spaceship_dialog, dialoglist, pdialog) |
#define | dialog_list_iterate_end LIST_ITERATE_END |
Functions | |
static struct spaceship_dialog * | get_spaceship_dialog (struct player *pplayer) |
static struct spaceship_dialog * | create_spaceship_dialog (struct player *pplayer) |
static void | spaceship_dialog_update_image (struct spaceship_dialog *pdialog) |
static void | spaceship_dialog_update_info (struct spaceship_dialog *pdialog) |
void | spaceship_dialog_init (void) |
void | spaceship_dialog_done (void) |
void | refresh_spaceship_dialog (struct player *pplayer) |
void | popup_spaceship_dialog (struct player *pplayer) |
void | popdown_spaceship_dialog (struct player *pplayer) |
static void | spaceship_image_canvas_draw (GtkDrawingArea *w, cairo_t *cr, int width, int height, gpointer data) |
static void | spaceship_destroy_callback (GtkWidget *w, gpointer data) |
static void | spaceship_response (struct gui_dialog *dlg, int response, gpointer data) |
Variables | |
static struct dialog_list * | dialog_list |
#define dialog_list_iterate | ( | dialoglist, | |
pdialog | |||
) | TYPED_LIST_ITERATE(struct spaceship_dialog, dialoglist, pdialog) |
Definition at line 71 of file spaceshipdlg.c.
#define dialog_list_iterate_end LIST_ITERATE_END |
Definition at line 73 of file spaceshipdlg.c.
#define SPECLIST_TAG dialog |
Definition at line 67 of file spaceshipdlg.c.
#define SPECLIST_TYPE struct spaceship_dialog |
Definition at line 68 of file spaceshipdlg.c.
|
static |
Create new spaceship dialog
Definition at line 216 of file spaceshipdlg.c.
|
static |
Get spaceship dialog about certain player
Definition at line 103 of file spaceshipdlg.c.
Popdown the dialog
Definition at line 160 of file spaceshipdlg.c.
Popup the dialog 10% inside the main-window
Definition at line 146 of file spaceshipdlg.c.
Refresh spaceship dialog of certain player
Definition at line 117 of file spaceshipdlg.c.
Spaceship dialog being destroyed
Definition at line 187 of file spaceshipdlg.c.
Free resources allocated for spaceship dialogs
Definition at line 95 of file spaceshipdlg.c.
Initialize spaceship dialogs
Definition at line 87 of file spaceshipdlg.c.
|
static |
Should also check connectedness, and show non-connected parts differently.
Definition at line 289 of file spaceshipdlg.c.
|
static |
Update spaceship dialog info label text
Definition at line 279 of file spaceshipdlg.c.
|
static |
Draw spaceship dialog canvas.
Definition at line 172 of file spaceshipdlg.c.
User has responded to spaceship dialog
Definition at line 199 of file spaceshipdlg.c.
|
static |
Definition at line 75 of file spaceshipdlg.c.