54 QList<req_tooltip_help *> *
tt_help{
nullptr};
93 void init(
bool raise);
void show_tooltip()
Slot for timer used to show tooltip.
void reset()
Initializes research diagram.
~research_diagram() override
Destructor for research diagram.
QSize size()
Returns size of research_diagram.
bool get_tech_position(Tech_type_id id, int *x, int *y)
Find the center of a node, identified by tech id, and return true if the node was found; false otherw...
void paintEvent(QPaintEvent *event) override
Paint event for research_diagram.
void mousePressEvent(QMouseEvent *event) override
Mouse handler for research_diagram.
QList< req_tooltip_help * > * tt_help
void mouseMoveEvent(QMouseEvent *event) override
Mouse move handler for research_diagram - for showing tooltips.
research_diagram(QWidget *parent=0)
Constructor for research diagram.
void update_reqtree()
Recreates whole diagram and schedules update.
void locate_researching()
Locate the currently researched technology in tree and scroll so that it is visible.
void locate_goal()
Locate technology goal in tree and scroll so that it is visible.
QPushButton * refresh_but
QToolButton * locate_goal_but
science_report()
Consctructor for science_report.
void push_research()
Push (redo) research when qty bulbs researched is greater than the number needed.
QList< qlist_item > * curr_list
QToolButton * locate_researching_but
research_diagram * res_diag
void scroll_reqtree_to_tech(Tech_type_id id)
Scroll the science tree to display the technology identified by tech id.
QList< qlist_item > * goal_list
void update_report()
Updates all important widgets on science_report.
void redraw()
Schedules paint event in some qt queue.
void init(bool raise)
Updates science_report and marks it as opened It has to be called soon after constructor.
void update_reqtree()
Calls update for research_diagram.
void reset_tree()
Recalculates research diagram again and updates science report.
void current_tech_changed(int index)
Slot used when combo box with current tech changes.
void goal_tech_changed(int index)
Slot used when combo box with goal have been changed.
QComboBox * researching_combo
~science_report() override
Destructor for science report Removes "SCI" string marking it as closed And frees given index on list...
bool comp_less_than(const qlist_item &q1, const qlist_item &q2)
Compare unit_items (used for techs) by name.
void popdown_science_report()
Closes science report.