Engauge Digitizer 2
Loading...
Searching...
No Matches
DocumentModelLoadViews.h
Go to the documentation of this file.
1/******************************************************************************************************
2 * (C) 2021 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_LOAD_VIEWS_H
8#define DOCUMENT_MODEL_LOAD_VIEWS_H
9
11
12class Document;
13class QTextStream;
14
17{
18public:
21
23 DocumentModelLoadViews(const Document &document);
24
27
30 bool guidelines);
31
34
36 bool gridlines () const;
37
39 bool guidelines () const;
40
41 virtual void loadXml(QXmlStreamReader &reader);
42
44 void printStream (QString indentation,
45 QTextStream &str) const;
46
47 virtual void saveXml(QXmlStreamWriter &writer) const;
48
50 void setGridlines (bool gridlines);
51
53 void setGuidelines (bool guidelines);
54
55private:
56
57 bool m_gridlines;
58 bool m_guidelines;
59};
60
61#endif // DOCUMENT_MODEL_LOAD_VIEWS_H
DocumentModelAbstractBase()
Single constructor.
bool gridlines() const
Get method for gridlines.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
virtual void saveXml(QXmlStreamWriter &writer) const
Save entire model as xml into stream.
void setGuidelines(bool guidelines)
Set method for guidelines.
bool guidelines() const
Get method for guidelines.
virtual void loadXml(QXmlStreamReader &reader)
Load model from serialized xml.
void setGridlines(bool gridlines)
Set method for gridlines.
DocumentModelLoadViews & operator=(const DocumentModelLoadViews &other)
Assignment constructor.
DocumentModelLoadViews()
Default constructor.
Storage of one imported image and the data attached to that image.
Definition Document.h:44