Freeciv-3.2
|
#include <dialogs.h>
Public Member Functions | |
races_dialog (struct player *pplayer, QWidget *parent=0) | |
~races_dialog () | |
void | refresh () |
void | update_nationset_combo () |
Public Member Functions inherited from qfc_dialog | |
qfc_dialog (QWidget *parent) | |
void | reactivate () |
Private Slots | |
void | set_index (int index) |
void | nation_selected (const QItemSelection &sl, const QItemSelection &ds) |
void | style_selected (const QItemSelection &sl, const QItemSelection &ds) |
void | group_selected (const QItemSelection &sl, const QItemSelection &ds) |
void | nationset_changed (int index) |
void | leader_selected (int index) |
void | ok_pressed () |
void | cancel_pressed () |
void | random_pressed () |
Private Attributes | |
QGridLayout * | main_layout |
QTableWidget * | nation_tabs |
QList< QWidget * > * | nations_tabs_list |
QTableWidget * | selected_nation_tabs |
QComboBox * | leader_name |
QComboBox * | qnation_set |
QButtonGroup * | sex_buttons |
QRadioButton * | is_male |
QRadioButton * | is_female |
QTableWidget * | styles |
QTextEdit * | description |
QPushButton * | ok_button |
QPushButton * | random_button |
int | selected_nation |
int | selected_style |
struct player * | tplayer |
int | last_index |
Additional Inherited Members | |
Protected Member Functions inherited from qfc_dialog | |
void | paintEvent (QPaintEvent *event) |
void | mouseMoveEvent (QMouseEvent *event) |
void | mousePressEvent (QMouseEvent *event) |
void | mouseReleaseEvent (QMouseEvent *event) |
Constructor for selecting nations
Definition at line 429 of file dialogs.cpp.
races_dialog::~races_dialog | ( | ) |
Destructor for races dialog
Definition at line 604 of file dialogs.cpp.
|
privateslot |
Button canceling all selections has been pressed.
Definition at line 1095 of file dialogs.cpp.
Referenced by races_dialog().
|
privateslot |
|
privateslot |
Sets selected nation and updates style and leaders selector
Definition at line 755 of file dialogs.cpp.
Referenced by races_dialog().
User changed nation_set
Definition at line 1168 of file dialogs.cpp.
|
privateslot |
Button accepting all selection has been pressed, closes dialog if everything is ok
Definition at line 840 of file dialogs.cpp.
Referenced by races_dialog().
|
privateslot |
void races_dialog::refresh | ( | ) |
Sets first index to call update of nation list
Definition at line 612 of file dialogs.cpp.
Referenced by races_dialog(), races_toggles_set_sensitive(), and races_update_pickable().
Sets new nations' group by current selection, index is used only when there is no current selection.
Definition at line 695 of file dialogs.cpp.
Referenced by group_selected(), races_dialog(), and refresh().
|
privateslot |
void races_dialog::update_nationset_combo | ( | ) |
Updates nation_set combo ( usually called from option change )
Definition at line 662 of file dialogs.cpp.
Referenced by races_dialog(), and update_nationset_combo().
|
private |
Definition at line 141 of file dialogs.h.
Referenced by nation_selected(), and races_dialog().
|
private |
Definition at line 139 of file dialogs.h.
Referenced by leader_selected(), and races_dialog().
|
private |
Definition at line 138 of file dialogs.h.
Referenced by leader_selected(), and races_dialog().
|
private |
Definition at line 166 of file dialogs.h.
Referenced by set_index().
|
private |
Definition at line 135 of file dialogs.h.
Referenced by leader_selected(), nation_selected(), ok_pressed(), and races_dialog().
|
private |
Definition at line 131 of file dialogs.h.
Referenced by races_dialog().
|
private |
Definition at line 132 of file dialogs.h.
Referenced by races_dialog(), refresh(), and set_index().
|
private |
Definition at line 142 of file dialogs.h.
Referenced by races_dialog().
|
private |
Definition at line 136 of file dialogs.h.
Referenced by nationset_changed(), races_dialog(), and update_nationset_combo().
|
private |
Definition at line 143 of file dialogs.h.
Referenced by races_dialog().
|
private |
Definition at line 163 of file dialogs.h.
Referenced by nation_selected(), ok_pressed(), and races_dialog().
|
private |
Definition at line 134 of file dialogs.h.
Referenced by races_dialog(), and set_index().
|
private |
Definition at line 164 of file dialogs.h.
Referenced by ok_pressed(), races_dialog(), and style_selected().
|
private |
Definition at line 137 of file dialogs.h.
Referenced by ok_pressed(), and races_dialog().
|
private |
Definition at line 140 of file dialogs.h.
Referenced by nation_selected(), and races_dialog().
Definition at line 165 of file dialogs.h.
Referenced by nation_selected(), ok_pressed(), races_dialog(), and random_pressed().