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 
26  QSize backgroundSize () const;
27 
29  QGraphicsScene &scene();
30 
32  QGraphicsView &view();
33 
34  private:
35  TutorialDlg ();
36 
37  void createContext ();
38  void createSceneAndView();
39 
40  TutorialStateContext *m_context;
41  QGraphicsScene *m_scene;
42  QGraphicsView *m_view;
43 };
44 
45 #endif // TUTORIAL_DLG_H
QGraphicsScene & scene()
Single scene the covers the entire tutorial dialog.
Definition: TutorialDlg.cpp:66
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:34
Context class for tutorial state machine.
QGraphicsView & view()
Single view that displays the single scene.
Definition: TutorialDlg.cpp:73
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition: MainWindow.h:89