Engauge Digitizer  2
 All Classes Functions Variables Typedefs Enumerations Friends Pages
CreateScene.cpp
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 
7 #include "CreateScene.h"
8 #include "GraphicsScene.h"
9 #include "GraphicsView.h"
10 #include "Logger.h"
11 #include "MainWindow.h"
12 #include <QVBoxLayout>
13 
15 {
16 }
17 
19 {
20  LOG4CPP_INFO_S ((*mainCat)) << "CreateScene::create";
21 
22  mw.m_scene = new GraphicsScene (&mw);
23  mw.m_view = new GraphicsView (mw.m_scene, mw);
24  mw.m_layout->addWidget (mw.m_view);
25 }
26 
CreateScene()
Single constructor.
Definition: CreateScene.cpp:14
QGraphicsView class with event handling added. Typically the events are sent to the active digitizing...
Definition: GraphicsView.h:20
Add point and line handling to generic QGraphicsScene.
Definition: GraphicsScene.h:36
void create(MainWindow &mw)
Create QGraphicsScene.
Definition: CreateScene.cpp:18
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition: MainWindow.h:91