Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/tool/kis_tool_paint.h
Show First 20 Lines • Show All 104 Lines • ▼ Show 20 Line(s) | 89 | protected: | |||
---|---|---|---|---|---|
105 | 105 | | |||
106 | /** | 106 | /** | ||
107 | * Quick help is a short help text about the way the tool functions. | 107 | * Quick help is a short help text about the way the tool functions. | ||
108 | */ | 108 | */ | ||
109 | virtual QString quickHelp() const { | 109 | virtual QString quickHelp() const { | ||
110 | return QString(); | 110 | return QString(); | ||
111 | } | 111 | } | ||
112 | 112 | | |||
113 | enum NodePaintAbility { | | |||
114 | NONE, | | |||
115 | PAINT, | | |||
116 | VECTOR, | | |||
117 | CLONE | | |||
118 | }; | | |||
119 | | ||||
120 | /// Checks if and how the tool can paint on the current node | | |||
121 | NodePaintAbility nodePaintAbility(); | | |||
122 | | ||||
123 | const KoCompositeOp* compositeOp(); | 113 | const KoCompositeOp* compositeOp(); | ||
124 | 114 | | |||
125 | public Q_SLOTS: | 115 | public Q_SLOTS: | ||
126 | void activate(ToolActivation toolActivation, const QSet<KoShape*> &shapes) override; | 116 | void activate(ToolActivation toolActivation, const QSet<KoShape*> &shapes) override; | ||
127 | void deactivate() override; | 117 | void deactivate() override; | ||
128 | 118 | | |||
129 | private Q_SLOTS: | 119 | private Q_SLOTS: | ||
130 | 120 | | |||
▲ Show 20 Lines • Show All 80 Lines • Show Last 20 Lines |