Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/widgets/kis_preset_live_preview_view.h
Context not available. | |||||
67 | void updateStroke(); | 67 | void updateStroke(); | ||
---|---|---|---|---|---|
68 | 68 | | |||
69 | 69 | | |||
70 | public Q_SLOTS: | | |||
71 | /** | | |||
72 | * @brief scales the view to fit the brush stroke and moves it back to the center position | | |||
73 | */ | | |||
74 | void slotResetViewZoom(); | | |||
75 | | ||||
76 | /** | | |||
77 | * @brief sets the zoom level to full size to get a close up of larger brushes | | |||
78 | */ | | |||
79 | void slotZoomToOneHundredPercent(); | | |||
80 | | ||||
81 | | ||||
82 | | ||||
83 | private: | 70 | private: | ||
84 | 71 | | |||
85 | /// internally sets the image area for brush preview | 72 | /// internally sets the image area for brush preview | ||
Context not available. | |||||
146 | 133 | | |||
147 | 134 | | |||
148 | /** | 135 | /** | ||
149 | * @brief reads the brush size and scales the view out to fit it | | |||
150 | * used internally when resetting the views or changing brush sizes | | |||
151 | */ | | |||
152 | void zoomToBrushSize(); | | |||
153 | | ||||
154 | /** | | |||
155 | * @brief works as both clearing the previous stroke, providing | 136 | * @brief works as both clearing the previous stroke, providing | ||
156 | * striped backgrounds for smudging brushes, and text if there is no preview | 137 | * striped backgrounds for smudging brushes, and text if there is no preview | ||
157 | */ | 138 | */ | ||
Context not available. | |||||
163 | */ | 144 | */ | ||
164 | void setupAndPaintStroke(); | 145 | void setupAndPaintStroke(); | ||
165 | 146 | | |||
166 | | ||||
167 | }; | 147 | }; | ||
168 | 148 | | |||
169 | #endif | 149 | #endif | ||
Context not available. |