|
Krita Source Code Documentation
|
#include <griddocker_dock.h>
Inheritance diagram for GridDockerDock:Public Slots | |
| void | slotGridConfigUpdateRequested (const KisGridConfig &config) |
| void | slotGuidesConfigUpdateRequested (const KisGuidesConfig &config) |
| void | slotGuiGridConfigChanged () |
| void | slotGuiGuidesConfigChanged () |
Public Member Functions | |
| GridDockerDock () | |
| QString | observerName () override |
| void | setCanvas (KoCanvasBase *canvas) override |
| void | unsetCanvas () override |
| ~GridDockerDock () override | |
Public Member Functions inherited from KoCanvasObserverBase | |
| KoCanvasObserverBase () | |
| KoCanvasBase * | observedCanvas () const |
| void | setObservedCanvas (KoCanvasBase *canvas) |
| void | unsetObservedCanvas () |
| virtual | ~KoCanvasObserverBase () |
Private Attributes | |
| QPointer< KisCanvas2 > | m_canvas |
| KisSignalAutoConnectionsStore | m_canvasConnections |
| GridConfigWidget * | m_configWidget |
Additional Inherited Members |
Definition at line 22 of file griddocker_dock.h.
| GridDockerDock::GridDockerDock | ( | ) |
Definition at line 30 of file griddocker_dock.cpp.
References connect(), m_canvas, m_configWidget, slotGuiGridConfigChanged(), and slotGuiGuidesConfigChanged().
|
override |
Definition at line 41 of file griddocker_dock.cpp.
|
inlineoverridevirtual |
Reimplemented from KoCanvasObserverBase.
Definition at line 27 of file griddocker_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 45 of file griddocker_dock.cpp.
References KisSignalAutoConnectionsStore::addConnection(), KisSignalAutoConnectionsStore::clear(), GridConfigWidget::enableIsometricLegacyGrid(), m_canvas, m_canvasConnections, m_configWidget, GridConfigWidget::setShowRulers(), slotGridConfigUpdateRequested(), and slotGuidesConfigUpdateRequested().
|
slot |
Definition at line 102 of file griddocker_dock.cpp.
References m_configWidget, and GridConfigWidget::setGridConfig().
|
slot |
Definition at line 113 of file griddocker_dock.cpp.
References m_configWidget, and GridConfigWidget::setGuidesConfig().
|
slot |
Definition at line 96 of file griddocker_dock.cpp.
References GridConfigWidget::gridConfig(), m_canvas, and m_configWidget.
|
slot |
Definition at line 107 of file griddocker_dock.cpp.
References GridConfigWidget::guidesConfig(), m_canvas, and m_configWidget.
|
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 91 of file griddocker_dock.cpp.
References setCanvas().
|
private |
Definition at line 40 of file griddocker_dock.h.
|
private |
Definition at line 41 of file griddocker_dock.h.
|
private |
Definition at line 39 of file griddocker_dock.h.