#include <strokesviewer.h>
Inheritance diagram for StrokesViewer:

Public Slots | |
| virtual void | animate () |
| virtual void | stopAnimation () |
Signals | |
| void | animationStarted () |
| void | animationStopped () |
Public Member Functions | |
| StrokesViewer (QWidget *parent=0) | |
| StrokesViewer (const StrokeList &strokes, QWidget *parent=0) | |
| virtual | ~StrokesViewer () |
| const StrokeList & | strokes () const |
| virtual void | setStrokes (const StrokeList &strokes, bool updateWidget=true) |
| const QPen & | pen () const |
| virtual void | setPen (const QPen &pen, bool updateWidget=true) |
| const QBrush & | backgroundBrush () const |
| virtual void | setBackgroundBrush (const QBrush &brush, bool updateWidget=true) |
| const QPen & | gridPen () const |
| virtual void | setGridPen (const QPen &pen, bool updateWidget=true) |
| bool | isAnimating () const |
Protected Member Functions | |
| StrokeList & | strokesRef () |
| StrokesPainterPath & | pathRef () |
| virtual void | paintEvent (QPaintEvent *event) |
| virtual void | timerEvent (QTimerEvent *event) |
| StrokesViewer::StrokesViewer | ( | QWidget * | parent = 0 |
) |
Default constructor.
| StrokesViewer::StrokesViewer | ( | const StrokeList & | strokes, | |
| QWidget * | parent = 0 | |||
| ) |
Convenience constructor.
Calls setStrokes(). Hence, all strokes specific initialisation can be left to setStrokes() or a re-implementation of it.
| virtual StrokesViewer::~StrokesViewer | ( | ) | [inline, virtual] |
| const StrokeList& StrokesViewer::strokes | ( | ) | const [inline] |
| void StrokesViewer::setStrokes | ( | const StrokeList & | strokes, | |
| bool | updateWidget = true | |||
| ) | [virtual] |
Changes the strokes that should be viewed and then calls for an update() if requested.
Reimplemented in StrokesEditor.
| const QPen& StrokesViewer::pen | ( | ) | const [inline] |
| void StrokesViewer::setPen | ( | const QPen & | pen, | |
| bool | updateWidget = true | |||
| ) | [virtual] |
Changes the pen that should be used for painting and then calls for an update() if requested.
| const QBrush& StrokesViewer::backgroundBrush | ( | ) | const [inline] |
| void StrokesViewer::setBackgroundBrush | ( | const QBrush & | brush, | |
| bool | updateWidget = true | |||
| ) | [virtual] |
Changes the brush that should be used for the background and then calls for an update() if requested.
| const QPen& StrokesViewer::gridPen | ( | ) | const [inline] |
| void StrokesViewer::setGridPen | ( | const QPen & | pen, | |
| bool | updateWidget = true | |||
| ) | [virtual] |
Changes the pen that should be used for the grid and then calls for an update() if requested.
| bool StrokesViewer::isAnimating | ( | ) | const [inline] |
| void StrokesViewer::animationStarted | ( | ) | [signal] |
| void StrokesViewer::animationStopped | ( | ) | [signal] |
| void StrokesViewer::animate | ( | ) | [virtual, slot] |
Emits animationStarted().
| void StrokesViewer::stopAnimation | ( | ) | [virtual, slot] |
Emits animationStopped().
| StrokeList& StrokesViewer::strokesRef | ( | ) | [inline, protected] |
| StrokesPainterPath& StrokesViewer::pathRef | ( | ) | [inline, protected] |
| void StrokesViewer::paintEvent | ( | QPaintEvent * | event | ) | [protected, virtual] |
| void StrokesViewer::timerEvent | ( | QTimerEvent * | event | ) | [protected, virtual] |
Progressively builds the path given the current strokes's strokes.
1.5.2