Engauge Digitizer  2
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 
11 
12 class Document;
13 class QTextStream;
14 
17 {
18 public:
21 
23  DocumentModelGeneral(const Document &document);
24 
27 
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 
50 
51 private:
52 
53  int m_cursorSize;
54  int m_extraPrecision;
55 };
56 
57 #endif // DOCUMENT_MODEL_GENERAL_H
DocumentModelGeneral::saveXml
virtual void saveXml(QXmlStreamWriter &writer) const
Save entire model as xml into stream.
Definition: DocumentModelGeneral.cpp:107
DocumentModelAbstractBase.h
DocumentModelGeneral::loadXml
virtual void loadXml(QXmlStreamReader &reader)
Load model from serialized xml.
Definition: DocumentModelGeneral.cpp:65
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:96
Document
Storage of one imported image and the data attached to that image.
Definition: Document.h:40
DocumentModelGeneral::cursorSize
int cursorSize() const
Get method for effective cursor size.
Definition: DocumentModelGeneral.cpp:55
DocumentModelGeneral::setExtraPrecision
void setExtraPrecision(int extraPrecision)
Set method for extra digits of precision.
Definition: DocumentModelGeneral.cpp:122
DocumentModelGeneral
Model for DlgSettingsGeneral and CmdSettingsGeneral.
Definition: DocumentModelGeneral.h:15
DocumentModelGeneral::operator=
DocumentModelGeneral & operator=(const DocumentModelGeneral &other)
Assignment constructor.
Definition: DocumentModelGeneral.cpp:47
DocumentModelGeneral::extraPrecision
int extraPrecision() const
Get method for extra digits of precsion.
Definition: DocumentModelGeneral.cpp:60
DocumentModelAbstractBase
Abstract base class for document models. This class enforces a common interface for the leaf subclass...
Definition: DocumentModelAbstractBase.h:15
DocumentModelGeneral::setCursorSize
void setCursorSize(int cursorSize)
Set method for effective cursor size.
Definition: DocumentModelGeneral.cpp:117
DocumentModelGeneral::DocumentModelGeneral
DocumentModelGeneral()
Default constructor.
Definition: DocumentModelGeneral.cpp:21