Go to the documentation of this file.
13 #include <QTextStream>
15 #include <QXmlStreamWriter>
37 m_cursorSize (document.modelGeneral().cursorSize()),
38 m_extraPrecision (document.modelGeneral().extraPrecision())
43 m_cursorSize (other.cursorSize()),
44 m_extraPrecision (other.extraPrecision())
63 return m_extraPrecision;
72 QXmlStreamAttributes attributes = reader.attributes();
81 while ((reader.tokenType() != QXmlStreamReader::EndElement) ||
93 reader.raiseError (QObject::tr (
"Cannot read general data"));
98 QTextStream &str)
const
100 str << indentation <<
"DocumentModelGeneral\n";
104 str << indentation <<
"cursorSize=" << m_cursorSize <<
"\n";
105 str << indentation <<
"extraPrecision=" << m_extraPrecision <<
"\n";
115 writer.writeEndElement();
const QString DOCUMENT_SERIALIZE_GENERAL_EXTRA_PRECISION
virtual void saveXml(QXmlStreamWriter &writer) const
Save entire model as xml into stream.
virtual void loadXml(QXmlStreamReader &reader)
Load model from serialized xml.
const QString DOCUMENT_SERIALIZE_GENERAL_CURSOR_SIZE
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
const int DEFAULT_EXTRA_PRECISION
const QString SETTINGS_DIGITIZER
Storage of one imported image and the data attached to that image.
int cursorSize() const
Get method for effective cursor size.
const QString DOCUMENT_SERIALIZE_COMMON
const QString SETTINGS_GROUP_GENERAL
void setExtraPrecision(int extraPrecision)
Set method for extra digits of precision.
Model for DlgSettingsGeneral and CmdSettingsGeneral.
DocumentModelGeneral & operator=(const DocumentModelGeneral &other)
Assignment constructor.
int extraPrecision() const
Get method for extra digits of precsion.
#define LOG4CPP_INFO_S(logger)
const QString SETTINGS_GENERAL_EXTRA_PRECISION
const QString DOCUMENT_SERIALIZE_GENERAL
const QString SETTINGS_ENGAUGE
const int DEFAULT_CURSOR_SIZE
void setCursorSize(int cursorSize)
Set method for effective cursor size.
const QString SETTINGS_GENERAL_CURSOR_SIZE
log4cpp::Category * mainCat
const QString INDENTATION_DELTA
DocumentModelGeneral()
Default constructor.
QXmlStreamReader::TokenType loadNextFromReader(QXmlStreamReader &reader)
Load next token from xml reader.