Engauge Digitizer 2
Loading...
Searching...
No Matches
CreateStateContexts Class Reference

Class to create state contexts, which wrap state machine design patterns, for MainWindow class. More...

#include <CreateStateContexts.h>

Inheritance diagram for CreateStateContexts:
Inheritance graph
Collaboration diagram for CreateStateContexts:
Collaboration graph

Public Member Functions

 CreateStateContexts ()
 Single constructor.
void create (MainWindow &mw)
 Create state contexts.

Detailed Description

Class to create state contexts, which wrap state machine design patterns, for MainWindow class.

We derive from QObject and use Q_OBJECT so translations work

Definition at line 17 of file CreateStateContexts.h.

Constructor & Destructor Documentation

◆ CreateStateContexts()

CreateStateContexts::CreateStateContexts ( )

Single constructor.

Definition at line 16 of file CreateStateContexts.cpp.

17{
18}

Member Function Documentation

◆ create()

void CreateStateContexts::create ( MainWindow & mw)

Create state contexts.

Definition at line 20 of file CreateStateContexts.cpp.

21{
22 LOG4CPP_INFO_S ((*mainCat)) << "CreateStateContexts::create";
23
24 mw.m_backgroundStateContext = new BackgroundStateContext (mw);
25 mw.m_digitizeStateContext = new DigitizeStateContext (mw,
26 *(mw.m_view),
27 mw.m_isGnuplot);
28 mw.m_transformationStateContext = new TransformationStateContext (*(mw.m_scene),
29 mw.m_isGnuplot);
30}
log4cpp::Category * mainCat
Definition Logger.cpp:14
#define LOG4CPP_INFO_S(logger)
Definition convenience.h:18

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