Freeciv-3.1
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
#include "astring.h"
#include "fcintl.h"
#include "support.h"
#include "diptreaty.h"
#include "packets.h"
#include "nation.h"
#include "player.h"
#include "client_main.h"
#include "climisc.h"
#include "connectdlg_common.h"
#include "tilespec.h"
#include "colors.h"
#include "graphics.h"
#include "options.h"
#include "text.h"
#include "chatline.h"
#include "dialogs.h"
#include "gui_main.h"
#include "gui_stuff.h"
#include "inteldlg.h"
#include "spaceshipdlg.h"
#include "plrdlg.h"
Go to the source code of this file.
Macros | |
#define | PLR_DLG_COL_STYLE (0 + num_player_dlg_columns) |
#define | PLR_DLG_COL_WEIGHT (1 + num_player_dlg_columns) |
#define | PLR_DLG_COL_ID (2 + num_player_dlg_columns) |
#define | PLR_DLG_COL_TOOLTIP (3 + num_player_dlg_columns) |
#define | PLR_DLG_COL_TOTAL (PLR_DLG_COL_TOOLTIP + 1) |
#define | MIN_DIMENSION 5 |
Functions | |
static void | create_players_dialog (void) |
static void | players_meet_callback (GSimpleAction *action, GVariant *parameter, gpointer data) |
static void | players_war_callback (GSimpleAction *action, GVariant *parameter, gpointer data) |
static void | players_vision_callback (GSimpleAction *action, GVariant *parameter, gpointer data) |
static void | players_intel_callback (GSimpleAction *action, GVariant *parameter, gpointer data) |
static void | players_intel_wonder_callback (GSimpleAction *action, GVariant *parameter, gpointer data) |
static void | players_sship_callback (GSimpleAction *action, GVariant *parameter, gpointer data) |
static void | players_ai_toggle_callback (GSimpleAction *action, GVariant *parameter, gpointer data) |
static void | players_ai_skill_callback (GSimpleAction *action, GVariant *parameter, gpointer data) |
static void | update_views (void) |
void | popup_players_dialog (bool raise) |
void | popdown_players_dialog (void) |
GdkPixbuf * | create_player_icon (const struct player *plr) |
static void | update_players_menu (void) |
static void | selection_callback (GtkTreeSelection *selection, gpointer data) |
static gboolean | left_button_press_callback (GtkGestureClick *gesture, int n_press, double x, double y) |
static gboolean | right_button_press_callback (GtkGestureClick *gesture, int n_press, double x, double y) |
static gint | plrdlg_sort_func (GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer data) |
static GtkListStore * | players_dialog_store_new (void) |
static GMenuItem * | create_plrdlg_display_menu_item (int pos) |
static GMenuItem * | create_dead_players_menu_item (void) |
static void | toggle_view (GSimpleAction *act, GVariant *value, gpointer data) |
static void | toggle_dead_players (GSimpleAction *act, GVariant *value, gpointer data) |
static GMenu * | create_diplomacy_menu (GActionGroup *group) |
static GMenu * | create_intelligence_menu (GActionGroup *group) |
static GMenu * | create_show_menu (GActionGroup *group) |
static GMenu * | create_ai_menu (GActionGroup *group) |
GdkPixbuf * | get_flag (const struct nation_type *nation) |
static void | fill_row (GtkListStore *store, GtkTreeIter *it, const struct player *pplayer) |
static bool | player_should_be_shown (const struct player *pplayer) |
void | real_players_dialog_update (void *unused) |
static void | confirm_cancel_pact (enum clause_type clause, int plrno, char *title, char *question) |
Variables | |
struct gui_dialog * | players_dialog_shell |
static GtkWidget * | players_list |
static GtkTreeSelection * | players_selection |
static GSimpleAction * | players_int_command |
static GSimpleAction * | players_meet_command |
static GSimpleAction * | players_war_command |
static GSimpleAction * | players_vision_command |
static GSimpleAction * | players_sship_command |
static GtkListStore * | players_dialog_store |
static GMenu * | display_menu |
#define PLR_DLG_COL_ID (2 + num_player_dlg_columns) |
#define PLR_DLG_COL_STYLE (0 + num_player_dlg_columns) |
#define PLR_DLG_COL_TOOLTIP (3 + num_player_dlg_columns) |
#define PLR_DLG_COL_TOTAL (PLR_DLG_COL_TOOLTIP + 1) |
#define PLR_DLG_COL_WEIGHT (1 + num_player_dlg_columns) |
|
static |
|
static |
Create and return the "AI" menu, to adjust difficulty levels of players.
Definition at line 538 of file plrdlg.c.
Referenced by create_players_dialog().
|
static |
Create up-to-date menu item for "Dead Players" menu entry. Caller need to g_object_unref() returned item.
Definition at line 378 of file plrdlg.c.
Referenced by create_show_menu(), and toggle_dead_players().
|
static |
|
static |
GdkPixbuf * create_player_icon | ( | const struct player * | plr | ) |
|
static |
|
static |
Create up-to-date menu item for the plrdlg display menu. Caller need to g_object_unref() returned item.
Definition at line 358 of file plrdlg.c.
Referenced by create_show_menu(), and toggle_view().
|
static |
|
static |
GdkPixbuf * get_flag | ( | const struct nation_type * | nation | ) |
|
static |
Left button pressed on player list
Definition at line 218 of file plrdlg.c.
Referenced by create_players_dialog().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
void popdown_players_dialog | ( | void | ) |
void popup_players_dialog | ( | bool | raise | ) |
void real_players_dialog_update | ( | void * | unused | ) |
|
static |
Right button pressed on player list
Definition at line 252 of file plrdlg.c.
Referenced by create_players_dialog().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 95 of file plrdlg.c.
Referenced by create_show_menu(), toggle_dead_players(), and toggle_view().
struct gui_dialog* players_dialog_shell |