Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/canvas/kis_guides_config.h
Show All 20 Lines | |||||
21 | 21 | | |||
22 | #ifndef KOGUIDESDATA_H | 22 | #ifndef KOGUIDESDATA_H | ||
23 | #define KOGUIDESDATA_H | 23 | #define KOGUIDESDATA_H | ||
24 | 24 | | |||
25 | #include "kritaui_export.h" | 25 | #include "kritaui_export.h" | ||
26 | #include <QScopedPointer> | 26 | #include <QScopedPointer> | ||
27 | #include <QList> | 27 | #include <QList> | ||
28 | #include <boost/operators.hpp> | 28 | #include <boost/operators.hpp> | ||
29 | #include <KoUnit.h> | ||||
29 | 30 | | |||
30 | class QDomElement; | 31 | class QDomElement; | ||
31 | class QDomDocument; | 32 | class QDomDocument; | ||
32 | class QColor; | 33 | class QColor; | ||
33 | class QPen; | 34 | class QPen; | ||
34 | 35 | | |||
35 | 36 | | |||
36 | class KRITAUI_EXPORT KisGuidesConfig : boost::equality_comparable<KisGuidesConfig> | 37 | class KRITAUI_EXPORT KisGuidesConfig : boost::equality_comparable<KisGuidesConfig> | ||
▲ Show 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | 46 | public: | |||
84 | 85 | | |||
85 | bool showGuides() const; | 86 | bool showGuides() const; | ||
86 | void setShowGuides(bool value); | 87 | void setShowGuides(bool value); | ||
87 | bool lockGuides() const; | 88 | bool lockGuides() const; | ||
88 | void setLockGuides(bool value); | 89 | void setLockGuides(bool value); | ||
89 | bool snapToGuides() const; | 90 | bool snapToGuides() const; | ||
90 | void setSnapToGuides(bool value); | 91 | void setSnapToGuides(bool value); | ||
91 | 92 | | |||
93 | bool rulersMultiple2() const; | ||||
94 | void setRulersMultiple2(bool value); | ||||
95 | | ||||
96 | KoUnit::Type unitType() const; | ||||
97 | void setUnitType(KoUnit::Type type); | ||||
98 | | ||||
92 | LineTypeInternal guidesLineType() const; | 99 | LineTypeInternal guidesLineType() const; | ||
93 | void setGuidesLineType(LineTypeInternal value); | 100 | void setGuidesLineType(LineTypeInternal value); | ||
94 | 101 | | |||
95 | QColor guidesColor() const; | 102 | QColor guidesColor() const; | ||
96 | void setGuidesColor(const QColor &value); | 103 | void setGuidesColor(const QColor &value); | ||
97 | 104 | | |||
98 | QPen guidesPen() const; | 105 | QPen guidesPen() const; | ||
99 | 106 | | |||
100 | /// Returns the list of horizontal guide lines. | 107 | /// Returns the list of horizontal guide lines. | ||
101 | const QList<qreal>& horizontalGuideLines() const; | 108 | const QList<qreal>& horizontalGuideLines() const; | ||
102 | 109 | | |||
103 | /// Returns the list of vertical guide lines. | 110 | /// Returns the list of vertical guide lines. | ||
104 | const QList<qreal>& verticalGuideLines() const; | 111 | const QList<qreal>& verticalGuideLines() const; | ||
105 | 112 | | |||
106 | bool hasGuides() const; | 113 | bool hasGuides() const; | ||
107 | 114 | | |||
108 | void loadStaticData(); | 115 | void loadStaticData(); | ||
109 | void saveStaticData() const; | 116 | void saveStaticData() const; | ||
110 | 117 | | |||
111 | QDomElement saveToXml(QDomDocument& doc, const QString &tag) const; | 118 | QDomElement saveToXml(QDomDocument& doc, const QString &tag) const; | ||
112 | bool loadFromXml(const QDomElement &parent); | 119 | bool loadFromXml(const QDomElement &parent); | ||
113 | 120 | | |||
121 | bool isDefault() const; | ||||
122 | | ||||
114 | private: | 123 | private: | ||
115 | class Private; | 124 | class Private; | ||
116 | const QScopedPointer<Private> d; | 125 | const QScopedPointer<Private> d; | ||
117 | }; | 126 | }; | ||
118 | 127 | | |||
119 | 128 | | |||
120 | #endif | 129 | #endif | ||
121 | 130 | |