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