7 #ifndef TUTORIAL_STATE_ABSTRACT_BASE_H 8 #define TUTORIAL_STATE_ABSTRACT_BASE_H 13 TUTORIAL_STATE_AXIS_POINTS,
14 TUTORIAL_STATE_CHECKLIST_WIZARD_LINES,
15 TUTORIAL_STATE_CHECKLIST_WIZARD_POINTS,
16 TUTORIAL_STATE_COLOR_FILTER,
17 TUTORIAL_STATE_CURVE_SELECTION,
18 TUTORIAL_STATE_CURVE_TYPE,
19 TUTORIAL_STATE_INTRODUCTION,
20 TUTORIAL_STATE_POINT_MATCH,
21 TUTORIAL_STATE_SEGMENT_FILL,
25 class QGraphicsPixmapItem;
26 class QGraphicsTextItem;
38 virtual void begin () = 0;
41 virtual void end () = 0;
60 QGraphicsTextItem *
createTitle (
const QString &text);
68 #endif // TUTORIAL_STATE_ABSTRACT_BASE_H One state manages one panel of the tutorial.
virtual void end()=0
Transition out of this state.
TutorialStateContext & context()
Context class for the tutorial state machine.
QGraphicsTextItem * createTextItem(const QString &text, const QPoint &pos)
Factory method for text items.
QGraphicsTextItem * createTitle(const QString &text)
Factory method for title items.
QGraphicsPixmapItem * createPixmapItem(const QString &resource, const QPoint &pos)
Factory method for pixmap items.
virtual void begin()=0
Transition into this state.
Context class for tutorial state machine.
int buttonMargin() const
Buttons are placed up against bottom side, and left or right side, separated by this margin...