9 #include <QGraphicsPixmapItem> 10 #include <QGraphicsScene> 11 #include <QGraphicsView> 20 m_background (nullptr),
39 "define the coordinates. Step 1 -\n" 40 "Click on the Axis Points button"),
42 m_text1 =
createTextItem (tr (
"Step 2 - Click on an axis or grid\n" 43 "line with known coordinates. An axis\n" 44 "point appears, with a dialog window\n" 45 "for entering the axis point\n" 48 m_text2 =
createTextItem (tr (
"Step 3 - Enter the two coordinates\n" 49 "of the axis point and then click Ok.\n" 50 "Repeat steps 2 and 3 twice more\n" 51 "until three axis points are created"),
57 context().tutorialDlg().scene());
60 connect (m_previous, SIGNAL (signalTriggered ()),
this, SLOT (
slotPrevious ()));
63 context().tutorialDlg().scene());
66 connect (m_next, SIGNAL (signalTriggered ()),
this, SLOT (
slotNext ()));
One state manages one panel of the tutorial.
#define LOG4CPP_INFO_S(logger)
void slotNext()
Slot called when next button is triggered.
virtual void begin()
Transition into this state.
QGraphicsScene & scene()
Single scene the covers the entire tutorial dialog.
TutorialStateAxisPoints(TutorialStateContext &context)
Single constructor.
void slotPrevious()
Slot called to return to previous panel.
TutorialStateContext & context()
Context class for the tutorial state machine.
QGraphicsTextItem * createTextItem(const QString &text, const QPoint &pos)
Factory method for text items.
virtual void end()
Transition out of this state.
QGraphicsTextItem * createTitle(const QString &text)
Factory method for title items.
QGraphicsPixmapItem * createPixmapItem(const QString &resource, const QPoint &pos)
Factory method for pixmap items.
QSize backgroundSize() const
Make geometry available for layout.
log4cpp::Category * mainCat
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...
void requestDelayedStateTransition(TutorialState tutorialState)
Request a transition to the specified state from the current state.
TutorialDlg & tutorialDlg()
Access to tutorial dialogs and its scene.