Freeciv-3.2
|
#include <repodlgs.h>
Public Member Functions | |
research_diagram (QWidget *parent=nullptr) | |
~research_diagram () | |
void | update_reqtree () |
void | reset () |
QSize | size () |
Private Slots | |
void | show_tooltip () |
Private Member Functions | |
void | mousePressEvent (QMouseEvent *event) |
void | mouseMoveEvent (QMouseEvent *event) |
void | paintEvent (QPaintEvent *event) |
void | create_tooltip_help () |
Private Attributes | |
struct canvas * | pcanvas |
struct reqtree * | req |
bool | timer_active |
int | width |
int | height |
QList< req_tooltip_help * > | tt_help |
QPoint | tooltip_pos |
QString | tooltip_text |
QRect | tooltip_rect |
Definition at line 139 of file repodlgs.h.
research_diagram::research_diagram | ( | QWidget * | parent = nullptr | ) |
Constructor for research diagram
Definition at line 553 of file repodlgs.cpp.
research_diagram::~research_diagram | ( | ) |
Destructor for research diagram
Definition at line 564 of file repodlgs.cpp.
|
private |
Create list of rectangles for showing tooltips
Definition at line 585 of file repodlgs.cpp.
Referenced by update_reqtree().
|
private |
Mouse move handler for research_diagram - for showing tooltips
Definition at line 767 of file repodlgs.cpp.
|
private |
Mouse handler for research_diagram
Definition at line 720 of file repodlgs.cpp.
|
private |
Paint event for research_diagram
Definition at line 840 of file repodlgs.cpp.
void research_diagram::reset | ( | ) |
Initializes research diagram
Definition at line 701 of file repodlgs.cpp.
Referenced by research_diagram(), science_report::reset_tree(), and update_reqtree().
|
privateslot |
Slot for timer used to show tooltip
Definition at line 825 of file repodlgs.cpp.
Referenced by mouseMoveEvent().
QSize research_diagram::size | ( | ) |
Returns size of research_diagram
Definition at line 852 of file repodlgs.cpp.
Referenced by science_report::reset_tree(), and science_report::science_report().
void research_diagram::update_reqtree | ( | ) |
Recreates whole diagram and schedules update
Definition at line 690 of file repodlgs.cpp.
Referenced by science_report::update_reqtree().
|
private |
Definition at line 160 of file repodlgs.h.
Referenced by paintEvent(), reset(), size(), and update_reqtree().
Definition at line 156 of file repodlgs.h.
Referenced by paintEvent(), research_diagram(), reset(), update_reqtree(), and ~research_diagram().
Definition at line 157 of file repodlgs.h.
Referenced by create_tooltip_help(), mousePressEvent(), research_diagram(), reset(), update_reqtree(), and ~research_diagram().
|
private |
Definition at line 158 of file repodlgs.h.
Referenced by mouseMoveEvent(), reset(), and show_tooltip().
|
private |
Definition at line 162 of file repodlgs.h.
Referenced by mouseMoveEvent(), and show_tooltip().
|
private |
Definition at line 164 of file repodlgs.h.
Referenced by mouseMoveEvent(), and show_tooltip().
|
private |
Definition at line 163 of file repodlgs.h.
Referenced by mouseMoveEvent(), and show_tooltip().
|
private |
Definition at line 161 of file repodlgs.h.
Referenced by create_tooltip_help(), mouseMoveEvent(), mousePressEvent(), and ~research_diagram().
|
private |
Definition at line 159 of file repodlgs.h.
Referenced by paintEvent(), reset(), size(), and update_reqtree().