13#include <QXmlStreamWriter>
33 m_cursorSize (document.modelDigitizeCurve().
cursorSize())
57 return m_cursorInnerRadius;
62 return m_cursorLineWidth;
72 return m_cursorStandardCross;
81 QXmlStreamAttributes attributes = reader.attributes();
97 while ((reader.tokenType() != QXmlStreamReader::EndElement) ||
100 if (reader.atEnd()) {
108 reader.raiseError (QObject::tr (
"Cannot read digitize curve data"));
113 QTextStream &str)
const
115 str << indentation <<
"DocumentModelDigitizeCurve\n";
119 str << indentation <<
"cursorStandardCross=" << (m_cursorStandardCross ?
"true" :
"false") <<
"\n";
120 str << indentation <<
"cursorInnerRadius=" << m_cursorInnerRadius <<
"\n";
121 str << indentation <<
"cursorSize=" << m_cursorSize <<
"\n";
122 str << indentation <<
"cursorLineWidth=" << m_cursorLineWidth <<
"\n";
136 writer.writeEndElement();
CursorSize
Custom cursor sizes supported on all platforms for the most part, according to QCursor documentation.
const int DEFAULT_CURSOR_LINE_WIDTH
const CursorSize DEFAULT_CURSOR_SIZE
const int DEFAULT_CURSOR_INNER_RADIUS
const bool DEFAULT_CURSOR_STANDARD_CROSS
const QString DOCUMENT_SERIALIZE_DIGITIZE_CURVE_CURSOR_LINE_WIDTH
const QString DOCUMENT_SERIALIZE_DIGITIZE_CURVE_CURSOR_INNER_RADIUS
const QString DOCUMENT_SERIALIZE_DIGITIZE_CURVE_CURSOR_STANDARD_CROSS
const QString DOCUMENT_SERIALIZE_DIGITIZE_CURVE_CURSOR_SIZE
const QString DOCUMENT_SERIALIZE_DIGITIZE_CURVE
const QString DOCUMENT_SERIALIZE_BOOL_TRUE
const QString DOCUMENT_SERIALIZE_BOOL_FALSE
log4cpp::Category * mainCat
const QString INDENTATION_DELTA
QXmlStreamReader::TokenType loadNextFromReader(QXmlStreamReader &reader)
Load next token from xml reader.
void setCursorStandardCross(bool cursorStandardCross)
Set method for cursor type.
DocumentModelDigitizeCurve & operator=(const DocumentModelDigitizeCurve &other)
Assignment constructor.
DocumentModelDigitizeCurve()
Default constructor.
void setCursorLineWidth(int lineWidth)
Set method for cursor line width.
void setCursorInnerRadius(int innerRadius)
Set method for cursor inner radius.
CursorSize cursorSize() const
Get method for cursor size.
int cursorInnerRadius() const
Get method for cursor inner radius.
bool cursorStandardCross() const
Get method for cursor type.
int cursorLineWidth() const
Get method for cursor line width.
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(...
void setCursorSize(CursorSize cursorSize)
Set method for cursor size.
virtual void saveXml(QXmlStreamWriter &writer) const
Save entire model as xml into stream.
Storage of one imported image and the data attached to that image.
#define LOG4CPP_INFO_S(logger)