![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include <view_nations.h>
Inheritance diagram for plr_widget:
Collaboration diagram for plr_widget:Public Slots | |
| void | display_header_menu (const QPoint) |
| Displays menu on header by right clicking. More... | |
| void | nation_selected (const QItemSelection &sl, const QItemSelection &ds) |
| Slot for selecting player/nation. More... | |
Public Member Functions | |
| plr_widget (QWidget *) | |
| Constructor for plr_widget. More... | |
| ~plr_widget () override | |
| Destructor for player widget. More... | |
| void | set_pr_rep (plr_report *pr) |
| void | restore_selection () |
| Restores selection of previously selected nation. More... | |
| plr_model * | get_model () const |
| Returns model used in widget. More... | |
Public Attributes | |
| QString | intel_str |
| QString | ally_str |
| QString | tech_str |
| struct player * | other_player |
Private Member Functions | |
| void | mousePressEvent (QMouseEvent *event) override |
| Handle mouse click. More... | |
| void | hide_columns () |
| Hides columns in plr widget, depending on info from plr_list. More... | |
Private Attributes | |
| plr_model * | list_model |
| freeciv::collated_sort_filter_proxy_model * | filter_model |
| plr_item_delegate * | pid |
| plr_report * | plr |
| QString | techs_known |
| QString | techs_unknown |
| struct player * | selected_player |
Definition at line 104 of file view_nations.h.
| plr_widget::plr_widget | ( | QWidget * | widget | ) |
Constructor for plr_widget.
Definition at line 312 of file view_nations.cpp.
|
override |
Destructor for player widget.
Definition at line 721 of file view_nations.cpp.
|
slot |
Displays menu on header by right clicking.
Definition at line 381 of file view_nations.cpp.
Referenced by plr_widget().
| plr_model * plr_widget::get_model | ( | ) | const |
Returns model used in widget.
Definition at line 716 of file view_nations.cpp.
|
private |
Hides columns in plr widget, depending on info from plr_list.
Definition at line 430 of file view_nations.cpp.
Referenced by plr_widget().
|
overrideprivate |
Handle mouse click.
Definition at line 881 of file view_nations.cpp.
|
slot |
Slot for selecting player/nation.
Definition at line 444 of file view_nations.cpp.
Referenced by plr_widget().
| void plr_widget::restore_selection | ( | ) |
Restores selection of previously selected nation.
Definition at line 352 of file view_nations.cpp.
| void plr_widget::set_pr_rep | ( | plr_report * | pr | ) |
Definition at line 348 of file view_nations.cpp.
| QString plr_widget::ally_str |
Definition at line 121 of file view_nations.h.
Referenced by nation_selected().
|
private |
Definition at line 107 of file view_nations.h.
Referenced by plr_widget(), restore_selection(), and ~plr_widget().
| QString plr_widget::intel_str |
Definition at line 120 of file view_nations.h.
Referenced by nation_selected().
|
private |
Definition at line 106 of file view_nations.h.
Referenced by display_header_menu(), get_model(), hide_columns(), plr_widget(), and ~plr_widget().
| struct player* plr_widget::other_player |
Definition at line 123 of file view_nations.h.
Referenced by nation_selected(), and plr_widget().
|
private |
Definition at line 108 of file view_nations.h.
Referenced by plr_widget(), and ~plr_widget().
|
private |
Definition at line 109 of file view_nations.h.
Referenced by mousePressEvent(), nation_selected(), and set_pr_rep().
|
private |
Definition at line 112 of file view_nations.h.
Referenced by nation_selected(), plr_widget(), and restore_selection().
| QString plr_widget::tech_str |
Definition at line 122 of file view_nations.h.
Referenced by nation_selected().
|
private |
Definition at line 110 of file view_nations.h.
Referenced by nation_selected().
|
private |
Definition at line 111 of file view_nations.h.
Referenced by nation_selected().