![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include <diplodlg.h>
Inheritance diagram for diplo_dlg:
Collaboration diagram for diplo_dlg:Public Member Functions | |
| diplo_dlg (int counterpart, int initiated_from) | |
| Constructor for diplomacy dialog. More... | |
| ~diplo_dlg () override | |
| Destructor for diplomacy dialog. More... | |
| void | update_dlg () |
| Updates all diplomacy widgets in current dialog. More... | |
| bool | init (bool raise) |
| Initializes some data for diplomacy dialog. More... | |
| diplo_wdg * | find_widget (int counterpart) |
| Finds diplomacy widget in current dialog. More... | |
| void | close_widget (int counterpart) |
| Closes given diplomacy widget. More... | |
| void | add_widget (int counterpart, int initiated_from) |
| Creates new diplomacy widget and adds to diplomacy dialog. More... | |
| void | make_active (int party) |
| Sets given widget as active in current dialog. More... | |
Private Attributes | |
| QMap< int, diplo_wdg * > | treaty_list |
| int | index |
Definition at line 86 of file diplodlg.h.
| diplo_dlg::diplo_dlg | ( | int | counterpart, |
| int | initiated_from | ||
| ) |
Constructor for diplomacy dialog.
Definition at line 705 of file diplodlg.cpp.
|
override |
Destructor for diplomacy dialog.
Definition at line 767 of file diplodlg.cpp.
| void diplo_dlg::add_widget | ( | int | counterpart, |
| int | initiated_from | ||
| ) |
Creates new diplomacy widget and adds to diplomacy dialog.
Definition at line 714 of file diplodlg.cpp.
Referenced by diplo_dlg(), and handle_diplomacy_init_meeting().
| void diplo_dlg::close_widget | ( | int | counterpart | ) |
Closes given diplomacy widget.
Definition at line 794 of file diplodlg.cpp.
Referenced by handle_diplomacy_cancel_meeting().
| diplo_wdg * diplo_dlg::find_widget | ( | int | counterpart | ) |
Finds diplomacy widget in current dialog.
Definition at line 786 of file diplodlg.cpp.
Referenced by handle_diplomacy_accept_treaty(), handle_diplomacy_create_clause(), handle_diplomacy_init_meeting(), handle_diplomacy_remove_clause(), and make_active().
| bool diplo_dlg::init | ( | bool | raise | ) |
Initializes some data for diplomacy dialog.
Definition at line 747 of file diplodlg.cpp.
Referenced by handle_diplomacy_init_meeting().
| void diplo_dlg::make_active | ( | int | party | ) |
Sets given widget as active in current dialog.
Definition at line 733 of file diplodlg.cpp.
Referenced by handle_diplomacy_init_meeting().
| void diplo_dlg::update_dlg | ( | ) |
Updates all diplomacy widgets in current dialog.
Definition at line 809 of file diplodlg.cpp.
Referenced by handle_diplomacy_init_meeting().
|
private |
Definition at line 101 of file diplodlg.h.
Referenced by init().
Definition at line 88 of file diplodlg.h.
Referenced by add_widget(), close_widget(), find_widget(), update_dlg(), and ~diplo_dlg().