Freeciv-3.1
|
#include <diplodlg.h>
Public Member Functions | |
diplo_wdg (int id, int id2) | |
~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 (int player) |
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 |
int | player1 |
int | player2 |
int | active_menu |
int | curr_player |
bool | p1_accept |
bool | p2_accept |
int | index |
Definition at line 49 of file diplodlg.h.
diplo_wdg::diplo_wdg | ( | int | counterpart, |
int | initiated_from | ||
) |
Constructor for diplomacy widget
Definition at line 54 of file diplodlg.cpp.
diplo_wdg::~diplo_wdg | ( | ) |
Destructor for diplomacy widget
Definition at line 254 of file diplodlg.cpp.
|
privateslot |
Give all advances menu activated
Definition at line 606 of file diplodlg.cpp.
Referenced by show_menu().
|
protected |
Received event about diplomacy widget being closed
Definition at line 283 of file diplodlg.cpp.
|
privateslot |
Double click on treaty list - it removes clicked clause from list
Definition at line 261 of file diplodlg.cpp.
Referenced by diplo_wdg().
int diplo_wdg::get_index | ( | ) |
Sets index in QTabWidget
Definition at line 676 of file diplodlg.cpp.
Referenced by diplo_dlg::close_widget(), and diplo_dlg::~diplo_dlg().
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
Give shared vision menu activated
Definition at line 498 of file diplodlg.cpp.
Referenced by show_menu().
|
privateslot |
Gold changed on first spinner
Definition at line 294 of file diplodlg.cpp.
Referenced by diplo_wdg().
|
privateslot |
Gold changed on second spinner
Definition at line 304 of file diplodlg.cpp.
Referenced by diplo_wdg().
|
privateslot |
Create alliance menu activated
Definition at line 508 of file diplodlg.cpp.
Referenced by show_menu().
|
privateslot |
Ceasefire pact menu activated
Definition at line 518 of file diplodlg.cpp.
Referenced by show_menu().
|
privateslot |
|
privateslot |
Button 'Accept treaty' has been clicked
Definition at line 749 of file diplodlg.cpp.
Referenced by diplo_wdg().
|
privateslot |
Button 'Cancel treaty' has been clicked
Definition at line 759 of file diplodlg.cpp.
Referenced by closeEvent(), and diplo_wdg().
|
privateslot |
Restores original nations pixmap
Definition at line 737 of file diplodlg.cpp.
Referenced by response_accept(), and response_cancel().
|
privateslot |
void diplo_wdg::set_index | ( | int | ind | ) |
Sets index in QTabWidget
Definition at line 668 of file diplodlg.cpp.
Referenced by diplo_dlg::add_widget().
|
privateslot |
Shows popup menu with available clauses to create
Definition at line 314 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 684 of file diplodlg.cpp.
Referenced by diplo_wdg(), handle_diplomacy_accept_treaty(), handle_diplomacy_create_clause(), handle_diplomacy_remove_clause(), and diplo_dlg::update_dlg().
|
privateslot |
|
private |
Definition at line 55 of file diplodlg.h.
Referenced by diplo_wdg().
|
private |
Definition at line 93 of file diplodlg.h.
|
private |
Definition at line 56 of file diplodlg.h.
Referenced by diplo_wdg().
|
private |
Definition at line 94 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 97 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 95 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 91 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 92 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 53 of file diplodlg.h.
Referenced by diplo_wdg(), and update_wdg().
|
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.
struct Treaty diplo_wdg::treaty |
Definition at line 65 of file diplodlg.h.
Referenced by dbl_click(), diplo_wdg(), give_embassy(), give_shared_vision(), handle_diplomacy_accept_treaty(), handle_diplomacy_create_clause(), handle_diplomacy_remove_clause(), pact_allianze(), pact_ceasfire(), pact_peace(), response_accept(), response_cancel(), sea_map_clause(), update_wdg(), and world_map_clause().