9 #include <QGraphicsPixmapItem>
10 #include <QGraphicsScene>
11 #include <QGraphicsView>
12 #include "TutorialButton.h"
13 #include "TutorialDlg.h"
14 #include "TutorialStateContext.h"
15 #include "TutorialStateIntroduction.h"
24 LOG4CPP_INFO_S ((*mainCat)) <<
"TutorialStateIntroduction::begin ()";
30 "images of graphs and maps."),
32 m_text1 =
createTextItem (tr (
"You create (or digitize) points along\n"
33 "the graph and map curves."),
35 m_text2 =
createTextItem (tr (
"The digitized curve points can be\n"
36 "exported, as numbers, to other software tools."),
42 context().tutorialDlg().scene());
45 connect (m_next, SIGNAL (signalTriggered ()),
this, SLOT (
slotNext ()));
50 LOG4CPP_INFO_S ((*mainCat)) <<
"TutorialStateIntroduction::end ()";
67 m_background =
nullptr;
76 LOG4CPP_INFO_S ((*mainCat)) <<
"TutorialStateIntroduction::slotNext";
One state manages one panel of the tutorial.
void slotNext()
Slot called when next button is triggered.
int buttonMargin() const
Buttons are placed up against bottom side, and left or right side, separated by this margin...
QGraphicsScene & scene()
Single scene the covers the entire tutorial dialog.
TutorialStateIntroduction(TutorialStateContext &context)
Single constructor.
TutorialStateContext & context()
Context class for the tutorial state machine.
QGraphicsTextItem * createTextItem(const QString &text, const QPoint &pos)
Factory method for text items.
virtual void begin()
Transition into this state.
QSize backgroundSize() const
Make geometry available for layout.
QGraphicsTextItem * createTitle(const QString &text)
Factory method for title items.
QGraphicsPixmapItem * createPixmapItem(const QString &resource, const QPoint &pos)
Factory method for pixmap items.
Context class for tutorial state machine.
virtual void end()
Transition out of this state.
void requestDelayedStateTransition(TutorialState tutorialState)
Request a transition to the specified state from the current state.
TutorialDlg & tutorialDlg()
Access to tutorial dialogs and its scene.