Engauge Digitizer
2
Toggle main menu visibility
Loading...
Searching...
No Matches
Document
DocumentModelGeneral.h
Go to the documentation of this file.
1
/******************************************************************************************************
2
* (C) 2014 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
#ifndef DOCUMENT_MODEL_GENERAL_H
8
#define DOCUMENT_MODEL_GENERAL_H
9
10
#include "
DocumentModelAbstractBase.h
"
11
12
class
Document
;
13
class
QTextStream;
14
16
class
DocumentModelGeneral
:
public
DocumentModelAbstractBase
17
{
18
public
:
20
DocumentModelGeneral
();
21
23
DocumentModelGeneral
(
const
Document
&document);
24
26
DocumentModelGeneral
(
const
DocumentModelGeneral
&other);
27
29
DocumentModelGeneral
&
operator=
(
const
DocumentModelGeneral
&other);
30
32
int
cursorSize
()
const
;
33
35
int
extraPrecision
()
const
;
36
37
virtual
void
loadXml
(QXmlStreamReader &reader);
38
40
void
printStream
(QString indentation,
41
QTextStream &str)
const
;
42
43
virtual
void
saveXml
(QXmlStreamWriter &writer)
const
;
44
46
void
setCursorSize
(
int
cursorSize
);
47
49
void
setExtraPrecision
(
int
extraPrecision
);
50
51
private
:
52
53
int
m_cursorSize;
54
int
m_extraPrecision;
55
};
56
57
#endif
// DOCUMENT_MODEL_GENERAL_H
DocumentModelAbstractBase.h
DocumentModelAbstractBase::DocumentModelAbstractBase
DocumentModelAbstractBase()
Single constructor.
Definition
DocumentModelAbstractBase.cpp:10
DocumentModelGeneral::saveXml
virtual void saveXml(QXmlStreamWriter &writer) const
Save entire model as xml into stream.
Definition
DocumentModelGeneral.cpp:108
DocumentModelGeneral::setCursorSize
void setCursorSize(int cursorSize)
Set method for effective cursor size.
Definition
DocumentModelGeneral.cpp:118
DocumentModelGeneral::loadXml
virtual void loadXml(QXmlStreamReader &reader)
Load model from serialized xml.
Definition
DocumentModelGeneral.cpp:66
DocumentModelGeneral::setExtraPrecision
void setExtraPrecision(int extraPrecision)
Set method for extra digits of precision.
Definition
DocumentModelGeneral.cpp:123
DocumentModelGeneral::printStream
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
Definition
DocumentModelGeneral.cpp:97
DocumentModelGeneral::operator=
DocumentModelGeneral & operator=(const DocumentModelGeneral &other)
Assignment constructor.
Definition
DocumentModelGeneral.cpp:48
DocumentModelGeneral::DocumentModelGeneral
DocumentModelGeneral()
Default constructor.
Definition
DocumentModelGeneral.cpp:22
DocumentModelGeneral::extraPrecision
int extraPrecision() const
Get method for extra digits of precsion.
Definition
DocumentModelGeneral.cpp:61
DocumentModelGeneral::cursorSize
int cursorSize() const
Get method for effective cursor size.
Definition
DocumentModelGeneral.cpp:56
Document
Storage of one imported image and the data attached to that image.
Definition
Document.h:44
Generated on
for Engauge Digitizer by
1.17.0