Engauge Digitizer  2
TutorialDlg.h
1 /******************************************************************************************************
2  * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3  * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4  * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5  ******************************************************************************************************/
6 
7 #ifndef TUTORIAL_DLG_H
8 #define TUTORIAL_DLG_H
9 
10 #include <QDialog>
11 
12 class MainWindow;
13 class QGraphicsScene;
14 class QGraphicsView;
16 
19 class TutorialDlg : public QDialog
20 {
21  public:
23  TutorialDlg (MainWindow *mainWindow);
24  ~TutorialDlg ();
25 
27  QSize backgroundSize () const;
28 
30  QGraphicsScene &scene();
31 
33  QGraphicsView &view();
34 
35  private:
36  TutorialDlg ();
37 
38  void createContext ();
39  void createSceneAndView();
40 
41  TutorialStateContext *m_context;
42  QGraphicsScene *m_scene;
43  QGraphicsView *m_view;
44 };
45 
46 #endif // TUTORIAL_DLG_H
QGraphicsScene & scene()
Single scene the covers the entire tutorial dialog.
Definition: TutorialDlg.cpp:76
Tutorial using a strategy like a comic strip with decision points deciding which panels appear.
Definition: TutorialDlg.h:19
QSize backgroundSize() const
Make geometry available for layout.
Definition: TutorialDlg.cpp:44
Context class for tutorial state machine.
QGraphicsView & view()
Single view that displays the single scene.
Definition: TutorialDlg.cpp:83
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition: MainWindow.h:91