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());
59 backgroundSize.height() -
buttonMargin() - m_previous->size().height()));
60 connect (m_previous, SIGNAL (signalTriggered ()),
this, SLOT (
slotPrevious ()));
63 context().tutorialDlg().scene());
64 m_next->setGeometry (QPoint (backgroundSize.width () -
buttonMargin () - m_next->size ().width (),
65 backgroundSize.height () -
buttonMargin () - m_next->size ().height ()));
66 connect (m_next, SIGNAL (signalTriggered ()),
this, SLOT (
slotNext ()));
log4cpp::Category * mainCat
@ TUTORIAL_STATE_CURVE_SELECTION
@ TUTORIAL_STATE_INTRODUCTION
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.
virtual void begin()
Transition into this state.
void slotNext()
Slot called when next button is triggered.
void slotPrevious()
Slot called to return to previous panel.
TutorialStateAxisPoints(TutorialStateContext &context)
Single constructor.
virtual void end()
Transition out of this state.
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.
#define LOG4CPP_INFO_S(logger)