Engauge Digitizer 2
Loading...
Searching...
No Matches
CreateScene.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
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
log4cpp::Category * mainCat
Definition: Logger.cpp:14
void create(MainWindow &mw)
Create QGraphicsScene.
Definition: CreateScene.cpp:18
CreateScene()
Single constructor.
Definition: CreateScene.cpp:14
Add point and line handling to generic QGraphicsScene.
Definition: GraphicsScene.h:37
QGraphicsView class with event handling added. Typically the events are sent to the active digitizing...
Definition: GraphicsView.h:21
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition: MainWindow.h:92
#define LOG4CPP_INFO_S(logger)
Definition: convenience.h:18