|
Krita Source Code Documentation
|
#include <kis_shape_selection_canvas.h>
Inheritance diagram for KisShapeSelectionCanvas:Public Member Functions | |
| void | addCommand (KUndo2Command *command) override |
| const QWidget * | canvasWidget () const override |
| QWidget * | canvasWidget () override |
| void | gridSize (QPointF *offset, QSizeF *spacing) const override |
| KisShapeSelectionCanvas (KoShapeControllerBase *shapeController) | |
| 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 |
| KoShapeManager * | shapeManager () const override |
| bool | snapToGrid () const override |
| KoToolProxy * | toolProxy () const override |
| KoUnit | unit () const override |
| void | updateCanvas (const QRectF &rc) override |
| const KoViewConverter * | viewConverter () const override |
| KoViewConverter * | viewConverter () override |
| ~KisShapeSelectionCanvas () 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 QPointF | viewToDocument (const QPointF &viewPoint) const |
| ~KoCanvasBase () override | |
| ~Private () | |
Private Attributes | |
| QScopedPointer< KoSelectedShapesProxy > | m_selectedShapesProxy |
| QScopedPointer< KoShapeManager > | m_shapeManager |
Additional Inherited Members | |
Public Attributes inherited from KoCanvasBase | |
| KoCanvasController * | controller |
| bool | isResourceManagerShared |
| QPointer< KoCanvasResourceProvider > | resourceManager |
| QPointer< KoShapeController > | shapeController |
| KoSnapGuide * | snapGuide |
Dummy canvas just to have a shapemanager for the shape selection
Definition at line 26 of file kis_shape_selection_canvas.h.
| KisShapeSelectionCanvas::KisShapeSelectionCanvas | ( | KoShapeControllerBase * | shapeController | ) |
Definition at line 18 of file kis_shape_selection_canvas.cpp.
|
override |
Definition at line 25 of file kis_shape_selection_canvas.cpp.
|
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 42 of file kis_shape_selection_canvas.cpp.
|
overridevirtual |
Return the widget that will be added to the scrollArea.
Implements KoCanvasBase.
Definition at line 84 of file kis_shape_selection_canvas.cpp.
|
overridevirtual |
Return the widget that will be added to the scrollArea.
Implements KoCanvasBase.
Definition at line 79 of file kis_shape_selection_canvas.cpp.
|
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 29 of file kis_shape_selection_canvas.cpp.
|
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 52 of file kis_shape_selection_canvas.cpp.
References m_selectedShapesProxy.
|
inlineoverridevirtual |
set the specified cursor on this canvas
| cursor | the new cursor |
Implements KoCanvasBase.
Definition at line 46 of file kis_shape_selection_canvas.h.
|
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 47 of file kis_shape_selection_canvas.cpp.
References m_shapeManager.
|
overridevirtual |
return if snap to grid is enabled.
Implements KoCanvasBase.
Definition at line 36 of file kis_shape_selection_canvas.cpp.
|
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 63 of file kis_shape_selection_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 89 of file kis_shape_selection_canvas.cpp.
References KoUnit::Point.
|
overridevirtual |
Tell the canvas to repaint the specified rectangle. The coordinates are document coordinates, not view coordinates.
Implements KoCanvasBase.
Definition at line 57 of file kis_shape_selection_canvas.cpp.
References m_shapeManager.
|
overridevirtual |
Return the viewConverter for this view.
Implements KoCanvasBase.
Definition at line 69 of file kis_shape_selection_canvas.cpp.
|
overridevirtual |
Implements KoCanvasBase.
Definition at line 74 of file kis_shape_selection_canvas.cpp.
|
private |
Definition at line 49 of file kis_shape_selection_canvas.h.
|
private |
Definition at line 48 of file kis_shape_selection_canvas.h.