Engauge Digitizer  2
 All Classes Files Functions Variables Enumerations Enumerator Friends Pages
DocumentModelGeneral.h
1 #ifndef DOCUMENT_MODEL_GENERAL_H
2 #define DOCUMENT_MODEL_GENERAL_H
3 
4 #include "DocumentModelAbstractBase.h"
5 
6 class Document;
7 class QTextStream;
8 
11 {
12 public:
15 
17  DocumentModelGeneral(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_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:29
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.