#include <gameview.h>
Collaboration diagram for GameView:

Public Slots | |
| void | updateAndAdvance () |
| The update and advance for the canvas. | |
Signals | |
| void | signalLeftMousePress (QPoint point) |
| Emit the signal on mouse clicks. | |
Public Member Functions | |
| GameView (QSize size, int advancePeriod, QGraphicsScene *scene, ThemeManager *theme, QWidget *parent=0) | |
| Constructor for the canvas view. | |
Protected Member Functions | |
| void | mousePressEvent (QMouseEvent *event) |
| React to mouse clicks. | |
| void | resizeEvent (QResizeEvent *e) |
| Will be called by the Qt View when its contents are resized. | |
| void | paintEvent (QPaintEvent *event) |
| Paint function for the widget, temporary fix while we wait for QGV 4.3. | |
Definition at line 41 of file gameview.h.
|
||||||||||||||||||||||||
|
Constructor for the canvas view.
Definition at line 39 of file gameview.cpp. References ThemeManager::rescale(), and updateAndAdvance(). Here is the call graph for this function: ![]() |
|
|
React to mouse clicks.
Definition at line 115 of file gameview.cpp. References signalLeftMousePress(). |
|
|
Paint function for the widget, temporary fix while we wait for QGV 4.3.
Definition at line 106 of file gameview.cpp. |
|
|
Will be called by the Qt View when its contents are resized. We adapt the canvas then.
Definition at line 85 of file gameview.cpp. References ThemeManager::aspectRatio(), global_debug, and ThemeManager::rescale(). Here is the call graph for this function: ![]() |
|
|
Emit the signal on mouse clicks.
Referenced by mousePressEvent(). |
|
|
The update and advance for the canvas. This is called by a timer at regular intervals. Definition at line 73 of file gameview.cpp. Referenced by GameView(). |
1.4.6