|
Krita Source Code Documentation
|
#include <SnapshotDocker.h>
Inheritance diagram for SnapshotDocker:Classes | |
| struct | Private |
Public Member Functions | |
| QString | observerName () override |
| void | setCanvas (KoCanvasBase *canvas) override |
| void | setViewManager (KisViewManager *viewManager) override |
| SnapshotDocker () | |
| void | unsetCanvas () override |
| ~SnapshotDocker () 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 Slots | |
| void | slotBnAddClicked () |
| void | slotBnRemoveClicked () |
| void | slotBnSwitchToClicked () |
Private Attributes | |
| QScopedPointer< Private > | m_d |
Additional Inherited Members |
Definition at line 18 of file SnapshotDocker.h.
| SnapshotDocker::SnapshotDocker | ( | ) |
Definition at line 52 of file SnapshotDocker.cpp.
References connect(), KisIconUtils::loadIcon(), m_d, slotBnAddClicked(), slotBnRemoveClicked(), and slotBnSwitchToClicked().
|
override |
Definition at line 85 of file SnapshotDocker.cpp.
|
inlineoverridevirtual |
Reimplemented from KoCanvasObserverBase.
Definition at line 25 of file SnapshotDocker.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 103 of file SnapshotDocker.cpp.
References m_d.
|
overridevirtual |
Implements KisMainwindowObserver.
Definition at line 89 of file SnapshotDocker.cpp.
References KisViewManager::actionManager(), KisActionManager::createAction(), m_d, KisSnapshotModel::slotCreateSnapshot(), KisSnapshotView::slotRemoveSelectedSnapshot(), and KisSnapshotView::slotSwitchToSelectedSnapshot().
|
privateslot |
Definition at line 121 of file SnapshotDocker.cpp.
References KisActionManager::actionByName(), KisViewManager::actionManager(), Private::canvas, m_d, and KisCanvas2::viewManager().
|
privateslot |
Definition at line 137 of file SnapshotDocker.cpp.
References KisActionManager::actionByName(), KisViewManager::actionManager(), Private::canvas, m_d, and KisCanvas2::viewManager().
|
privateslot |
Definition at line 129 of file SnapshotDocker.cpp.
References KisActionManager::actionByName(), KisViewManager::actionManager(), Private::canvas, m_d, and KisCanvas2::viewManager().
|
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 116 of file SnapshotDocker.cpp.
References setCanvas().
|
private |
Definition at line 38 of file SnapshotDocker.h.