Engauge Digitizer 2
Loading...
Searching...
No Matches
DocumentModelAxesChecker.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_AXES_CHECKER_H
8#define DOCUMENT_MODEL_AXES_CHECKER_H
9
10#include "ColorPalette.h"
12#include "CheckerMode.h"
13
14class Document;
15class QTextStream;
16
19{
20public:
23
25 DocumentModelAxesChecker(const Document &document);
26
29
32
35
37 int checkerSeconds() const;
38
40 ColorPalette lineColor () const;
41
42 virtual void loadXml(QXmlStreamReader &reader);
43
45 void printStream (QString indentation,
46 QTextStream &str) const;
47
48 virtual void saveXml(QXmlStreamWriter &writer) const;
49
52
54 void setCheckerSeconds (int seconds);
55
58
59private:
60
61 CheckerMode m_checkerMode;
62 int m_checkerSeconds; // Time interval for CHECKER_MODE_N_SECONDS
63 ColorPalette m_lineColor;
64};
65
66#endif // DOCUMENT_MODEL_AXES_CHECKER_H
CheckerMode
Options for axes checker mode. Specifically, how long the checker is displayed after a change.
Definition CheckerMode.h:14
ColorPalette
DocumentModelAbstractBase()
Single constructor.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
void setLineColor(ColorPalette lineColor)
Set method for line color.
virtual void saveXml(QXmlStreamWriter &writer) const
Save entire model as xml into stream.
ColorPalette lineColor() const
Get method for line color.
int checkerSeconds() const
Get method for checker lifetime in seconds.
DocumentModelAxesChecker()
Default constructor.
void setCheckerSeconds(int seconds)
Set method for checker lifetime in seconds.
CheckerMode checkerMode() const
Get method for checker lifetime mode.
virtual void loadXml(QXmlStreamReader &reader)
Load model from serialized xml.
DocumentModelAxesChecker & operator=(const DocumentModelAxesChecker &other)
Assignment constructor.
void setCheckerMode(CheckerMode checkerMode)
Set method for checker mode.
Storage of one imported image and the data attached to that image.
Definition Document.h:44