Engauge Digitizer  2
DocumentModelGeneral.h
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 
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 
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
Model for DlgSettingsGeneral and CmdSettingsGeneral.
Abstract base class for document models. This class enforces a common interface for the leaf subclass...
void setCursorSize(int cursorSize)
Set method for effective cursor size.
int cursorSize() const
Get method for effective cursor size.
DocumentModelGeneral()
Default constructor.
virtual void loadXml(QXmlStreamReader &reader)
Load model from serialized xml.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
Storage of one imported image and the data attached to that image.
Definition: Document.h:40
int extraPrecision() const
Get method for extra digits of precsion.
void setExtraPrecision(int extraPrecision)
Set method for extra digits of precision.
DocumentModelGeneral & operator=(const DocumentModelGeneral &other)
Assignment constructor.
virtual void saveXml(QXmlStreamWriter &writer) const
Save entire model as xml into stream.