|
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 gboolean | spaceship_image_canvas_expose (GtkWidget *widget, cairo_t *cr, 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 218 of file spaceshipdlg.c.
Referenced by popup_spaceship_dialog().
|
static |
Get spaceship dialog about certain player
Definition at line 103 of file spaceshipdlg.c.
Referenced by popdown_spaceship_dialog(), popup_spaceship_dialog(), and refresh_spaceship_dialog().
Popdown the dialog
Definition at line 160 of file spaceshipdlg.c.
Referenced by exit_space_dialog_callback().
Popup the dialog 10% inside the main-window
Definition at line 146 of file spaceshipdlg.c.
Referenced by main_key_down_handler(), main_key_down_handler(), players_sship_callback(), players_sship_callback(), report_spaceship_callback(), report_spaceship_callback(), mr_menu::slot_spaceship(), and spaceship_callback().
Refresh spaceship dialog of certain player
Definition at line 117 of file spaceshipdlg.c.
Referenced by create_spaceship_dialog(), handle_spaceship_info(), and popup_spaceship_dialog().
Spaceship dialog being destroyed
Definition at line 189 of file spaceshipdlg.c.
Referenced by create_spaceship_dialog().
Free resources allocated for spaceship dialogs
Definition at line 95 of file spaceshipdlg.c.
Referenced by ui_main().
Initialize spaceship dialogs
Definition at line 87 of file spaceshipdlg.c.
Referenced by activate_gui(), and ui_main().
|
static |
Should also check connectedness, and show non-connected parts differently.
Definition at line 291 of file spaceshipdlg.c.
Referenced by refresh_spaceship_dialog().
|
static |
Update spaceship dialog info label text
Definition at line 281 of file spaceshipdlg.c.
Referenced by refresh_spaceship_dialog().
|
static |
Spaceship dialog canvas got exposed
Definition at line 172 of file spaceshipdlg.c.
Referenced by create_spaceship_dialog().
User has responded to spaceship dialog
Definition at line 201 of file spaceshipdlg.c.
Referenced by create_spaceship_dialog().
|
static |
Definition at line 75 of file spaceshipdlg.c.
Referenced by create_spaceship_dialog(), get_spaceship_dialog(), popdown_spaceship_dialog(), popup_spaceship_dialog(), spaceship_destroy_callback(), spaceship_dialog_done(), and spaceship_dialog_init().