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 <QGridLayout>
13#include <QPushButton>
14
18
20{
21 LOG4CPP_INFO_S ((*mainCat)) << "CreateScene::create";
22
23 const QString NO_TEXT (""); // Keep skinny by leaving out bulky text
24
25 mw.m_scene = new GraphicsScene (&mw);
26 mw.m_view = new GraphicsView (mw.m_scene, mw);
27 mw.m_layout->addWidget (mw.m_view);
28}
29
log4cpp::Category * mainCat
Definition Logger.cpp:14
void create(MainWindow &mw)
Create QGraphicsScene.
CreateScene()
Single constructor.
Add point and line handling to generic QGraphicsScene.
QGraphicsView class with event handling added. Typically the events are sent to the active digitizing...
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition MainWindow.h:95
#define LOG4CPP_INFO_S(logger)
Definition convenience.h:18