![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include <view_research.h>
Inheritance diagram for science_report:
Collaboration diagram for science_report:Public Member Functions | |
| science_report () | |
| Consctructor for science_report. More... | |
| ~science_report () override | |
| Destructor for science report Removes "SCI" string marking it as closed And frees given index on list marking it as ready for new widget. More... | |
| void | update_report () |
| Updates all important widgets on science_report. More... | |
| void | init (bool raise) |
| Updates science_report and marks it as opened It has to be called soon after constructor. More... | |
| void | redraw () |
| Schedules paint event in some qt queue. More... | |
| void | reset_tree () |
| Recalculates research diagram again and updates science report. More... | |
Private Slots | |
| void | current_tech_changed (int index) |
| Slot used when combo box with current tech changes. More... | |
| void | goal_tech_changed (int index) |
| Slot used when combo box with goal have been changed. More... | |
| void | push_research () |
| Push (redo) research when qty bulbs researched is greater than the number needed. More... | |
| void | locate_researching () |
| Locate the currently researched technology in tree and scroll so that it is visible. More... | |
| void | locate_goal () |
| Locate technology goal in tree and scroll so that it is visible. More... | |
Private Member Functions | |
| void | update_reqtree () |
| Calls update for research_diagram. More... | |
| void | scroll_reqtree_to_tech (Tech_type_id id) |
| Scroll the science tree to display the technology identified by tech id. More... | |
Private Attributes | |
| QScrollArea * | scroll |
| QComboBox * | goal_combo |
| QComboBox * | researching_combo |
| QPushButton * | refresh_but |
| QToolButton * | locate_researching_but |
| QToolButton * | locate_goal_but |
| progress_bar * | progress |
| QLabel * | info_label |
| QLabel * | progress_label |
| QList< qlist_item > * | curr_list {nullptr} |
| QList< qlist_item > * | goal_list {nullptr} |
| research_diagram * | res_diag |
| int | index {0} |
Definition at line 73 of file view_research.h.
| science_report::science_report | ( | ) |
Consctructor for science_report.
Definition at line 277 of file view_research.cpp.
|
override |
Destructor for science report Removes "SCI" string marking it as closed And frees given index on list marking it as ready for new widget.
Definition at line 367 of file view_research.cpp.
|
privateslot |
Slot used when combo box with current tech changes.
Definition at line 589 of file view_research.cpp.
Referenced by science_report().
|
privateslot |
Slot used when combo box with goal have been changed.
Definition at line 605 of file view_research.cpp.
Referenced by science_report().
| void science_report::init | ( | bool | raise | ) |
Updates science_report and marks it as opened It has to be called soon after constructor.
It could be in constructor but compiler will yell about not used variable
Definition at line 379 of file view_research.cpp.
Referenced by science_report_dialog_popup(), and top_bar_left_click_science().
|
privateslot |
Locate technology goal in tree and scroll so that it is visible.
Definition at line 633 of file view_research.cpp.
Referenced by science_report().
|
privateslot |
Locate the currently researched technology in tree and scroll so that it is visible.
Definition at line 647 of file view_research.cpp.
Referenced by science_report().
|
privateslot |
Push (redo) research when qty bulbs researched is greater than the number needed.
Definition at line 622 of file view_research.cpp.
Referenced by science_report().
| void science_report::redraw | ( | ) |
Schedules paint event in some qt queue.
Definition at line 391 of file view_research.cpp.
Referenced by science_report_dialog_popup(), and science_report_dialog_redraw().
| void science_report::reset_tree | ( | ) |
Recalculates research diagram again and updates science report.
Definition at line 396 of file view_research.cpp.
Referenced by tileset_changed().
|
private |
Scroll the science tree to display the technology identified by tech id.
Definition at line 578 of file view_research.cpp.
Referenced by locate_goal(), and locate_researching().
| void science_report::update_report | ( | ) |
Updates all important widgets on science_report.
Collect all techs which are reachable in the next step.
Collect all techs which are reachable in next 10 steps.
sort both lists
fill combo boxes
set current tech and goal
Definition at line 408 of file view_research.cpp.
Referenced by init(), real_science_report_dialog_update(), and tileset_changed().
|
private |
Calls update for research_diagram.
Definition at line 573 of file view_research.cpp.
Referenced by update_report().
|
private |
Definition at line 85 of file view_research.h.
Referenced by update_report(), and ~science_report().
|
private |
Definition at line 77 of file view_research.h.
Referenced by goal_tech_changed(), science_report(), and update_report().
|
private |
Definition at line 86 of file view_research.h.
Referenced by update_report(), and ~science_report().
|
private |
Definition at line 99 of file view_research.h.
Referenced by init().
|
private |
Definition at line 83 of file view_research.h.
Referenced by science_report(), and update_report().
|
private |
Definition at line 81 of file view_research.h.
Referenced by science_report(), and update_report().
|
private |
Definition at line 80 of file view_research.h.
Referenced by science_report(), and update_report().
|
private |
Definition at line 82 of file view_research.h.
Referenced by science_report(), and update_report().
|
private |
Definition at line 84 of file view_research.h.
Referenced by science_report(), and update_report().
|
private |
Definition at line 79 of file view_research.h.
Referenced by science_report(), and update_report().
|
private |
Definition at line 87 of file view_research.h.
Referenced by reset_tree(), science_report(), scroll_reqtree_to_tech(), update_report(), and update_reqtree().
|
private |
Definition at line 78 of file view_research.h.
Referenced by current_tech_changed(), science_report(), and update_report().
|
private |
Definition at line 76 of file view_research.h.
Referenced by science_report(), and scroll_reqtree_to_tech().