Freeciv-3.2
|
#include <diplodlg.h>
Public Member Functions | |
diplo_wdg (struct Treaty *ptreaty, struct player *they, struct player *initiator) | |
~diplo_wdg () | |
void | update_wdg () |
void | set_index (int ind) |
int | get_index () |
Data Fields | |
struct Treaty * | treaty |
Protected Member Functions | |
void | closeEvent (QCloseEvent *event) |
Private Slots | |
void | all_advances () |
void | dbl_click (QTableWidgetItem *item) |
void | give_advance (int tech) |
void | give_city (int city_num) |
void | give_embassy () |
void | give_shared_vision () |
void | gold_changed1 (int val) |
void | gold_changed2 (int val) |
void | pact_allianze () |
void | pact_ceasfire () |
void | pact_peace () |
void | response_accept () |
void | response_cancel () |
void | sea_map_clause () |
void | show_menu (struct player *pplayer) |
void | show_menu_p1 () |
void | show_menu_p2 () |
void | world_map_clause () |
void | restore_pixmap () |
Private Attributes | |
QGridLayout * | layout |
QLabel * | plr1_accept |
QLabel * | plr2_accept |
QPushButton * | accept_treaty |
QPushButton * | cancel_treaty |
QTableWidget * | text_edit |
struct player * | plr1 |
struct player * | plr2 |
int | active_menu |
struct player * | curr_player |
bool | p1_accept |
bool | p2_accept |
int | index |
Definition at line 49 of file diplodlg.h.
Constructor for diplomacy widget
Definition at line 57 of file diplodlg.cpp.
diplo_wdg::~diplo_wdg | ( | ) |
Destructor for diplomacy widget
Definition at line 260 of file diplodlg.cpp.
|
privateslot |
Give all advances menu activated
Definition at line 624 of file diplodlg.cpp.
Referenced by show_menu().
|
protected |
Received event about diplomacy widget being closed
Definition at line 289 of file diplodlg.cpp.
|
privateslot |
Double click on treaty list - it removes clicked clause from list
Definition at line 267 of file diplodlg.cpp.
Referenced by diplo_wdg().
int diplo_wdg::get_index | ( | ) |
Sets index in QTabWidget
Definition at line 690 of file diplodlg.cpp.
|
privateslot |
|
privateslot |
Give shared vision menu activated
Definition at line 508 of file diplodlg.cpp.
Referenced by show_menu().
Gold changed on first spinner
Definition at line 300 of file diplodlg.cpp.
Referenced by diplo_wdg().
Gold changed on second spinner
Definition at line 311 of file diplodlg.cpp.
Referenced by diplo_wdg().
|
privateslot |
Create alliance menu activated
Definition at line 519 of file diplodlg.cpp.
Referenced by show_menu().
|
privateslot |
Ceasefire pact menu activated
Definition at line 530 of file diplodlg.cpp.
Referenced by show_menu().
|
privateslot |
|
privateslot |
Button 'Accept treaty' has been clicked
Definition at line 764 of file diplodlg.cpp.
Referenced by diplo_wdg().
|
privateslot |
Button 'Cancel treaty' has been clicked
Definition at line 774 of file diplodlg.cpp.
Referenced by closeEvent(), and diplo_wdg().
|
privateslot |
Restores original nations pixmap
Definition at line 752 of file diplodlg.cpp.
Referenced by response_accept(), and response_cancel().
|
privateslot |
Sets index in QTabWidget
Definition at line 682 of file diplodlg.cpp.
Shows popup menu with available clauses to create
Definition at line 322 of file diplodlg.cpp.
Referenced by show_menu_p1(), and show_menu_p2().
|
privateslot |
|
privateslot |
void diplo_wdg::update_wdg | ( | ) |
Updates diplomacy widget - updates clauses and redraws pixmaps
Definition at line 698 of file diplodlg.cpp.
Referenced by diplo_wdg(), and diplo_dlg::update_dlg().
|
privateslot |
|
private |
Definition at line 55 of file diplodlg.h.
Referenced by diplo_wdg().
|
private |
Definition at line 94 of file diplodlg.h.
|
private |
Definition at line 56 of file diplodlg.h.
Referenced by diplo_wdg().
Definition at line 95 of file diplodlg.h.
Referenced by all_advances(), give_advance(), give_city(), give_embassy(), give_shared_vision(), pact_allianze(), pact_ceasfire(), pact_peace(), sea_map_clause(), show_menu(), and world_map_clause().
|
private |
Definition at line 98 of file diplodlg.h.
Referenced by get_index(), and set_index().
|
private |
Definition at line 52 of file diplodlg.h.
Referenced by diplo_wdg().
|
private |
Definition at line 96 of file diplodlg.h.
Referenced by diplo_wdg().
|
private |
Definition at line 97 of file diplodlg.h.
Referenced by diplo_wdg().
Definition at line 92 of file diplodlg.h.
Referenced by all_advances(), diplo_wdg(), give_advance(), give_city(), gold_changed2(), show_menu(), and show_menu_p1().
|
private |
Definition at line 53 of file diplodlg.h.
Referenced by diplo_wdg(), and update_wdg().
Definition at line 93 of file diplodlg.h.
Referenced by all_advances(), diplo_wdg(), give_advance(), give_city(), gold_changed1(), gold_changed2(), show_menu(), and show_menu_p2().
|
private |
Definition at line 54 of file diplodlg.h.
Referenced by diplo_wdg(), and update_wdg().
|
private |
Definition at line 57 of file diplodlg.h.
Definition at line 66 of file diplodlg.h.
Referenced by dbl_click(), diplo_wdg(), give_embassy(), give_shared_vision(), pact_allianze(), pact_ceasfire(), pact_peace(), response_accept(), response_cancel(), sea_map_clause(), update_wdg(), and world_map_clause().