23#include <gdk/gdkkeysyms.h>
68#define PLR_DLG_COL_STYLE (0 + num_player_dlg_columns)
69#define PLR_DLG_COL_WEIGHT (1 + num_player_dlg_columns)
70#define PLR_DLG_COL_ID (2 + num_player_dlg_columns)
71#define PLR_DLG_COL_TOOLTIP (3 + num_player_dlg_columns)
73#define PLR_DLG_COL_TOTAL (PLR_DLG_COL_TOOLTIP + 1)
367 pos,
pcol->show ?
"true" :
"false");
452 "win.cancel_treaty"));
459 "win.withdraw_vision"));
634 switch (
pcol->type) {
639 renderer,
"pixbuf",
i,
NULL);
736#define MIN_DIMENSION 5
784 const struct player *pplayer)
793 switch (
pcol->type) {
void astr_set(struct astring *astr, const char *format,...)
char * astr_to_str(struct astring *astr)
struct canvas int int struct sprite int int int int height
struct canvas int int struct sprite int int int width
int send_chat_printf(const char *format,...)
bool can_meet_with_player(const struct player *pplayer)
bool can_intel_with_player(const struct player *pplayer)
bool can_client_issue_orders(void)
bool client_has_player(void)
struct color * get_player_color(const struct tileset *t, const struct player *pplayer)
bool player_has_color(const struct player *pplayer)
struct color * get_color(const struct tileset *t, enum color_std stdcolor)
void gtk_tree_view_focus(GtkTreeView *view)
void gui_dialog_destroy(struct gui_dialog *dlg)
void gui_dialog_present(struct gui_dialog *dlg)
void gui_dialog_raise(struct gui_dialog *dlg)
void gui_dialog_new(struct gui_dialog **pdlg, GtkNotebook *notebook, gpointer user_data, bool check_top)
void gui_dialog_show_all(struct gui_dialog *dlg)
void gui_dialog_set_title(struct gui_dialog *dlg, const char *title)
void gui_dialog_set_default_size(struct gui_dialog *dlg, int width, int height)
GtkWidget * gui_dialog_add_button(struct gui_dialog *dlg, const char *icon_name, const char *text, int response)
void setup_dialog(GtkWidget *shell, GtkWidget *parent)
void popup_intel_dialog(struct player *p)
void popup_intel_wonder_dialog(struct player *p)
static struct gui_dialog * shell
static GtkWidget * players_int_command
static void players_war_callback(GtkMenuItem *item, gpointer data)
void popdown_players_dialog(void)
static void fill_row(GtkListStore *store, GtkTreeIter *it, const struct player *pplayer)
static GtkTreeSelection * players_selection
static void update_views(void)
static GtkWidget * players_vision_command
static GtkWidget * players_list
static GtkWidget * players_sship_command
struct gui_dialog * players_dialog_shell
static void players_ai_toggle_callback(GtkMenuItem *item, gpointer data)
static void players_sship_callback(GtkMenuItem *item, gpointer data)
#define PLR_DLG_COL_WEIGHT
#define PLR_DLG_COL_STYLE
void real_players_dialog_update(void *unused)
static GtkWidget * create_diplomacy_menu(void)
static bool player_should_be_shown(const struct player *pplayer)
#define PLR_DLG_COL_TOTAL
GdkPixbuf * create_player_icon(const struct player *plr)
static GtkWidget * create_intelligence_menu(void)
void popup_players_dialog(bool raise)
static GtkListStore * players_dialog_store
static void players_intel_wonder_callback(GtkMenuItem *item, gpointer data)
static void toggle_dead_players(GtkCheckMenuItem *item, gpointer data)
#define PLR_DLG_COL_TOOLTIP
static void players_meet_callback(GtkMenuItem *item, gpointer data)
static void confirm_cancel_pact(enum clause_type clause, int plrno, char *title, char *question)
static void players_vision_callback(GtkMenuItem *item, gpointer data)
static gint plrdlg_sort_func(GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer data)
GdkPixbuf * get_flag(const struct nation_type *nation)
static GtkListStore * players_dialog_store_new(void)
static GtkWidget * players_meet_command
static void toggle_view(GtkCheckMenuItem *item, gpointer data)
static void players_ai_skill_callback(GtkMenuItem *item, gpointer data)
static void create_players_dialog(void)
static void players_intel_callback(GtkMenuItem *item, gpointer data)
static void update_players_menu(void)
static GtkWidget * create_show_menu(void)
static GtkWidget * players_war_command
static void selection_callback(GtkTreeSelection *selection, gpointer data)
void popup_spaceship_dialog(struct player *pplayer)
GdkPixbuf * surface_get_pixbuf(cairo_surface_t *surf, int width, int height)
GdkPixbuf * sprite_get_pixbuf(struct sprite *sprite)
void sprite_get_bounding_box(struct sprite *sprite, int *start_x, int *start_y, int *end_x, int *end_y)
gint blocking_dialog(GtkWidget *dlg)
GtkWidget * aux_menu_new(void)
void gui_dialog_add_content_widget(struct gui_dialog *dlg, GtkWidget *wdg)
GtkWidget * gui_dialog_add_action_widget(struct gui_dialog *dlg, GtkWidget *widget)
#define submenu_append_unref(menu, name, submenu)
#define menu_item_insert_unref(menu, index, item)
#define menu_item_append_unref(menu, item)
static GMenu * display_menu
static GMenu * create_ai_menu(GActionGroup *group)
static gboolean right_button_press_callback(GtkGestureClick *gesture, int n_press, double x, double y)
static GMenuItem * create_plrdlg_display_menu_item(int pos)
static GMenuItem * create_dead_players_menu_item(void)
static gboolean left_button_press_callback(GtkGestureClick *gesture, int n_press, double x, double y)
#define fc_assert_ret(condition)
#define fc_assert_ret_val(condition, val)
const char * nation_adjective_for_player(const struct player *pplayer)
struct nation_type * nation_of_player(const struct player *pplayer)
const char * nation_plural_for_player(const struct player *pplayer)
struct client_options gui_options
int dsend_packet_diplomacy_cancel_pact(struct connection *pc, int other_player_id, enum clause_type clause)
int dsend_packet_diplomacy_init_meeting_req(struct connection *pc, int counterpart)
bool is_settable_ai_level(enum ai_level level)
struct player * player_by_number(const int player_id)
bool players_on_same_team(const struct player *pplayer1, const struct player *pplayer2)
enum diplstate_type cancel_pact_result(enum diplstate_type oldstate)
int player_number(const struct player *pplayer)
const char * player_name(const struct player *pplayer)
enum dipl_reason pplayer_can_cancel_treaty(const struct player *p1, const struct player *p2)
struct player_diplstate * player_diplstate_get(const struct player *plr1, const struct player *plr2)
bool gives_shared_vision(const struct player *me, const struct player *them)
#define ai_level_cmd(_level_)
#define players_iterate_end
#define players_iterate(_pplayer)
static bool is_barbarian(const struct player *pplayer)
int player_dlg_default_sort_column(void)
struct player_dlg_column player_dlg_columns[]
const int num_player_dlg_columns
struct setting_list * level[OLEVELS_NUM]
bool player_dlg_show_dead_players
plr_dlg_sort_func sort_func
enum spaceship_state state
struct player_spaceship spaceship
struct player_score score
int fc_snprintf(char *str, size_t n, const char *format,...)
const char * score_tooltip(const struct player *pplayer, int score)
struct sprite * get_nation_flag_sprite(const struct tileset *t, const struct nation_type *pnation)