|
Krita Source Code Documentation
|
#include <arrangedocker_dock.h>
Inheritance diagram for ArrangeDockerDock:Public Member Functions | |
| ArrangeDockerDock () | |
| QString | observerName () override |
| void | setCanvas (KoCanvasBase *canvas) override |
| void | unsetCanvas () override |
| ~ArrangeDockerDock () override | |
Public Member Functions inherited from KoCanvasObserverBase | |
| KoCanvasObserverBase () | |
| KoCanvasBase * | observedCanvas () const |
| void | setObservedCanvas (KoCanvasBase *canvas) |
| void | unsetObservedCanvas () |
| virtual | ~KoCanvasObserverBase () |
Private Slots | |
| void | slotToolChanged () |
| void | slotToolChanged (QString toolId) |
Private Attributes | |
| QPointer< KisCanvas2 > | m_canvas |
| KisSignalAutoConnectionsStore | m_canvasConnections |
| ArrangeDockerWidget * | m_configWidget |
Additional Inherited Members |
Definition at line 19 of file arrangedocker_dock.h.
| ArrangeDockerDock::ArrangeDockerDock | ( | ) |
Definition at line 18 of file arrangedocker_dock.cpp.
References m_canvas, m_configWidget, and ArrangeDockerWidget::switchState().
|
override |
Definition at line 28 of file arrangedocker_dock.cpp.
|
inlineoverridevirtual |
Reimplemented from KoCanvasObserverBase.
Definition at line 24 of file arrangedocker_dock.h.
|
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 32 of file arrangedocker_dock.cpp.
References KisSignalAutoConnectionsStore::addConnection(), KisSignalAutoConnectionsStore::clear(), m_canvas, m_canvasConnections, and slotToolChanged().
|
privateslot |
Definition at line 68 of file arrangedocker_dock.cpp.
References m_canvas, m_configWidget, and ArrangeDockerWidget::setActionCollection().
|
privateslot |
Definition at line 74 of file arrangedocker_dock.cpp.
References m_configWidget, slotToolChanged(), and ArrangeDockerWidget::switchState().
|
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 63 of file arrangedocker_dock.cpp.
References setCanvas().
|
private |
Definition at line 34 of file arrangedocker_dock.h.
|
private |
Definition at line 35 of file arrangedocker_dock.h.
|
private |
Definition at line 33 of file arrangedocker_dock.h.