Go to the documentation of this file.
13 #include <QTextStream>
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())
74 m_stepX = other.
stepX();
75 m_stopX = other.
stopX();
79 m_stepY = other.
stepY();
80 m_stopY = other.
stopY();
112 QXmlStreamAttributes attributes = reader.attributes();
144 while ((reader.tokenType() != QXmlStreamReader::EndElement) ||
147 if (reader.atEnd()) {
155 reader.raiseError (QObject::tr (
"Cannot read grid display data"));
161 return m_paletteColor;
165 QTextStream &str)
const
167 str << indentation <<
"DocumentModelGridDisplay\n";
171 str << indentation <<
"stable=" << (m_stable ?
"true" :
"false") <<
"\n";
172 str << indentation <<
"disableX=" << m_disableX <<
"\n";
173 str << indentation <<
"countX=" << m_countX <<
"\n";
174 str << indentation <<
"startX=" << m_startX <<
"\n";
175 str << indentation <<
"stepX=" << m_stepX <<
"\n";
176 str << indentation <<
"stopX=" << m_stopX <<
"\n";
177 str << indentation <<
"disableY=" << m_disableY <<
"\n";
178 str << indentation <<
"countY=" << m_countY <<
"\n";
179 str << indentation <<
"startY=" << m_startY <<
"\n";
180 str << indentation <<
"stepY=" << m_stepY <<
"\n";
181 str << indentation <<
"stopY=" << m_stopY <<
"\n";
205 writer.writeEndElement();
const QString DOCUMENT_SERIALIZE_GRID_DISPLAY_COUNT_Y
const QString DOCUMENT_SERIALIZE_GRID_DISPLAY_COLOR
double stepX() const
Get method for x grid line increment.
unsigned int countY() const
Get method for y grid line count.
DocumentModelGridDisplay()
Default constructor.
const ColorPalette DEFAULT_COLOR
bool stable() const
Get method for stable flag.
const QString DOCUMENT_SERIALIZE_BOOL_TRUE
void setStepY(double yStep)
Set method for y grid line increment.
void setPaletteColor(ColorPalette paletteColor)
Set method for color.
Model for DlgSettingsGridDisplay and CmdSettingsGridDisplay.
const QString DOCUMENT_SERIALIZE_GRID_DISPLAY
virtual void loadXml(QXmlStreamReader &reader)
Load model from serialized xml.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
Storage of one imported image and the data attached to that image.
void setStable(bool stable)
Set method for stable flag.
const QString DOCUMENT_SERIALIZE_GRID_DISPLAY_COUNT_X
void setStartX(double startX)
Set method for x grid line lower bound (inclusive).
const QString DOCUMENT_SERIALIZE_GRID_DISPLAY_STEP_Y
GridCoordDisable disableX() const
Get method for x grid line disabled variable.
void setStepX(double stepX)
Set method for x grid line increment.
const QString DOCUMENT_SERIALIZE_GRID_DISPLAY_DISABLE_Y
void setDisableX(GridCoordDisable disableX)
Set method for x grid line disabled variable.
double stopY() const
Get method for y grid line upper bound (inclusive).
void setStartY(double yStart)
Set method for y grid line lower bound (inclusive).
#define LOG4CPP_INFO_S(logger)
double stepY() const
Get method for y grid line increment.
double startX() const
Get method for x grid line lower bound (inclusive).
const QString DOCUMENT_SERIALIZE_GRID_DISPLAY_STOP_Y
DocumentModelGridDisplay & operator=(const DocumentModelGridDisplay &other)
Assignment constructor.
void setStopX(double stopX)
Set method for x grid line upper bound (inclusive).
const QString DOCUMENT_SERIALIZE_GRID_DISPLAY_STOP_X
const QString DOCUMENT_SERIALIZE_GRID_DISPLAY_STEP_X
const QString DOCUMENT_SERIALIZE_GRID_DISPLAY_STABLE
log4cpp::Category * mainCat
QString colorPaletteToString(ColorPalette colorPalette)
double stopX() const
Get method for x grid line upper bound (inclusive).
ColorPalette paletteColor() const
Get method for color.
void setStopY(double yStop)
Set method for y grid line upper bound (inclusive).
const QString INDENTATION_DELTA
GridCoordDisable disableY() const
Get method for y grid line disabled variable.
virtual void saveXml(QXmlStreamWriter &writer) const
Save entire model as xml into stream.
void setDisableY(GridCoordDisable disableY)
Set method for y grid line disabled variable.
const QString DOCUMENT_SERIALIZE_BOOL_FALSE
double startY() const
Get method for y grid line lower bound (inclusive).
const QString DOCUMENT_SERIALIZE_GRID_DISPLAY_COLOR_STRING
void setCountX(unsigned int countX)
Set method for x grid line count.
QXmlStreamReader::TokenType loadNextFromReader(QXmlStreamReader &reader)
Load next token from xml reader.
void setCountY(unsigned int countY)
Set method for y grid line count.
const QString DOCUMENT_SERIALIZE_GRID_DISPLAY_DISABLE_X
const QString DOCUMENT_SERIALIZE_GRID_DISPLAY_START_X
const QString DOCUMENT_SERIALIZE_GRID_DISPLAY_START_Y
unsigned int countX() const
Get method for x grid line count.