|
Krita Source Code Documentation
|
#include <kis_shape_layer_canvas.h>
Inheritance diagram for KisShapeLayerCanvasBase:Public Member Functions | |
| void | addCommand (KUndo2Command *command) override |
| const QWidget * | canvasWidget () const override |
| QWidget * | canvasWidget () override |
| virtual void | forceRepaint ()=0 |
| virtual void | forceRepaintWithHiddenAreas () |
| void | gridSize (QPointF *offset, QSizeF *spacing) const override |
| bool | hasChangedWhileBeingInvisible () |
| virtual bool | hasPendingUpdates () const =0 |
| KisShapeLayerCanvasBase (const KisShapeLayerCanvasBase &rhs, KisShapeLayer *parent) | |
| KisShapeLayerCanvasBase (KisShapeLayer *parent) | |
| void | prepareForDestroying () |
| virtual KisPaintDeviceSP | projection () const =0 |
| virtual void | rerenderAfterBeingInvisible ()=0 |
| virtual void | resetCache (const KoColorSpace *colorSpace)=0 |
| KoSelectedShapesProxy * | selectedShapesProxy () const override |
| selectedShapesProxy() is a special interface for keeping a persistent connections to selectionChanged() and selectionContentChanged() signals. While shapeManager() can change throughout the life time of the canvas, selectedShapesProxy() is guaranteed to stay the same. | |
| void | setCursor (const QCursor &) override |
| virtual void | setImage (KisImageWSP image) |
| KoShapeManager * | shapeManager () const override |
| bool | snapToGrid () const override |
| KoToolProxy * | toolProxy () const override |
| KoUnit | unit () const override |
| const KoViewConverter * | viewConverter () const override |
| KoViewConverter * | viewConverter () override |
Public Member Functions inherited from KoCanvasBase | |
| KoCanvasController * | canvasController () const |
| virtual bool | canvasIsOpenGL () const |
| virtual void | clipToDocument (const KoShape *shape, QPointF &move) const |
| virtual void | disconnectCanvasObserver (QObject *object) |
| virtual QPoint | documentOrigin () const |
| KoCanvasBase (KoShapeControllerBase *shapeController, KoCanvasResourceProvider *sharedResourceManager=0) | |
| Private () | |
| KoCanvasResourceProvider * | resourceManager () const |
| void | setCanvasController (KoCanvasController *controller) |
| called by KoCanvasController to set the controller that handles this canvas. | |
| KoShapeController * | shapeController () const |
| KoSnapGuide * | snapGuide () const |
| virtual void | updateCanvas (const QRectF &rc)=0 |
| virtual QPointF | viewToDocument (const QPointF &viewPoint) const |
| ~KoCanvasBase () override | |
| ~Private () | |
Protected Attributes | |
| bool | m_hasChangedWhileBeingInvisible {false} |
| bool | m_isDestroying {false} |
| QScopedPointer< KoSelectedShapesProxy > | m_selectedShapesProxy |
| QScopedPointer< KoShapeManager > | m_shapeManager |
| KisImageViewConverter | m_viewConverter |
Additional Inherited Members | |
Public Attributes inherited from KoCanvasBase | |
| KoCanvasController * | controller |
| bool | isResourceManagerShared |
| QPointer< KoCanvasResourceProvider > | resourceManager |
| QPointer< KoShapeController > | shapeController |
| KoSnapGuide * | snapGuide |
Definition at line 33 of file kis_shape_layer_canvas.h.
| KisShapeLayerCanvasBase::KisShapeLayerCanvasBase | ( | KisShapeLayer * | parent | ) |
Definition at line 40 of file kis_shape_layer_canvas.cpp.
References m_shapeManager.
| KisShapeLayerCanvasBase::KisShapeLayerCanvasBase | ( | const KisShapeLayerCanvasBase & | rhs, |
| KisShapeLayer * | parent ) |
Definition at line 49 of file kis_shape_layer_canvas.cpp.
References m_shapeManager, m_viewConverter, and KisImageViewConverter::setImage().
|
overridevirtual |
Adds a command to the history. Call this for each command you create. This will also execute the command. This means, most of the application's code will look like MyCommand * cmd = new MyCommand( parameters ); canvas.addCommand( cmd );
Note that the command history takes ownership of the command, it will delete it when the undo limit is reached, or when deleting the command history itself.
| command | the command to add |
Implements KoCanvasBase.
Definition at line 97 of file kis_shape_layer_canvas.cpp.
References KIS_SAFE_ASSERT_RECOVER_NOOP.
|
overridevirtual |
Return the widget that will be added to the scrollArea.
Implements KoCanvasBase.
Definition at line 114 of file kis_shape_layer_canvas.cpp.
|
overridevirtual |
Return the widget that will be added to the scrollArea.
Implements KoCanvasBase.
Definition at line 109 of file kis_shape_layer_canvas.cpp.
|
pure virtual |
Implemented in KisShapeLayerCanvas, and ReferenceImagesCanvas.
|
inlinevirtual |
Reimplemented in KisShapeLayerCanvas.
Definition at line 46 of file kis_shape_layer_canvas.h.
References forceRepaint().
|
overridevirtual |
retrieve the grid size setting. The grid spacing will be provided in pt.
| horizontal | a pointer to a qreal that will be filled with the horizontal grid-spacing |
| vertical | a pointer to a qreal that will be filled with the vertical grid-spacing |
Implements KoCanvasBase.
Definition at line 84 of file kis_shape_layer_canvas.cpp.
References KIS_SAFE_ASSERT_RECOVER_NOOP.
| bool KisShapeLayerCanvasBase::hasChangedWhileBeingInvisible | ( | ) |
Definition at line 130 of file kis_shape_layer_canvas.cpp.
References m_hasChangedWhileBeingInvisible.
|
pure virtual |
Implemented in KisShapeLayerCanvas, and ReferenceImagesCanvas.
| void KisShapeLayerCanvasBase::prepareForDestroying | ( | ) |
|
pure virtual |
Implemented in KisShapeLayerCanvas, and ReferenceImagesCanvas.
|
pure virtual |
Implemented in KisShapeLayerCanvas, and ReferenceImagesCanvas.
|
pure virtual |
Implemented in ReferenceImagesCanvas, and KisShapeLayerCanvas.
|
overridevirtual |
selectedShapesProxy() is a special interface for keeping a persistent connections to selectionChanged() and selectionContentChanged() signals. While shapeManager() can change throughout the life time of the canvas, selectedShapesProxy() is guaranteed to stay the same.
Implements KoCanvasBase.
Definition at line 69 of file kis_shape_layer_canvas.cpp.
References m_selectedShapesProxy.
|
inlineoverridevirtual |
set the specified cursor on this canvas
| cursor | the new cursor |
Implements KoCanvasBase.
Definition at line 64 of file kis_shape_layer_canvas.h.
|
virtual |
Reimplemented in KisShapeLayerCanvas.
Definition at line 59 of file kis_shape_layer_canvas.cpp.
References m_viewConverter, and KisImageViewConverter::setImage().
|
overridevirtual |
Return the current shapeManager. WARNING: the shape manager can switch in time, e.g. when a layer is changed. Please don't keep any persistent connections to it. Instead please use selectedShapesProxy(), which is guaranteed to be the same throughout the life of the canvas.
Implements KoCanvasBase.
Definition at line 64 of file kis_shape_layer_canvas.cpp.
References m_shapeManager.
|
overridevirtual |
return if snap to grid is enabled.
Implements KoCanvasBase.
Definition at line 91 of file kis_shape_layer_canvas.cpp.
References KIS_SAFE_ASSERT_RECOVER_NOOP.
|
overridevirtual |
Return the proxy to the active tool (determining which tool is really, really active is hard when tablets are involved, so leave that to others.
Implements KoCanvasBase.
Definition at line 103 of file kis_shape_layer_canvas.cpp.
|
overridevirtual |
Return the unit of the current document for initialization of the widgets created by the flake framework.
Implements KoCanvasBase.
Definition at line 119 of file kis_shape_layer_canvas.cpp.
References KIS_SAFE_ASSERT_RECOVER_NOOP, and KoUnit::Point.
|
overridevirtual |
Return the viewConverter for this view.
Implements KoCanvasBase.
Definition at line 74 of file kis_shape_layer_canvas.cpp.
References m_viewConverter.
|
overridevirtual |
Implements KoCanvasBase.
Definition at line 79 of file kis_shape_layer_canvas.cpp.
References m_viewConverter.
|
protected |
Definition at line 69 of file kis_shape_layer_canvas.h.
|
protected |
Definition at line 70 of file kis_shape_layer_canvas.h.
|
protected |
Definition at line 68 of file kis_shape_layer_canvas.h.
|
protected |
Definition at line 67 of file kis_shape_layer_canvas.h.
|
protected |
Definition at line 72 of file kis_shape_layer_canvas.h.