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