Freeciv-3.1
|
#include <repodlgs.h>
Public Member Functions | |
science_report () | |
~science_report () | |
void | update_report () |
void | init () |
void | redraw () |
void | reset_tree () |
Data Fields | |
struct gui_dialog * | shell |
GtkComboBox * | reachable_techs |
GtkComboBox * | reachable_goals |
GtkWidget * | button_show_all |
GtkLabel * | main_label |
GtkProgressBar * | progress_bar |
GtkLabel * | goal_label |
GtkLayout * | drawing_area |
GtkDrawingArea * | drawing_area |
Private Slots | |
void | current_tech_changed (int index) |
void | goal_tech_changed (int index) |
Private Member Functions | |
void | update_reqtree () |
Private Attributes | |
QComboBox * | goal_combo |
QComboBox * | researching_combo |
QGridLayout * | sci_layout |
progress_bar * | progress |
QLabel * | info_label |
QLabel * | progress_label |
QList< qlist_item > * | curr_list |
QList< qlist_item > * | goal_list |
research_diagram * | res_diag |
QScrollArea * | scroll |
int | index |
Definition at line 69 of file repodlgs.c.
science_report::science_report | ( | ) |
Consctructor for science_report
Definition at line 858 of file repodlgs.cpp.
science_report::~science_report | ( | ) |
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 911 of file repodlgs.cpp.
|
privateslot |
Slot used when combo box with current tech changes
Definition at line 1121 of file repodlgs.cpp.
Referenced by science_report().
|
privateslot |
Slot used when combo box with goal have been changed
Definition at line 1137 of file repodlgs.cpp.
Referenced by science_report().
void science_report::init | ( | ) |
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 928 of file repodlgs.cpp.
Referenced by science_report_dialog_popup(), and side_left_click_science().
void science_report::redraw | ( | ) |
Schedules paint event in some qt queue
Definition at line 939 of file repodlgs.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 947 of file repodlgs.cpp.
Referenced by tileset_changed().
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 959 of file repodlgs.cpp.
Referenced by init(), real_science_report_dialog_update(), and tileset_changed().
|
private |
Calls update for research_diagram
Definition at line 1113 of file repodlgs.cpp.
Referenced by update_report().
GtkWidget * science_report::button_show_all |
Definition at line 73 of file repodlgs.c.
Referenced by science_report_init(), and science_report_redraw().
|
private |
Definition at line 182 of file repodlgs.h.
Referenced by science_report(), update_report(), and ~science_report().
GtkLayout * science_report::drawing_area |
Definition at line 77 of file repodlgs.c.
Referenced by science_report_init(), science_report_redraw(), and science_report_update().
GtkDrawingArea* science_report::drawing_area |
Definition at line 77 of file repodlgs.c.
|
private |
Definition at line 176 of file repodlgs.h.
Referenced by goal_tech_changed(), science_report(), and update_report().
GtkLabel * science_report::goal_label |
Definition at line 76 of file repodlgs.c.
Referenced by science_report_init(), and science_report_update().
|
private |
Definition at line 183 of file repodlgs.h.
Referenced by science_report(), update_report(), and ~science_report().
|
private |
Definition at line 197 of file repodlgs.h.
Referenced by init().
|
private |
Definition at line 180 of file repodlgs.h.
Referenced by science_report(), and update_report().
GtkLabel * science_report::main_label |
Definition at line 74 of file repodlgs.c.
Referenced by science_report_init(), and science_report_update().
|
private |
Definition at line 179 of file repodlgs.h.
Referenced by science_report(), and update_report().
GtkProgressBar * science_report::progress_bar |
Definition at line 75 of file repodlgs.c.
Referenced by science_report(), science_report_init(), and science_report_update().
|
private |
Definition at line 181 of file repodlgs.h.
Referenced by science_report(), and update_report().
GtkComboBox * science_report::reachable_goals |
Definition at line 72 of file repodlgs.c.
Referenced by science_report_init(), and science_report_update().
GtkComboBox * science_report::reachable_techs |
Definition at line 71 of file repodlgs.c.
Referenced by science_report_init(), and science_report_update().
|
private |
Definition at line 184 of file repodlgs.h.
Referenced by reset_tree(), science_report(), and update_reqtree().
|
private |
Definition at line 177 of file repodlgs.h.
Referenced by current_tech_changed(), science_report(), and update_report().
|
private |
Definition at line 178 of file repodlgs.h.
Referenced by science_report().
|
private |
Definition at line 185 of file repodlgs.h.
Referenced by science_report().
struct gui_dialog * science_report::shell |
Definition at line 70 of file repodlgs.c.
Referenced by real_science_report_dialog_update(), science_report_dialog_popdown(), science_report_dialog_popup(), science_report_dialog_redraw(), science_report_free(), and science_report_init().