Engauge Digitizer 2
Loading...
Searching...
No Matches
DocumentModelGuidelines.h
Go to the documentation of this file.
1/******************************************************************************************************
2 * (C) 2019 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_GUIDELINES_H
8#define DOCUMENT_MODEL_GUIDELINES_H
9
11#include "GuidelineValues.h"
12
13class Document;
14class QTextStream;
15
21{
22public:
25
27 DocumentModelGuidelines(const Document &document);
28
31
34
38
39 virtual void loadXml(QXmlStreamReader &reader);
40
43 QTextStream &str) const;
44
45 virtual void saveXml(QXmlStreamWriter &writer) const;
46
49
52
54 GuidelineValues valuesX () const;
55
57 GuidelineValues valuesY () const;
58
59private:
60
61 void loadXmlVector (QXmlStreamReader &reader,
62 const QString &tokenEnd,
64 void saveXmlVector (QXmlStreamWriter &writer,
65 const QString &tokenAll,
66 const GuidelineValues &values) const;
67
68 GuidelineValues m_valuesX;
69 GuidelineValues m_valuesY;
70};
71
72#endif // DOCUMENT_MODEL_GUIDELINES_H
const int INNER_RADIUS_MIN
QMap< QString, double > GuidelineValues
Abstract base class for document models. This class enforces a common interface for the leaf subclass...
Model for managing the coordinate values corresponding Guidelines.
virtual void saveXml(QXmlStreamWriter &writer) const
Save entire model as xml into stream.
void setValuesX(const GuidelineValues &valuesX)
Set method for x/t values.
DocumentModelGuidelines()
Default constructor.
virtual void loadXml(QXmlStreamReader &reader)
Load model from serialized xml.
GuidelineValues valuesX() const
Get method for x/t values.
void setValuesY(const GuidelineValues &valuesY)
Set method for y/r values.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
DocumentModelGuidelines & operator=(const DocumentModelGuidelines &other)
Assignment constructor.
GuidelineValues valuesY() const
Get method for y/r values.
Storage of one imported image and the data attached to that image.
Definition Document.h:44