Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/KisViewManager.h
Show First 20 Lines • Show All 159 Lines • ▼ Show 20 Line(s) | 81 | public: // Krita specific interfaces | |||
---|---|---|---|---|---|
160 | 160 | | |||
161 | /// The undo adapter is used to add commands to the undo stack | 161 | /// The undo adapter is used to add commands to the undo stack | ||
162 | KisUndoAdapter *undoAdapter(); | 162 | KisUndoAdapter *undoAdapter(); | ||
163 | 163 | | |||
164 | KisDocument *document() const; | 164 | KisDocument *document() const; | ||
165 | 165 | | |||
166 | int viewCount() const; | 166 | int viewCount() const; | ||
167 | 167 | | |||
168 | /** | ||||
169 | * @brief blockUntillOperationsFinished blocks the GUI of the application until execution | ||||
170 | * of actions on \p image is finished | ||||
171 | * @param image the image which we should wait for | ||||
172 | * @return true if the image has finished execution of the actions, false if | ||||
173 | * the user cancelled operation | ||||
174 | */ | ||||
175 | bool blockUntillOperationsFinished(KisImageSP image); | ||||
176 | | ||||
177 | | ||||
178 | /** | ||||
179 | * @brief blockUntillOperationsFinished blocks the GUI of the application until execution | ||||
180 | * of actions on \p image is finished. Does *not* provide a "Cancel" button. So the | ||||
181 | * user is forced to wait. | ||||
182 | * @param image the image which we should wait for | ||||
183 | */ | ||||
184 | void blockUntillOperationsFinishedForced(KisImageSP image); | ||||
185 | | ||||
168 | public: | 186 | public: | ||
169 | 187 | | |||
170 | KisGridManager * gridManager() const; | 188 | KisGridManager * gridManager() const; | ||
171 | KisGuidesManager * guidesManager() const; | 189 | KisGuidesManager * guidesManager() const; | ||
172 | KisPaintingAssistantsManager* paintingAssistantsManager() const; | 190 | KisPaintingAssistantsManager* paintingAssistantsManager() const; | ||
173 | 191 | | |||
174 | /// disable and enable toolbar controls. used for disabling them during painting. | 192 | /// disable and enable toolbar controls. used for disabling them during painting. | ||
175 | void enableControls(); | 193 | void enableControls(); | ||
▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines |