Engauge Digitizer 2
Loading...
Searching...
No Matches
CreateStateContexts.cpp
Go to the documentation of this file.
1/******************************************************************************************************
2 * (C) 2018 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
10#include "GraphicsScene.h"
11#include "GraphicsView.h"
12#include "Logger.h"
13#include "MainWindow.h"
15
19
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
Context class that manages the background image state machine.
void create(MainWindow &mw)
Create state contexts.
CreateStateContexts()
Single constructor.
Container for all DigitizeStateAbstractBase subclasses. This functions as the context class in a stan...
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition MainWindow.h:92
Context class for transformation state machine.
#define LOG4CPP_INFO_S(logger)
Definition convenience.h:18