Freeciv-3.2
|
#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 |
#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 |
Button pressed on player list
Definition at line 209 of file plrdlg.c.
Referenced by create_players_dialog().
|
static |
Confirm pact/treaty cancellation. Frees strings passed in.
Definition at line 785 of file plrdlg.c.
Referenced by players_vision_callback(), players_vision_callback(), players_war_callback(), and players_war_callback().
Create and return the "diplomacy" menu for the player report. This menu contains diplomacy actions the current player can use on other nations.
Definition at line 335 of file plrdlg.c.
Referenced by create_players_dialog().
Create and return the "intelligence" menu. The items in this menu are used by the player to see more detailed information about other nations.
Definition at line 366 of file plrdlg.c.
Referenced by create_players_dialog().
Create a small colored square representing the player color, for use in player lists. May return NULL if the player has no color yet.
Definition at line 117 of file plrdlg.c.
Referenced by fill_row(), and real_conn_list_dialog_update().
Create all of player dialog
Definition at line 427 of file plrdlg.c.
Referenced by popup_players_dialog().
Create 'show' menu for player dialog
Definition at line 395 of file plrdlg.c.
Referenced by create_players_dialog().
|
static |
Fills the player list with the information for 'pplayer' at the row given by 'it'.
Definition at line 648 of file plrdlg.c.
Referenced by real_players_dialog_update().
GdkPixbuf * get_flag | ( | const struct nation_type * | nation | ) |
Builds the flag pixmap. May return NULL if there is not enough memory. You must call g_object_unref on the returned pixbuf when it is no longer needed.
Definition at line 607 of file plrdlg.c.
Referenced by citizens_dialog_row(), create_list_of_nations_in_group(), endgame_report_dialog_player(), extviewer_refresh_widgets(), extviewer_view_cell_toggled(), fill_row(), list_store_append_player_cities(), property_page_set_store_value(), real_conn_list_dialog_update(), refresh_player_pov_indicator(), and refresh_tool_applied_player_combo().
Return TRUE if the player should be shown in the player list.
Definition at line 720 of file plrdlg.c.
Referenced by real_players_dialog_update().
|
static |
AI skill level setting callback.
Definition at line 945 of file plrdlg.c.
Referenced by create_ai_menu(), and create_players_dialog().
|
static |
AI toggle callback.
Definition at line 928 of file plrdlg.c.
Referenced by create_ai_menu(), and create_players_dialog().
|
static |
Create a player dialog store.
Definition at line 266 of file plrdlg.c.
Referenced by create_players_dialog().
|
static |
Intelligence report query
Definition at line 876 of file plrdlg.c.
Referenced by create_intelligence_menu(), and create_intelligence_menu().
|
static |
Wonders list report query
Definition at line 895 of file plrdlg.c.
Referenced by create_intelligence_menu(), and create_intelligence_menu().
|
static |
Callback for diplomatic meetings button. This button is enabled iff we can meet with the other player.
Definition at line 767 of file plrdlg.c.
Referenced by create_diplomacy_menu(), and create_diplomacy_menu().
|
static |
Spaceship query callback
Definition at line 912 of file plrdlg.c.
Referenced by create_intelligence_menu(), and create_intelligence_menu().
|
static |
Withdrawing shared vision
Definition at line 849 of file plrdlg.c.
Referenced by create_diplomacy_menu(), and create_diplomacy_menu().
|
static |
Pact cancellation requested
Definition at line 808 of file plrdlg.c.
Referenced by create_diplomacy_menu(), and create_diplomacy_menu().
|
static |
Sorting function for plr dlg.
Definition at line 242 of file plrdlg.c.
Referenced by players_dialog_store_new().
Closes the players dialog.
Definition at line 105 of file plrdlg.c.
Referenced by exit_players_dlg_callback(), player_nation_callback(), and popdown_all_game_dialogs().
Popup the dialog 10% inside the main-window, and optionally raise it.
Definition at line 91 of file plrdlg.c.
Referenced by fc_client::create_game_page(), players_action_callback(), report_nations_callback(), report_nations_callback(), and mr_menu::slot_show_nations().
Clear and refill the entire player list.
Definition at line 730 of file plrdlg.c.
Referenced by create_players_dialog(), players_dialog_update(), toggle_dead_players(), and toggle_dead_players().
|
static |
Something selected from player menu
Definition at line 201 of file plrdlg.c.
Referenced by create_players_dialog().
|
static |
Called whenever player toggles the 'Show/Dead Players' menu item
Definition at line 324 of file plrdlg.c.
Referenced by create_show_menu(), and create_show_menu().
|
static |
Toggled column visibility
Definition at line 313 of file plrdlg.c.
Referenced by create_show_menu(), and create_show_menu().
Refresh players dialog views.
Definition at line 964 of file plrdlg.c.
Referenced by real_players_dialog_update(), toggle_view(), and toggle_view().
struct gui_dialog* players_dialog_shell |
Definition at line 58 of file plrdlg.c.
Referenced by create_players_dialog(), popdown_players_dialog(), popup_diplomacy_dialog(), popup_players_dialog(), and real_players_dialog_update().
|
static |
Definition at line 67 of file plrdlg.c.
Referenced by create_players_dialog(), and real_players_dialog_update().
|
static |
Definition at line 61 of file plrdlg.c.
Referenced by create_intelligence_menu(), create_intelligence_menu(), and update_players_menu().
|
static |
Definition at line 59 of file plrdlg.c.
Referenced by create_players_dialog(), and update_views().
|
static |
Definition at line 62 of file plrdlg.c.
Referenced by create_diplomacy_menu(), create_diplomacy_menu(), and update_players_menu().
|
static |
Definition at line 60 of file plrdlg.c.
Referenced by create_players_dialog(), players_ai_skill_callback(), players_ai_skill_callback(), players_ai_toggle_callback(), players_ai_toggle_callback(), players_intel_callback(), players_intel_callback(), players_intel_wonder_callback(), players_intel_wonder_callback(), players_meet_callback(), players_meet_callback(), players_sship_callback(), players_sship_callback(), players_vision_callback(), players_vision_callback(), players_war_callback(), players_war_callback(), real_players_dialog_update(), and update_players_menu().
|
static |
Definition at line 65 of file plrdlg.c.
Referenced by create_intelligence_menu(), create_intelligence_menu(), and update_players_menu().
|
static |
Definition at line 64 of file plrdlg.c.
Referenced by create_diplomacy_menu(), create_diplomacy_menu(), and update_players_menu().
|
static |
Definition at line 63 of file plrdlg.c.
Referenced by create_diplomacy_menu(), create_diplomacy_menu(), and update_players_menu().