|
Krita Source Code Documentation
|
#include <kis_guides_config.h>
Inheritance diagram for KisGuidesConfig:Public Types | |
| enum | LineTypeInternal { LINE_SOLID = 0 , LINE_DASHED , LINE_DOTTED } |
Public Member Functions | |
| void | addGuideLine (Qt::Orientation orientation, qreal position) |
| Add a guide line to the canvas. | |
| QColor | guidesColor () const |
| LineTypeInternal | guidesLineType () const |
| QPen | guidesPen () const |
| bool | hasGuides () const |
| bool | hasSamePositionAs (const KisGuidesConfig &rhs) const |
| const QList< qreal > & | horizontalGuideLines () const |
| Returns the list of horizontal guide lines. | |
| bool | isDefault () const |
| KisGuidesConfig () | |
| KisGuidesConfig (const KisGuidesConfig &rhs) | |
| bool | loadFromXml (const QDomElement &parent) |
| void | loadStaticData () |
| bool | lockGuides () const |
| KisGuidesConfig & | operator= (const KisGuidesConfig &rhs) |
| bool | operator== (const KisGuidesConfig &rhs) const |
| bool | operator== (const Private &rhs) |
| void | removeAllGuides () |
| bool | rulersMultiple2 () const |
| void | saveStaticData () const |
| QDomElement | saveToXml (QDomDocument &doc, const QString &tag) const |
| void | setGuidesColor (const QColor &value) |
| void | setGuidesLineType (LineTypeInternal value) |
| void | setHorizontalGuideLines (const QList< qreal > &lines) |
| Set the positions of the horizontal guide lines. | |
| void | setLockGuides (bool value) |
| void | setRulersMultiple2 (bool value) |
| void | setShowGuides (bool value) |
| void | setSnapToGuides (bool value) |
| void | setUnitType (KoUnit::Type type) |
| void | setVerticalGuideLines (const QList< qreal > &lines) |
| Set the positions of the vertical guide lines. | |
| bool | showGuides () const |
| bool | snapToGuides () const |
| Qt::PenStyle | toPenStyle (LineTypeInternal type) |
| void | transform (const QTransform &transform) |
| KoUnit::Type | unitType () const |
| const QList< qreal > & | verticalGuideLines () const |
| Returns the list of vertical guide lines. | |
| ~KisGuidesConfig () | |
Public Attributes | |
| QColor | guidesColor |
| LineTypeInternal | guidesLineType {LINE_SOLID} |
| QList< qreal > | horzGuideLines |
| bool | lockGuides {false} |
| bool | rulersMultiple2 {false} |
| bool | showGuides {false} |
| bool | snapToGuides {false} |
| KoUnit::Type | unitType {KoUnit::Pixel} |
| QList< qreal > | vertGuideLines |
Private Attributes | |
| const QScopedPointer< Private > | d |
Private Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
Additional Inherited Members | |
Private Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
Definition at line 25 of file kis_guides_config.cpp.
| Enumerator | |
|---|---|
| LINE_SOLID | |
| LINE_DASHED | |
| LINE_DOTTED | |
Definition at line 27 of file kis_guides_config.h.
| KisGuidesConfig::KisGuidesConfig | ( | ) |
Definition at line 57 of file kis_guides_config.cpp.
References loadStaticData().
| KisGuidesConfig::~KisGuidesConfig | ( | ) |
Definition at line 63 of file kis_guides_config.cpp.
| KisGuidesConfig::KisGuidesConfig | ( | const KisGuidesConfig & | rhs | ) |
Definition at line 67 of file kis_guides_config.cpp.
| void KisGuidesConfig::addGuideLine | ( | Qt::Orientation | orientation, |
| qreal | position ) |
Add a guide line to the canvas.
| orientation | the orientation of the guide line |
| position | the position in document coordinates of the guide line |
Definition at line 102 of file kis_guides_config.cpp.
References d.
| QColor KisGuidesConfig::guidesColor | ( | ) | const |
| LineTypeInternal KisGuidesConfig::guidesLineType | ( | ) | const |
| QPen KisGuidesConfig::guidesPen | ( | ) | const |
| bool KisGuidesConfig::hasGuides | ( | ) | const |
Definition at line 212 of file kis_guides_config.cpp.
References d.
| bool KisGuidesConfig::hasSamePositionAs | ( | const KisGuidesConfig & | rhs | ) | const |
Definition at line 86 of file kis_guides_config.cpp.
References horizontalGuideLines(), and verticalGuideLines().
| const QList< qreal > & KisGuidesConfig::horizontalGuideLines | ( | ) | const |
Returns the list of horizontal guide lines.
Definition at line 202 of file kis_guides_config.cpp.
References d.
| bool KisGuidesConfig::isDefault | ( | ) | const |
Definition at line 289 of file kis_guides_config.cpp.
References loadStaticData().
| bool KisGuidesConfig::loadFromXml | ( | const QDomElement & | parent | ) |
Definition at line 250 of file kis_guides_config.cpp.
References d, KoUnit::fromSymbol(), KisConfig::guidesColor(), KisConfig::guidesLineStyle(), guidesLineType, and KisDomUtils::loadValue().
| void KisGuidesConfig::loadStaticData | ( | ) |
Definition at line 217 of file kis_guides_config.cpp.
References d, KisConfig::guidesColor(), and KisConfig::guidesLineStyle().
| bool KisGuidesConfig::lockGuides | ( | ) | const |
| KisGuidesConfig & KisGuidesConfig::operator= | ( | const KisGuidesConfig & | rhs | ) |
Definition at line 72 of file kis_guides_config.cpp.
References d.
| bool KisGuidesConfig::operator== | ( | const KisGuidesConfig & | rhs | ) | const |
|
inline |
Definition at line 29 of file kis_guides_config.cpp.
| void KisGuidesConfig::removeAllGuides | ( | ) |
Definition at line 111 of file kis_guides_config.cpp.
References setHorizontalGuideLines(), and setVerticalGuideLines().
| bool KisGuidesConfig::rulersMultiple2 | ( | ) | const |
| void KisGuidesConfig::saveStaticData | ( | ) | const |
Definition at line 224 of file kis_guides_config.cpp.
References d, KisConfig::setGuidesColor(), and KisConfig::setGuidesLineStyle().
| QDomElement KisGuidesConfig::saveToXml | ( | QDomDocument & | doc, |
| const QString & | tag ) const |
Definition at line 231 of file kis_guides_config.cpp.
References d, and KisDomUtils::saveValue().
| void KisGuidesConfig::setGuidesColor | ( | const QColor & | value | ) |
Definition at line 185 of file kis_guides_config.cpp.
| void KisGuidesConfig::setGuidesLineType | ( | LineTypeInternal | value | ) |
Set the positions of the horizontal guide lines.
| lines | a list of positions of the horizontal guide lines |
Definition at line 92 of file kis_guides_config.cpp.
References d.
| void KisGuidesConfig::setLockGuides | ( | bool | value | ) |
| void KisGuidesConfig::setRulersMultiple2 | ( | bool | value | ) |
| void KisGuidesConfig::setShowGuides | ( | bool | value | ) |
| void KisGuidesConfig::setSnapToGuides | ( | bool | value | ) |
| void KisGuidesConfig::setUnitType | ( | KoUnit::Type | type | ) |
Definition at line 163 of file kis_guides_config.cpp.
References d.
Set the positions of the vertical guide lines.
| lines | a list of positions of the vertical guide lines |
Definition at line 97 of file kis_guides_config.cpp.
References d.
| bool KisGuidesConfig::showGuides | ( | ) | const |
| bool KisGuidesConfig::snapToGuides | ( | ) | const |
| Qt::PenStyle KisGuidesConfig::toPenStyle | ( | LineTypeInternal | type | ) |
| void KisGuidesConfig::transform | ( | const QTransform & | transform | ) |
Transform the guides using the given transform. Please note that transform should be in 'document' coordinate system. Used with image-wide transformations.
Definition at line 297 of file kis_guides_config.cpp.
References KisAlgebra2D::DecomposedMatrix::angle, d, eps, normalizeAngleDegrees(), KisAlgebra2D::DecomposedMatrix::rotateTransform(), KisAlgebra2D::DecomposedMatrix::scaleTransform(), transform(), KisAlgebra2D::DecomposedMatrix::translateTransform(), and KisAlgebra2D::wrapValue().
| KoUnit::Type KisGuidesConfig::unitType | ( | ) | const |
| const QList< qreal > & KisGuidesConfig::verticalGuideLines | ( | ) | const |
Returns the list of vertical guide lines.
Definition at line 207 of file kis_guides_config.cpp.
References d.
|
private |
Definition at line 109 of file kis_guides_config.h.
| QColor KisGuidesConfig::guidesColor |
Definition at line 51 of file kis_guides_config.cpp.
| KisGuidesConfig::LineTypeInternal KisGuidesConfig::guidesLineType {LINE_SOLID} |
Definition at line 52 of file kis_guides_config.cpp.
| QList<qreal> KisGuidesConfig::horzGuideLines |
Definition at line 41 of file kis_guides_config.cpp.
| bool KisGuidesConfig::lockGuides {false} |
Definition at line 46 of file kis_guides_config.cpp.
| bool KisGuidesConfig::rulersMultiple2 {false} |
Definition at line 47 of file kis_guides_config.cpp.
| bool KisGuidesConfig::showGuides {false} |
Definition at line 44 of file kis_guides_config.cpp.
| bool KisGuidesConfig::snapToGuides {false} |
Definition at line 45 of file kis_guides_config.cpp.
| KoUnit::Type KisGuidesConfig::unitType {KoUnit::Pixel} |
Definition at line 49 of file kis_guides_config.cpp.
| QList<qreal> KisGuidesConfig::vertGuideLines |
Definition at line 42 of file kis_guides_config.cpp.