Engauge Digitizer 2
Loading...
Searching...
No Matches
Public Member Functions | List of all members
TutorialDlg Class Reference

Tutorial using a strategy like a comic strip with decision points deciding which panels appear. More...

#include <TutorialDlg.h>

Inheritance diagram for TutorialDlg:
Inheritance graph
Collaboration diagram for TutorialDlg:
Collaboration graph

Public Member Functions

 TutorialDlg (MainWindow *mainWindow)
 Single constructor.
 
 ~TutorialDlg ()
 
QSize backgroundSize () const
 Make geometry available for layout.
 
QGraphicsScene & scene ()
 Single scene the covers the entire tutorial dialog.
 
QGraphicsView & view ()
 Single view that displays the single scene.
 

Detailed Description

Tutorial using a strategy like a comic strip with decision points deciding which panels appear.

This is implemented as a QGraphicsScene with states in charge of managing the contents of the scene

Definition at line 19 of file TutorialDlg.h.

Constructor & Destructor Documentation

◆ TutorialDlg()

TutorialDlg::TutorialDlg ( MainWindow * mainWindow)

Single constructor.

Definition at line 20 of file TutorialDlg.cpp.

20 :
21 QDialog (mainWindow),
22 m_context (nullptr),
23 m_scene (nullptr),
24 m_view (nullptr)
25{
26 setWindowTitle ("Engauge Digitizer Tutorial");
27
28 // Dialog size is determined by scene size
30 layout->setSizeConstraint (QLayout::SetMinimumSize);
31 setLayout (layout);
32
33 createSceneAndView();
34 createContext();
35}
const int INNER_RADIUS_MIN

◆ ~TutorialDlg()

TutorialDlg::~TutorialDlg ( )

Definition at line 37 of file TutorialDlg.cpp.

38{
39 delete m_view;
40 delete m_scene;
41 delete m_context;
42}

Member Function Documentation

◆ backgroundSize()

QSize TutorialDlg::backgroundSize ( ) const

Make geometry available for layout.

Definition at line 44 of file TutorialDlg.cpp.

45{
46 return QSize (SCENE_WIDTH,
48}
const int SCENE_HEIGHT
const int SCENE_WIDTH

◆ scene()

QGraphicsScene & TutorialDlg::scene ( )

Single scene the covers the entire tutorial dialog.

Definition at line 76 of file TutorialDlg.cpp.

77{
78 ENGAUGE_CHECK_PTR (m_scene);
79
80 return *m_scene;
81}
#define ENGAUGE_CHECK_PTR(ptr)
#endif

◆ view()

QGraphicsView & TutorialDlg::view ( )

Single view that displays the single scene.

Definition at line 83 of file TutorialDlg.cpp.

84{
85 ENGAUGE_CHECK_PTR (m_view);
86
87 return *m_view;
88}

The documentation for this class was generated from the following files: