![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include <gotodlg.h>
Inheritance diagram for goto_dialog:
Collaboration diagram for goto_dialog:Public Member Functions | |
| goto_dialog (QWidget *parent=0) | |
| Constructor for goto_dialog. More... | |
| void | init () |
| Sets variables which must be destroyed later. More... | |
| ~goto_dialog () override | |
| Destructor for goto dialog. More... | |
| void | update_dlg () |
| Updates table in widget. More... | |
| void | show_me () |
| Shows and moves widget. More... | |
| void | sort_def () |
| Sorts dialog by default column (0) More... | |
Protected Member Functions | |
| void | paint (QPainter *painter, QPaintEvent *event) |
| Paints rectangles for goto_dialog. More... | |
| void | paintEvent (QPaintEvent *event) override |
| Paint event for goto_dialog. More... | |
Private Slots | |
| void | go_to_city () |
| Slot for goto for city. More... | |
| void | airlift_to () |
| Slot for airlifting unit. More... | |
| void | close_dlg () |
| Slot for hiding dialog. More... | |
| void | item_selected (const QItemSelection &sl, const QItemSelection &ds) |
| User has chosen some city on table. More... | |
| void | checkbox_changed (int state) |
| Slot for checkbox 'all nations'. More... | |
Private Member Functions | |
| void | fill_tab (struct player *pplayer) |
| Helper for function for filling table. More... | |
Private Attributes | |
| QTableWidget * | goto_tab |
| QPushButton * | goto_city |
| QPushButton * | airlift_city |
| QPushButton * | close_but |
| QCheckBox * | show_all |
| QGridLayout * | layout |
| QLabel * | show_all_label |
| struct tile * | original_tile |
| goto_dialog::goto_dialog | ( | QWidget * | parent = 0 | ) |
Constructor for goto_dialog.
Definition at line 38 of file gotodlg.cpp.
|
override |
Destructor for goto dialog.
Definition at line 109 of file gotodlg.cpp.
|
privateslot |
|
privateslot |
Slot for checkbox 'all nations'.
Definition at line 119 of file gotodlg.cpp.
Referenced by goto_dialog().
|
privateslot |
|
private |
Helper for function for filling table.
Definition at line 215 of file gotodlg.cpp.
Referenced by update_dlg().
|
privateslot |
| void goto_dialog::init | ( | ) |
Sets variables which must be destroyed later.
Definition at line 98 of file gotodlg.cpp.
Referenced by popup_goto_dialog().
|
privateslot |
User has chosen some city on table.
Definition at line 128 of file gotodlg.cpp.
Referenced by goto_dialog().
|
protected |
Paints rectangles for goto_dialog.
Definition at line 314 of file gotodlg.cpp.
Referenced by paintEvent().
|
overrideprotected |
Paint event for goto_dialog.
Definition at line 326 of file gotodlg.cpp.
| void goto_dialog::show_me | ( | ) |
Shows and moves widget.
Definition at line 175 of file gotodlg.cpp.
Referenced by popup_goto_dialog().
| void goto_dialog::sort_def | ( | ) |
Sorts dialog by default column (0)
Definition at line 167 of file gotodlg.cpp.
Referenced by popup_goto_dialog().
| void goto_dialog::update_dlg | ( | ) |
Updates table in widget.
Definition at line 195 of file gotodlg.cpp.
Referenced by checkbox_changed(), and popup_goto_dialog().
|
private |
Definition at line 31 of file gotodlg.h.
Referenced by goto_dialog(), and item_selected().
|
private |
Definition at line 32 of file gotodlg.h.
Referenced by goto_dialog().
|
private |
Definition at line 30 of file gotodlg.h.
Referenced by goto_dialog().
|
private |
Definition at line 29 of file gotodlg.h.
Referenced by airlift_to(), fill_tab(), go_to_city(), goto_dialog(), item_selected(), sort_def(), and update_dlg().
|
private |
Definition at line 34 of file gotodlg.h.
Referenced by goto_dialog().
|
private |
Definition at line 58 of file gotodlg.h.
Referenced by close_dlg(), goto_dialog(), init(), and ~goto_dialog().
|
private |
Definition at line 33 of file gotodlg.h.
Referenced by goto_dialog(), and update_dlg().
|
private |
Definition at line 35 of file gotodlg.h.
Referenced by goto_dialog().