Freeciv-3.1
|
#include <repodlgs.h>
Public Member Functions | |
research_diagram (QWidget *parent=0) | |
~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 138 of file repodlgs.h.
research_diagram::research_diagram | ( | QWidget * | parent = 0 | ) |
Constructor for research diagram
Definition at line 549 of file repodlgs.cpp.
research_diagram::~research_diagram | ( | ) |
Destructor for research diagram
Definition at line 560 of file repodlgs.cpp.
|
private |
Create list of rectangles for showing tooltips
Definition at line 581 of file repodlgs.cpp.
Referenced by update_reqtree().
|
private |
Mouse move handler for research_diagram - for showing tooltips
Definition at line 761 of file repodlgs.cpp.
|
private |
Mouse handler for research_diagram
Definition at line 714 of file repodlgs.cpp.
|
private |
Paint event for research_diagram
Definition at line 834 of file repodlgs.cpp.
void research_diagram::reset | ( | ) |
Initializes research diagram
Definition at line 694 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 819 of file repodlgs.cpp.
Referenced by mouseMoveEvent().
QSize research_diagram::size | ( | ) |
Returns size of research_diagram
Definition at line 846 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 683 of file repodlgs.cpp.
Referenced by science_report::update_reqtree().
|
private |
Definition at line 159 of file repodlgs.h.
Referenced by paintEvent(), reset(), size(), and update_reqtree().
|
private |
Definition at line 155 of file repodlgs.h.
Referenced by paintEvent(), research_diagram(), reset(), update_reqtree(), and ~research_diagram().
|
private |
Definition at line 156 of file repodlgs.h.
Referenced by create_tooltip_help(), mousePressEvent(), research_diagram(), reset(), update_reqtree(), and ~research_diagram().
|
private |
Definition at line 157 of file repodlgs.h.
Referenced by mouseMoveEvent(), reset(), and show_tooltip().
|
private |
Definition at line 161 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 162 of file repodlgs.h.
Referenced by mouseMoveEvent(), and show_tooltip().
|
private |
Definition at line 160 of file repodlgs.h.
Referenced by create_tooltip_help(), mouseMoveEvent(), mousePressEvent(), and ~research_diagram().
|
private |
Definition at line 158 of file repodlgs.h.
Referenced by paintEvent(), reset(), size(), and update_reqtree().