|
Krita Source Code Documentation
|
#include <patterndocker_dock.h>
Inheritance diagram for PatternDockerDock:Public Slots | |
| void | patternChanged (KoPatternSP pattern) |
Public Member Functions | |
| QString | observerName () override |
| PatternDockerDock () | |
| void | setCanvas (KoCanvasBase *canvas) override |
| void | setViewManager (KisViewManager *kisview) override |
| void | unsetCanvas () override |
Public Member Functions inherited from KisMainwindowObserver | |
| KisMainwindowObserver () | |
| ~KisMainwindowObserver () override | |
Public Member Functions inherited from KoCanvasObserverBase | |
| KoCanvasObserverBase () | |
| KoCanvasBase * | observedCanvas () const |
| void | setObservedCanvas (KoCanvasBase *canvas) |
| void | unsetObservedCanvas () |
| virtual | ~KoCanvasObserverBase () |
Private Attributes | |
| KisPatternChooser * | m_patternChooser |
Additional Inherited Members |
Definition at line 17 of file patterndocker_dock.h.
| PatternDockerDock::PatternDockerDock | ( | ) |
Definition at line 18 of file patterndocker_dock.cpp.
References m_patternChooser, KisPatternChooser::setCurrentItem(), and KisPatternChooser::setPreviewOrientation().
|
inlineoverridevirtual |
Reimplemented from KoCanvasObserverBase.
Definition at line 26 of file patterndocker_dock.h.
|
slot |
Definition at line 52 of file patterndocker_dock.cpp.
References m_patternChooser, and KisPatternChooser::setCurrentPattern().
|
overridevirtual |
re-implement this method in your canvas observer. It will be called whenever a canvas becomes active. Note that you are responsible for not connecting more than one time to the signals of a canvas or any of the QObjects you can access through the canvas.
Implements KoCanvasObserverBase.
Definition at line 40 of file patterndocker_dock.cpp.
|
overridevirtual |
Implements KisMainwindowObserver.
Definition at line 30 of file patterndocker_dock.cpp.
References KisViewManager::canvasResourceProvider(), connect(), m_patternChooser, patternChanged(), and KisCanvasResourceProvider::sigPatternChanged().
|
overridevirtual |
Re-implement to notify the observer that its canvas is no longer among the living. The daisies, it is pushing up. This means you don't have to disconnect, it's dead.
The old canvas should be deleted already, so if you stored a pointer to it, don't touch!
Note that currently there is a bug where in certain specific circumstances unsetCanvas can be called when it shouldn't, see for example KWStatisticsDocker for a workaround for this problem.
Implements KoCanvasObserverBase.
Definition at line 46 of file patterndocker_dock.cpp.
|
private |
Definition at line 32 of file patterndocker_dock.h.