Engauge Digitizer 2
Loading...
Searching...
No Matches
DocumentModelDigitizeCurve.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_DIGITIZE_CURVE_H
8#define DOCUMENT_MODEL_DIGITIZE_CURVE_H
9
10#include "CursorSize.h"
12
13class Document;
14class QTextStream;
15
19{
20public:
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
49 QTextStream &str) const;
50
51 virtual void saveXml(QXmlStreamWriter &writer) const;
52
55
57 void setCursorLineWidth (int lineWidth);
58
61
64
65private:
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
CursorSize
Custom cursor sizes supported on all platforms for the most part, according to QCursor documentation.
Definition CursorSize.h:11
const int INNER_RADIUS_MIN
Abstract base class for document models. This class enforces a common interface for the leaf subclass...
Model for DlgSettingsDigitizeCurve and CmdSettingsDigitizeCurve.
void setCursorStandardCross(bool cursorStandardCross)
Set method for cursor type.
DocumentModelDigitizeCurve & operator=(const DocumentModelDigitizeCurve &other)
Assignment constructor.
DocumentModelDigitizeCurve()
Default constructor.
void setCursorLineWidth(int lineWidth)
Set method for cursor line width.
void setCursorInnerRadius(int innerRadius)
Set method for cursor inner radius.
CursorSize cursorSize() const
Get method for cursor size.
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.
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(...
void setCursorSize(CursorSize cursorSize)
Set method for cursor size.
virtual void saveXml(QXmlStreamWriter &writer) const
Save entire model as xml into stream.
Storage of one imported image and the data attached to that image.
Definition Document.h:42