Engauge Digitizer  2
Public Member Functions | List of all members
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. More...
 
void create (MainWindow &mw)
 Create state contexts. More...
 

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 16 of file CreateStateContexts.h.

Constructor & Destructor Documentation

◆ CreateStateContexts()

CreateStateContexts::CreateStateContexts ( )

Single constructor.

Definition at line 15 of file CreateStateContexts.cpp.

17 {

Member Function Documentation

◆ create()

void CreateStateContexts::create ( MainWindow mw)

Create state contexts.

Definition at line 19 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);

The documentation for this class was generated from the following files:
DigitizeStateContext
Container for all DigitizeStateAbstractBase subclasses. This functions as the context class in a stan...
Definition: DigitizeStateContext.h:26
TransformationStateContext
Context class for transformation state machine.
Definition: TransformationStateContext.h:20
LOG4CPP_INFO_S
#define LOG4CPP_INFO_S(logger)
Definition: convenience.h:18
mainCat
log4cpp::Category * mainCat
Definition: Logger.cpp:14
BackgroundStateContext
Context class that manages the background image state machine.
Definition: BackgroundStateContext.h:31