9#include <QGraphicsPixmapItem>
10#include <QGraphicsScene>
11#include <QGraphicsView>
20 m_background (nullptr),
39 "images of graphs and maps."),
41 m_text1 =
createTextItem (tr (
"You create (or digitize) points along\n"
42 "the graph and map curves."),
44 m_text2 =
createTextItem (tr (
"The digitized curve points can be\n"
45 "exported, as numbers, to other software tools."),
51 context().tutorialDlg().scene());
52 m_next->setGeometry (QPoint (backgroundSize.width () -
buttonMargin () - m_next->size ().width (),
53 backgroundSize.height () -
buttonMargin () - m_next->size ().height ()));
54 connect (m_next, SIGNAL (signalTriggered ()),
this, SLOT (
slotNext ()));
log4cpp::Category * mainCat
@ TUTORIAL_STATE_AXIS_POINTS
QGraphicsScene & scene()
Single scene the covers the entire tutorial dialog.
QSize backgroundSize() const
Make geometry available for layout.
TutorialStateAbstractBase(TutorialStateContext &context)
Single constructor.
QGraphicsTextItem * createTitle(const QString &text)
Factory method for title items.
QGraphicsTextItem * createTextItem(const QString &text, const QPoint &pos)
Factory method for text items.
TutorialStateContext & context()
Context class for the tutorial state machine.
QGraphicsPixmapItem * createPixmapItem(const QString &resource, const QPoint &pos)
Factory method for pixmap items.
int buttonMargin() const
Buttons are placed up against bottom side, and left or right side, separated by this margin.
Context class for tutorial state machine.
void requestDelayedStateTransition(TutorialState tutorialState)
Request a transition to the specified state from the current state.
TutorialDlg & tutorialDlg()
Access to tutorial dialogs and its scene.
void slotNext()
Slot called when next button is triggered.
virtual void end()
Transition out of this state.
virtual void begin()
Transition into this state.
TutorialStateIntroduction(TutorialStateContext &context)
Single constructor.
#define LOG4CPP_INFO_S(logger)