Freeciv-3.3
|
#include <QApplication>
#include <QCloseEvent>
#include <QGridLayout>
#include <QHeaderView>
#include <QLabel>
#include <QMenu>
#include <QSpinBox>
#include <QPainter>
#include <QPushButton>
#include "government.h"
#include "player.h"
#include "client_main.h"
#include "svgflag.h"
#include "colors.h"
#include "diplodlg.h"
#include "fc_client.h"
#include "gui_main.h"
#include "sidebar.h"
Go to the source code of this file.
Macros | |
#define | FLAG_HEIGHT_DIPLDLG 150 |
Typedefs | |
typedef advance * | p_advance |
typedef city * | p_city |
Functions | |
int | client_player_number (void) |
struct player * | player_by_number (const int player_id) |
void | qtg_recv_accept_treaty (struct treaty *ptreaty, struct player *they) |
void | qtg_init_meeting (struct treaty *ptreaty, struct player *they, struct player *initiator) |
void | qtg_prepare_clause_updt (struct treaty *ptreaty, struct player *they) |
void | qtg_recv_create_clause (struct treaty *ptreaty, struct player *they) |
void | qtg_recv_cancel_meeting (struct treaty *ptreaty, struct player *they, struct player *initiator) |
void | qtg_recv_remove_clause (struct treaty *ptreaty, struct player *they) |
void | close_all_diplomacy_dialogs (void) |
#define FLAG_HEIGHT_DIPLDLG 150 |
Definition at line 52 of file diplodlg.cpp.
Definition at line 49 of file diplodlg.cpp.
Definition at line 50 of file diplodlg.cpp.
Returns number of player attached to client.
Definition at line 1370 of file client_main.c.
Referenced by editbar_player_pov_combobox_changed(), editor_apply_tool(), and key_editor_toggle_fogofwar().
Close all open diplomacy dialogs.
Called when the client disconnects from game.
Definition at line 1107 of file diplodlg.cpp.
Return struct player pointer for the given player index.
You can retrieve players that are not in the game (with IDs larger than player_count). An out-of-range player request will return NULL.
Definition at line 849 of file player.c.
Referenced by aifill(), api_find_player(), begin_phase(), button_press_callback(), bvplayers_str(), cities_callback(), city_from_great_wonder(), client_aitoggle_player(), client_init_meeting(), client_recv_accept_treaty(), client_recv_cancel_meeting(), client_recv_create_clause(), client_recv_remove_clause(), collect_ransom(), conn_list_selection(), connect_list_right_button(), connection_list_event(), diplomacy_dialog_city_callback(), diplomacy_dialog_city_callback(), diplomacy_dialog_tech_callback(), diplomacy_dialog_tech_callback(), editbar_player_pov_combobox_changed(), editor_apply_tool(), editor_grab_applied_player(), editor_unit_virtual_create(), embassy_callback(), end_phase(), endgame_report_dialog_player(), get_info_label_text(), get_player_or_user_name(), gold_callback(), great_wonder_owner(), handle_city_info(), handle_city_short_info(), handle_diplomacy_accept_treaty_req(), handle_diplomacy_cancel_meeting_req(), handle_diplomacy_cancel_pact(), handle_diplomacy_create_clause_req(), handle_diplomacy_init_meeting_req(), handle_diplomacy_remove_clause_req(), handle_edit_city_create(), handle_edit_player(), handle_edit_player_remove(), handle_edit_player_vision(), handle_edit_tile(), handle_edit_tile_extra(), handle_edit_toggle_fogofwar(), handle_edit_unit_create(), handle_edit_unit_remove(), handle_nation_select_req(), handle_player_diplstate(), handle_player_ready(), handle_spaceship_info(), handle_tile_info(), handle_unit_short_info(), imgcolor_player(), kill_unit(), left_button_press_callback(), mapimg_checkplayers(), maps_callback(), object_extract(), objtype_get_object_from_id(), pact_callback(), player_by_name_prefix(), player_name_by_number(), 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_sship_callback(), players_sship_callback(), players_vision_callback(), players_vision_callback(), players_war_callback(), players_war_callback(), plrdlg_sort_func(), property_page_create_objects(), remove_clause_callback(), research_iter_player_valid(), research_name_translation(), research_player_iter_init(), research_pretty_name(), research_rule_name(), right_button_press_callback(), sg_load_map_owner(), sg_load_map_owner(), sg_load_player_city(), sg_load_player_city(), sg_load_player_unit(), sg_load_player_unit(), sg_load_player_vision(), sg_load_player_vision(), sg_load_player_vision_city(), sg_load_player_vision_city(), shared_tiles_callback(), shuffled_player(), start_command(), techs_callback(), texai_city_info_recv(), texai_unit_info_recv(), toggle_goto_nations_cities_dialog_callback(), unpackage_short_unit(), unpackage_unit(), update_players_menu(), endgame_report::update_report(), and vision_callback().
Handle the start of a diplomacy meeting - usually by popping up a diplomacy dialog.
Definition at line 944 of file diplodlg.cpp.
Referenced by plr_report::req_meeeting(), and setup_gui_funcs().
Prepare to clause creation or removal.
Definition at line 1030 of file diplodlg.cpp.
Referenced by setup_gui_funcs().
Update a player's acceptance status of a treaty (traditionally shown with the thumbs-up/thumbs-down sprite).
Definition at line 919 of file diplodlg.cpp.
Referenced by setup_gui_funcs().
void qtg_recv_cancel_meeting | ( | struct treaty * | ptreaty, |
struct player * | they, | ||
struct player * | initiator | ||
) |
Update the diplomacy dialog when the meeting is canceled (the dialog should be closed).
Definition at line 1062 of file diplodlg.cpp.
Referenced by setup_gui_funcs().
Update the diplomacy dialog by adding a clause.
Definition at line 1038 of file diplodlg.cpp.
Referenced by setup_gui_funcs().
Update the diplomacy dialog by removing a clause.
Definition at line 1082 of file diplodlg.cpp.
Referenced by setup_gui_funcs().