15#include <QXmlStreamWriter>
39 m_stable (document.modelGridDisplay().
stable()),
40 m_disableX (document.modelGridDisplay().
disableX()),
41 m_countX (document.modelGridDisplay().
countX()),
42 m_startX (document.modelGridDisplay().
startX()),
43 m_stepX (document.modelGridDisplay().
stepX()),
44 m_stopX (document.modelGridDisplay().
stopX()),
45 m_disableY (document.modelGridDisplay().
disableY()),
46 m_countY (document.modelGridDisplay().
countY()),
47 m_startY (document.modelGridDisplay().
startY()),
48 m_stepY (document.modelGridDisplay().
stepY()),
49 m_stopY (document.modelGridDisplay().
stopY()),
50 m_paletteColor (document.modelGridDisplay().
paletteColor()),
51 m_lineWidth (document.modelGridDisplay().
lineWidth())
60 m_stepX (other.
stepX()),
61 m_stopX (other.
stopX()),
65 m_stepY (other.
stepY()),
66 m_stopY (other.
stopY()),
78 m_stepX = other.
stepX();
79 m_stopX = other.
stopX();
83 m_stepY = other.
stepY();
84 m_stopY = other.
stopY();
122 QXmlStreamAttributes attributes = reader.attributes();
162 while ((reader.tokenType() != QXmlStreamReader::EndElement) ||
165 if (reader.atEnd()) {
173 reader.raiseError (QObject::tr (
"Cannot read grid display data"));
179 return m_paletteColor;
183 QTextStream &str)
const
185 str << indentation <<
"DocumentModelGridDisplay\n";
189 str << indentation <<
"stable=" << (m_stable ?
"true" :
"false") <<
"\n";
190 str << indentation <<
"disableX=" << m_disableX <<
"\n";
191 str << indentation <<
"countX=" << m_countX <<
"\n";
192 str << indentation <<
"startX=" << m_startX <<
"\n";
193 str << indentation <<
"stepX=" << m_stepX <<
"\n";
194 str << indentation <<
"stopX=" << m_stopX <<
"\n";
195 str << indentation <<
"disableY=" << m_disableY <<
"\n";
196 str << indentation <<
"countY=" << m_countY <<
"\n";
197 str << indentation <<
"startY=" << m_startY <<
"\n";
198 str << indentation <<
"stepY=" << m_stepY <<
"\n";
199 str << indentation <<
"stopY=" << m_stopY <<
"\n";
201 str << indentation <<
"lineWidth=" << m_lineWidth <<
"\n";
225 writer.writeEndElement();
QString colorPaletteToString(ColorPalette colorPalette)
const ColorPalette DEFAULT_COLOR
const int DEFAULT_LINE_WIDTH
const QString DOCUMENT_SERIALIZE_GRID_DISPLAY_LINE_WIDTH
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.
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).
void setLineWidth(unsigned int lineWidth)
Set method for line width.
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.
unsigned int lineWidth() const
Get method for line width.
Storage of one imported image and the data attached to that image.
#define LOG4CPP_INFO_S(logger)