![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include <tab_tech.h>
Inheritance diagram for tab_tech:
Collaboration diagram for tab_tech:Public Member Functions | |
| tab_tech (ruledit_gui *ui_in) | |
| Setup tab_tech object. More... | |
| void | refresh () |
| Refresh the information. More... | |
Static Public Member Functions | |
| static void | techs_to_menu (QMenu *fill_menu) |
| Fill menu with all possible tech values. More... | |
| static QString | tech_name (struct advance *padv) |
| Display name of the tech. More... | |
Private Slots | |
| void | name_given () |
| User entered name for tech. More... | |
| void | select_tech () |
| User selected tech from the list. More... | |
| void | req1_jump () |
| Req1 of the current tech selected. More... | |
| void | req2_jump () |
| Req2 of the current tech selected. More... | |
| void | root_req_jump () |
| Root req of the current tech selected. More... | |
| void | req1_menu (QAction *action) |
| User selected tech to be req1. More... | |
| void | req2_menu (QAction *action) |
| User selected tech to be req2. More... | |
| void | root_req_menu (QAction *action) |
| User selected tech to be root_req. More... | |
| void | add_now () |
| User requested new tech. More... | |
| void | delete_now () |
| User requested tech deletion. More... | |
| void | same_name_toggle (bool checked) |
| Toggled whether rule_name and name should be kept identical. More... | |
| void | edit_effects () |
| User wants to edit effects. More... | |
Private Member Functions | |
| void | update_tech_info (struct advance *adv) |
| Update info of the tech. More... | |
| QMenu * | prepare_req_button (QToolButton *button, enum tech_req rn) |
| Build tech req button. More... | |
| bool | initialize_new_tech (struct advance *padv) |
| Initialize new tech for use. More... | |
Private Attributes | |
| ruledit_gui * | ui |
| QLineEdit * | name |
| QLineEdit * | rname |
| QToolButton * | req1_button |
| QToolButton * | req2_button |
| QToolButton * | root_req_button |
| QMenu * | req1 |
| QMenu * | req2 |
| QMenu * | root_req |
| QListWidget * | tech_list |
| QRadioButton * | same_name |
| struct advance * | selected |
Definition at line 35 of file tab_tech.h.
|
explicit |
Setup tab_tech object.
Definition at line 41 of file tab_tech.cpp.
|
privateslot |
|
privateslot |
User requested tech deletion.
Definition at line 382 of file tab_tech.cpp.
Referenced by tab_tech().
|
privateslot |
|
private |
|
privateslot |
|
private |
| void tab_tech::refresh | ( | ) |
Refresh the information.
Definition at line 139 of file tab_tech.cpp.
Referenced by add_now(), delete_now(), ruledit_gui::launch_now(), name_given(), and tab_tech().
|
privateslot |
Req1 of the current tech selected.
Definition at line 265 of file tab_tech.cpp.
Referenced by tab_tech().
|
privateslot |
User selected tech to be req1.
Definition at line 296 of file tab_tech.cpp.
Referenced by prepare_req_button().
|
privateslot |
Req2 of the current tech selected.
Definition at line 275 of file tab_tech.cpp.
Referenced by tab_tech().
|
privateslot |
User selected tech to be req2.
Definition at line 314 of file tab_tech.cpp.
Referenced by prepare_req_button().
|
privateslot |
Root req of the current tech selected.
Definition at line 285 of file tab_tech.cpp.
Referenced by tab_tech().
|
privateslot |
User selected tech to be root_req.
Definition at line 332 of file tab_tech.cpp.
Referenced by prepare_req_button().
|
privateslot |
Toggled whether rule_name and name should be kept identical.
Definition at line 458 of file tab_tech.cpp.
Referenced by tab_tech().
|
privateslot |
User selected tech from the list.
Definition at line 250 of file tab_tech.cpp.
Referenced by tab_tech().
|
static |
Display name of the tech.
Definition at line 202 of file tab_tech.cpp.
Referenced by edit_utype::refresh(), techs_to_menu(), and update_tech_info().
|
static |
Fill menu with all possible tech values.
Definition at line 191 of file tab_tech.cpp.
Referenced by edit_utype::edit_utype(), and refresh().
|
private |
Update info of the tech.
Definition at line 214 of file tab_tech.cpp.
Referenced by add_now(), delete_now(), req1_jump(), req1_menu(), req2_jump(), req2_menu(), root_req_jump(), root_req_menu(), select_tech(), and tab_tech().
|
private |
Definition at line 50 of file tab_tech.h.
Referenced by name_given(), same_name_toggle(), tab_tech(), and update_tech_info().
|
private |
Definition at line 55 of file tab_tech.h.
Referenced by refresh(), and tab_tech().
|
private |
Definition at line 52 of file tab_tech.h.
Referenced by tab_tech(), and update_tech_info().
|
private |
Definition at line 56 of file tab_tech.h.
Referenced by refresh(), and tab_tech().
|
private |
Definition at line 53 of file tab_tech.h.
Referenced by tab_tech(), and update_tech_info().
|
private |
Definition at line 51 of file tab_tech.h.
Referenced by name_given(), same_name_toggle(), tab_tech(), and update_tech_info().
|
private |
Definition at line 57 of file tab_tech.h.
Referenced by refresh(), and tab_tech().
|
private |
Definition at line 54 of file tab_tech.h.
Referenced by tab_tech(), and update_tech_info().
|
private |
Definition at line 59 of file tab_tech.h.
Referenced by name_given(), tab_tech(), and update_tech_info().
|
private |
Definition at line 61 of file tab_tech.h.
Referenced by delete_now(), edit_effects(), name_given(), req1_jump(), req1_menu(), req2_jump(), req2_menu(), root_req_jump(), root_req_menu(), tab_tech(), and update_tech_info().
|
private |
Definition at line 58 of file tab_tech.h.
Referenced by refresh(), select_tech(), and tab_tech().
|
private |
Definition at line 45 of file tab_tech.h.
Referenced by delete_now(), edit_effects(), name_given(), and tab_tech().