9 #include <QGraphicsPixmapItem>
10 #include <QGraphicsScene>
11 #include <QGraphicsView>
12 #include "TutorialButton.h"
13 #include "TutorialDlg.h"
14 #include "TutorialStateChecklistWizardAbstract.h"
15 #include "TutorialStateContext.h"
20 m_background (nullptr),
31 LOG4CPP_INFO_S ((*mainCat)) <<
"TutorialStateChecklistWizardAbstract::begin ()";
33 m_title =
createTitle (tr (
"Checklist Wizard and Checklist Guide"));
36 m_text0 =
createTextItem (tr (
"For new Engauge users, a Checklist Wizard\n"
37 "is available when importing an image file.\n"
38 "This wizard produces a helpful checklist of\n"
39 "steps to follow to digitize the image file."),
41 m_text1 =
createTextItem (tr (
"Step 1 - Enable the menu option Help /\n"
42 "Checklist Guide Wizard."),
44 m_text2 =
createTextItem (tr (
"Step 2 - Import the file using File /\n"
45 "Import. The Checklist Wizard will appear\n"
46 "and ask some simple questions to\n"
47 "determine how the image can be\n"
50 m_text3 =
createTextItem (tr (
"Additional options are available in\n"
51 "the various Settings menus.\n\n"
52 "This ends the tutorial. Good luck!"),
58 context().tutorialDlg().scene());
65 LOG4CPP_INFO_S ((*mainCat)) <<
"TutorialStateChecklistWizardAbstract::end ()";
84 m_background =
nullptr;
One state manages one panel of the tutorial.
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.
void begin()
Common begin processing.
TutorialStateContext & context()
Context class for the tutorial state machine.
QGraphicsTextItem * createTextItem(const QString &text, const QPoint &pos)
Factory method for text items.
QSize backgroundSize() const
Make geometry available for layout.
QGraphicsTextItem * createTitle(const QString &text)
Factory method for title items.
void end()
Common end processing.
QGraphicsPixmapItem * createPixmapItem(const QString &resource, const QPoint &pos)
Factory method for pixmap items.
TutorialButton * previous()
Previous button for hooking up button to slot.
TutorialStateChecklistWizardAbstract(TutorialStateContext &context)
Single constructor.
Context class for tutorial state machine.
TutorialDlg & tutorialDlg()
Access to tutorial dialogs and its scene.