|
Krita Source Code Documentation
|
Inheritance diagram for SimpleCanvas:Public Member Functions | |
| void | addCommand (KUndo2Command *) override |
| const QWidget * | canvasWidget () const override |
| QWidget * | canvasWidget () override |
| void | gridSize (QPointF *offset, QSizeF *spacing) const override |
| 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 |
| void | setUpdateFunction (std::function< void(const QRectF &)> function) |
| KoShapeManager * | shapeManager () const override |
| SimpleCanvas () | |
| bool | snapToGrid () const override |
| KoToolProxy * | toolProxy () const override |
| KoUnit | unit () const override |
| void | updateCanvas (const QRectF &rect) override |
| const KoViewConverter * | viewConverter () const override |
| KoViewConverter * | viewConverter () override |
| ~SimpleCanvas () override | |
Public Member Functions inherited from KoCanvasBase | |
| KoCanvasController * | canvasController () const |
| virtual bool | canvasIsOpenGL () const |
| virtual void | clipToDocument (const KoShape *shape, QPointF &move) const |
| virtual KoShape * | currentShapeManagerOwnerShape () const |
| the shape that owns the currently active shape manager | |
| 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. | |
| virtual void | setCurrentShapeManagerOwnerShape (KoShape *source) |
| sets the group shape that is supposed to be "entered" | |
| KoShapeController * | shapeController () const |
| KoSnapGuide * | snapGuide () const |
| virtual QPointF | viewToDocument (const QPointF &viewPoint) const |
| ~KoCanvasBase () override | |
| ~Private () | |
Private Attributes | |
| QScopedPointer< KoSelectedShapesProxySimple > | m_selectedShapesProxy |
| QScopedPointer< KoShapeManager > | m_shapeManager |
| std::function< void(const QRectF &) | m_updateFunc ) |
Additional Inherited Members | |
Public Attributes inherited from KoCanvasBase | |
| KoCanvasController * | controller |
| bool | isResourceManagerShared |
| QPointer< KoCanvasResourceProvider > | resourceManager |
| QPointer< KoShapeController > | shapeController |
| KoSnapGuide * | snapGuide |
Definition at line 24 of file KoShapePainter.cpp.
|
inline |
Definition at line 27 of file KoShapePainter.cpp.
|
inlineoverride |
Definition at line 34 of file KoShapePainter.cpp.
|
inlineoverridevirtual |
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 49 of file KoShapePainter.cpp.
|
inlineoverridevirtual |
Return the widget that will be added to the scrollArea.
Implements KoCanvasBase.
Definition at line 88 of file KoShapePainter.cpp.
|
inlineoverridevirtual |
Return the widget that will be added to the scrollArea.
Implements KoCanvasBase.
Definition at line 83 of file KoShapePainter.cpp.
|
inlineoverridevirtual |
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 38 of file KoShapePainter.cpp.
|
inlineoverridevirtual |
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 58 of file KoShapePainter.cpp.
References m_selectedShapesProxy.
|
inlineoverridevirtual |
set the specified cursor on this canvas
| cursor | the new cursor |
Implements KoCanvasBase.
Definition at line 98 of file KoShapePainter.cpp.
Definition at line 100 of file KoShapePainter.cpp.
References m_updateFunc.
|
inlineoverridevirtual |
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 53 of file KoShapePainter.cpp.
References m_shapeManager.
|
inlineoverridevirtual |
return if snap to grid is enabled.
Implements KoCanvasBase.
Definition at line 44 of file KoShapePainter.cpp.
|
inlineoverridevirtual |
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 68 of file KoShapePainter.cpp.
|
inlineoverridevirtual |
Return the unit of the current document for initialization of the widgets created by the flake framework.
Implements KoCanvasBase.
Definition at line 93 of file KoShapePainter.cpp.
References KoUnit::Point.
|
inlineoverridevirtual |
Tell the canvas to repaint the specified rectangle. The coordinates are document coordinates, not view coordinates.
Implements KoCanvasBase.
Definition at line 63 of file KoShapePainter.cpp.
References m_updateFunc.
|
inlineoverridevirtual |
Return the viewConverter for this view.
Implements KoCanvasBase.
Definition at line 73 of file KoShapePainter.cpp.
|
inlineoverridevirtual |
|
private |
Definition at line 106 of file KoShapePainter.cpp.
|
private |
Definition at line 105 of file KoShapePainter.cpp.
|
private |
Definition at line 107 of file KoShapePainter.cpp.