106 QDomDocument doc = QDomDocument();
107 QString errorMsg {
""};
108 int errorLine {0}, errorColumn {0};
110 if(doc.setContent(xmlContent, &errorMsg, &errorLine, &errorColumn)) {
119 QDomDocument doc = QDomDocument();
121 doc.appendChild(elt);
122 return doc.toString(2);
float value(const T *src, size_t ch)
bool hasSamePositionAs(const GuidesConfig &guideConfig) const
indicate if position from current guides configuration match positions from another guides configurat...
QString toXml() const
Save guides definition as an XML document.
void setColor(const QColor &color) const
Define guides color.
QList< qreal > horizontalGuides() const
The horizontal guides.
bool operator!=(const GuidesConfig &other) const
QColor color() const
Guides color.
bool fromXml(const QString &xmlContent) const
Load guides definition from an XML document.
void removeAllGuides()
Remove all guides.
void setVerticalGuides(const QList< qreal > &lines)
Set the vertical guides.
bool operator==(const GuidesConfig &other) const
void setLocked(const bool value)
Set guides lock status.
bool hasGuides() const
indicate if there's guides defined
void setVisible(const bool value)
Set guides visibility status.
QString lineType() const
Guides line type.
KisGuidesConfig guidesConfig() const
GuidesConfig(KisGuidesConfig *guidesConfig)
bool visible() const
Returns guides visibility status.
bool snap() const
Returns guide snap status.
void setHorizontalGuides(const QList< qreal > &lines)
Set the horizontal guides.
QList< qreal > verticalGuides() const
The vertical guides.
bool locked() const
Returns guide lock status.
void setSnap(const bool value)
Set guides snap status.
void setLineType(const QString &lineType)
Define guides lines type.
void setHorizontalGuideLines(const QList< qreal > &lines)
Set the positions of the horizontal guide lines.
void setShowGuides(bool value)
void setSnapToGuides(bool value)
void setGuidesColor(const QColor &value)
const QList< qreal > & verticalGuideLines() const
Returns the list of vertical guide lines.
void setLockGuides(bool value)
QDomElement saveToXml(QDomDocument &doc, const QString &tag) const
bool loadFromXml(const QDomElement &parent)
void setVerticalGuideLines(const QList< qreal > &lines)
Set the positions of the vertical guide lines.
bool hasSamePositionAs(const KisGuidesConfig &rhs) const
const QList< qreal > & horizontalGuideLines() const
Returns the list of horizontal guide lines.
LineTypeInternal guidesLineType
void setGuidesLineType(LineTypeInternal value)
KisGuidesConfig * guidesConfig