Go to the documentation of this file.
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 ()));
TutorialStateContext & context()
Context class for the tutorial state machine.
Context class for tutorial state machine.
QGraphicsTextItem * createTextItem(const QString &text, const QPoint &pos)
Factory method for text items.
void slotPrevious()
Slot called to return to previous panel.
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.
One state manages one panel of the tutorial.
virtual void end()
Transition out of this state.
int buttonMargin() const
Buttons are placed up against bottom side, and left or right side, separated by this margin.
#define LOG4CPP_INFO_S(logger)
void requestDelayedStateTransition(TutorialState tutorialState)
Request a transition to the specified state from the current state.
log4cpp::Category * mainCat
QGraphicsTextItem * createTitle(const QString &text)
Factory method for title items.
QSize backgroundSize() const
Make geometry available for layout.
QGraphicsPixmapItem * createPixmapItem(const QString &resource, const QPoint &pos)
Factory method for pixmap items.
TutorialDlg & tutorialDlg()
Access to tutorial dialogs and its scene.