Changeset View
Changeset View
Standalone View
Standalone View
libs/image/brushengine/kis_paintop_settings.h
Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Line(s) | 75 | public: | |||
---|---|---|---|---|---|
81 | /** | 81 | /** | ||
82 | * | 82 | * | ||
83 | */ | 83 | */ | ||
84 | void setOptionsWidget(KisPaintOpConfigWidget* widget); | 84 | void setOptionsWidget(KisPaintOpConfigWidget* widget); | ||
85 | 85 | | |||
86 | /** | 86 | /** | ||
87 | * This function is called by a tool when the mouse is pressed. It's useful if | 87 | * This function is called by a tool when the mouse is pressed. It's useful if | ||
88 | * the paintop needs mouse interaction for instance in the case of the clone op. | 88 | * the paintop needs mouse interaction for instance in the case of the clone op. | ||
89 | * If the tool is supposed to ignore the event, the paint op should return false | 89 | * If the tool is supposed to ignore the event, the paint op should return true | ||
90 | * and if the tool is supposed to use the event, return true. | 90 | * and if the tool is supposed to use the event, return false. | ||
91 | * See kis_tool_freehand:tryPickByPaintOp() | ||||
91 | */ | 92 | */ | ||
92 | virtual bool mousePressEvent(const KisPaintInformation &paintInformation, Qt::KeyboardModifiers modifiers, KisNodeWSP currentNode); | 93 | virtual bool mousePressEvent(const KisPaintInformation &paintInformation, Qt::KeyboardModifiers modifiers, KisNodeWSP currentNode); | ||
93 | 94 | /** | |||
95 | * This function is called by a tool when the mouse is released. It's useful if | ||||
96 | * the paintop needs mouse interaction for instance in the case of the clone op. | ||||
97 | * If the tool is supposed to ignore the event, the paint op should return true | ||||
98 | * and if the tool is supposed to use the event, return false. | ||||
99 | */ | ||||
100 | virtual bool mouseReleaseEvent(); | ||||
94 | /** | 101 | /** | ||
95 | * Clone the current settings object. Override this if your settings instance doesn't | 102 | * Clone the current settings object. Override this if your settings instance doesn't | ||
96 | * store everything as properties. | 103 | * store everything as properties. | ||
97 | */ | 104 | */ | ||
98 | virtual KisPaintOpSettingsSP clone() const; | 105 | virtual KisPaintOpSettingsSP clone() const; | ||
99 | 106 | | |||
100 | /** | 107 | /** | ||
101 | * Removes all the settings from the object while keeping the paintop id, | 108 | * Removes all the settings from the object while keeping the paintop id, | ||
▲ Show 20 Lines • Show All 250 Lines • Show Last 20 Lines |