15#include <QXmlStreamWriter>
37 m_stable (document.modelGridDisplay().stable()),
38 m_disableX (document.modelGridDisplay().disableX()),
39 m_countX (document.modelGridDisplay().countX()),
40 m_startX (document.modelGridDisplay().startX()),
41 m_stepX (document.modelGridDisplay().stepX()),
42 m_stopX (document.modelGridDisplay().stopX()),
43 m_disableY (document.modelGridDisplay().disableY()),
44 m_countY (document.modelGridDisplay().countY()),
45 m_startY (document.modelGridDisplay().startY()),
46 m_stepY (document.modelGridDisplay().stepY()),
47 m_stopY (document.modelGridDisplay().stopY()),
48 m_paletteColor (document.modelGridDisplay().paletteColor())
53 m_stable(
other.stable()),
54 m_disableX (
other.disableX()),
55 m_countX (
other.countX()),
56 m_startX (
other.startX()),
57 m_stepX (
other.stepX()),
58 m_stopX (
other.stopX()),
59 m_disableY (
other.disableY()),
60 m_countY (
other.countY()),
61 m_startY (
other.startY()),
62 m_stepY (
other.stepY()),
63 m_stopY (
other.stopY()),
64 m_paletteColor (
other.paletteColor())
70 m_stable =
other.stable();
71 m_disableX =
other.disableX();
72 m_countX =
other.countX();
73 m_startX =
other.startX();
74 m_stepX =
other.stepX();
75 m_stopX =
other.stopX();
76 m_disableY =
other.disableY();
77 m_countY =
other.countY();
78 m_startY =
other.startY();
79 m_stepY =
other.stepY();
80 m_stopY =
other.stopY();
81 m_paletteColor =
other.paletteColor();
144 while ((
reader.tokenType() != QXmlStreamReader::EndElement) ||
155 reader.raiseError (QObject::tr (
"Cannot read grid display data"));
161 return m_paletteColor;
171 str <<
indentation <<
"stable=" << (m_stable ?
"true" :
"false") <<
"\n";
QString colorPaletteToString(ColorPalette colorPalette)
const int INNER_RADIUS_MIN
const ColorPalette DEFAULT_COLOR
const QString DOCUMENT_SERIALIZE_GRID_DISPLAY_STOP_Y
const QString DOCUMENT_SERIALIZE_GRID_DISPLAY_STEP_Y
const QString DOCUMENT_SERIALIZE_GRID_DISPLAY
const QString DOCUMENT_SERIALIZE_GRID_DISPLAY_STABLE
const QString DOCUMENT_SERIALIZE_GRID_DISPLAY_START_Y
const QString DOCUMENT_SERIALIZE_GRID_DISPLAY_COUNT_Y
const QString DOCUMENT_SERIALIZE_GRID_DISPLAY_COLOR
const QString DOCUMENT_SERIALIZE_GRID_DISPLAY_COUNT_X
const QString DOCUMENT_SERIALIZE_GRID_DISPLAY_DISABLE_Y
const QString DOCUMENT_SERIALIZE_GRID_DISPLAY_STEP_X
const QString DOCUMENT_SERIALIZE_GRID_DISPLAY_STOP_X
const QString DOCUMENT_SERIALIZE_GRID_DISPLAY_START_X
const QString DOCUMENT_SERIALIZE_GRID_DISPLAY_COLOR_STRING
const QString DOCUMENT_SERIALIZE_GRID_DISPLAY_DISABLE_X
const QString DOCUMENT_SERIALIZE_BOOL_TRUE
const QString DOCUMENT_SERIALIZE_BOOL_FALSE
@ GRID_COORD_DISABLE_COUNT
log4cpp::Category * mainCat
const QString INDENTATION_DELTA
QXmlStreamReader::TokenType loadNextFromReader(QXmlStreamReader &reader)
Load next token from xml reader.
Model for DlgSettingsGridDisplay and CmdSettingsGridDisplay.
GridCoordDisable disableY() const
Get method for y grid line disabled variable.
unsigned int countX() const
Get method for x grid line count.
void setPaletteColor(ColorPalette paletteColor)
Set method for color.
double startX() const
Get method for x grid line lower bound (inclusive).
GridCoordDisable disableX() const
Get method for x grid line disabled variable.
unsigned int countY() const
Get method for y grid line count.
double stepX() const
Get method for x grid line increment.
virtual void loadXml(QXmlStreamReader &reader)
Load model from serialized xml.
DocumentModelGridDisplay & operator=(const DocumentModelGridDisplay &other)
Assignment constructor.
void setStepX(double stepX)
Set method for x grid line increment.
double stopX() const
Get method for x grid line upper bound (inclusive).
double stopY() const
Get method for y grid line upper bound (inclusive).
bool stable() const
Get method for stable flag.
void setStepY(double yStep)
Set method for y grid line increment.
void setStopX(double stopX)
Set method for x grid line upper bound (inclusive).
virtual void saveXml(QXmlStreamWriter &writer) const
Save entire model as xml into stream.
void setDisableX(GridCoordDisable disableX)
Set method for x grid line disabled variable.
ColorPalette paletteColor() const
Get method for color.
void setStopY(double yStop)
Set method for y grid line upper bound (inclusive).
void setDisableY(GridCoordDisable disableY)
Set method for y grid line disabled variable.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
double stepY() const
Get method for y grid line increment.
void setCountX(unsigned int countX)
Set method for x grid line count.
void setStartX(double startX)
Set method for x grid line lower bound (inclusive).
void setStable(bool stable)
Set method for stable flag.
double startY() const
Get method for y grid line lower bound (inclusive).
DocumentModelGridDisplay()
Default constructor.
void setStartY(double yStart)
Set method for y grid line lower bound (inclusive).
void setCountY(unsigned int countY)
Set method for y grid line count.
Storage of one imported image and the data attached to that image.
#define LOG4CPP_INFO_S(logger)