Engauge Digitizer  2
 All Classes Files Functions Variables Enumerations Enumerator Friends Pages
DocumentModelCommon.h
1 #ifndef DOCUMENT_MODEL_COMMON_H
2 #define DOCUMENT_MODEL_COMMON_H
3 
4 #include "DocumentModelAbstractBase.h"
5 
6 class Document;
7 class QTextStream;
8 
11 {
12 public:
15 
17  DocumentModelCommon(const Document &document);
18 
21 
24 
26  int cursorSize() const;
27 
29  int extraPrecision () const;
30 
31  virtual void loadXml(QXmlStreamReader &reader);
32 
34  void printStream (QString indentation,
35  QTextStream &str) const;
36 
37  virtual void saveXml(QXmlStreamWriter &writer) const;
38 
40  void setCursorSize (int cursorSize);
41 
43  void setExtraPrecision (int extraPrecision);
44 
45 private:
46 
47  int m_cursorSize;
48  int m_extraPrecision;
49 };
50 
51 #endif // DOCUMENT_MODEL_COMMON_H
Abstract base class for document models. This class enforces a common interface for the leaf subclass...
int extraPrecision() const
Get method for extra digits of precsion.
Model for DlgSettingsCommon and CmdSettingsCommon.
virtual void saveXml(QXmlStreamWriter &writer) const
Save entire model as xml into stream.
DocumentModelCommon()
Default constructor.
int cursorSize() const
Get method for effective cursor size.
void setExtraPrecision(int extraPrecision)
Set method for extra digits of precision.
Storage of one imported image and the data attached to that image.
Definition: Document.h:29
virtual void loadXml(QXmlStreamReader &reader)
Load model from serialized xml.
void setCursorSize(int cursorSize)
Set method for effective cursor size.
DocumentModelCommon & operator=(const DocumentModelCommon &other)
Assignment constructor.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...