Engauge Digitizer  2
DocumentModelDigitizeCurve.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_DIGITIZE_CURVE_H
8 #define DOCUMENT_MODEL_DIGITIZE_CURVE_H
9 
10 #include "CursorSize.h"
11 #include "DocumentModelAbstractBase.h"
12 
13 class Document;
14 class QTextStream;
15 
19 {
20 public:
23 
25  DocumentModelDigitizeCurve(const Document &document);
26 
29 
32 
34  int cursorInnerRadius () const;
35 
37  int cursorLineWidth () const;
38 
40  CursorSize cursorSize () const;
41 
43  bool cursorStandardCross () const;
44 
45  virtual void loadXml(QXmlStreamReader &reader);
46 
48  void printStream (QString indentation,
49  QTextStream &str) const;
50 
51  virtual void saveXml(QXmlStreamWriter &writer) const;
52 
54  void setCursorInnerRadius (int innerRadius);
55 
57  void setCursorLineWidth (int lineWidth);
58 
60  void setCursorSize (CursorSize cursorSize);
61 
63  void setCursorStandardCross (bool cursorStandardCross);
64 
65 private:
66 
67  bool m_cursorStandardCross;
68  int m_cursorInnerRadius;
69  int m_cursorLineWidth;
70  CursorSize m_cursorSize;
71 };
72 
73 #endif // DOCUMENT_MODEL_DIGITIZE_CURVE_H
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
Abstract base class for document models. This class enforces a common interface for the leaf subclass...
CursorSize cursorSize() const
Get method for cursor size.
virtual void saveXml(QXmlStreamWriter &writer) const
Save entire model as xml into stream.
void setCursorLineWidth(int lineWidth)
Set method for cursor line width.
void setCursorSize(CursorSize cursorSize)
Set method for cursor size.
virtual void loadXml(QXmlStreamReader &reader)
Load model from serialized xml.
Model for DlgSettingsDigitizeCurve and CmdSettingsDigitizeCurve.
void setCursorInnerRadius(int innerRadius)
Set method for cursor inner radius.
Storage of one imported image and the data attached to that image.
Definition: Document.h:41
int cursorInnerRadius() const
Get method for cursor inner radius.
bool cursorStandardCross() const
Get method for cursor type.
int cursorLineWidth() const
Get method for cursor line width.
DocumentModelDigitizeCurve & operator=(const DocumentModelDigitizeCurve &other)
Assignment constructor.
DocumentModelDigitizeCurve()
Default constructor.
void setCursorStandardCross(bool cursorStandardCross)
Set method for cursor type.