Krita Source Code Documentation
Loading...
Searching...
No Matches
KoSelectedShapesProxy Class Referenceabstract

The KoSelectedShapesProxy class is a special interface of KoCanvasBase to have a stable connection to shape selection signals in an environment when the active shape manager can switch (e.g. when shape layers are switched in Krita) More...

#include <KoSelectedShapesProxy.h>

+ Inheritance diagram for KoSelectedShapesProxy:

Signals

void currentLayerChanged (const KoShapeLayer *layer)
 
void selectionChanged ()
 
void selectionContentChanged ()
 

Public Member Functions

bool isRequestingToBeEdited ()
 The shape wants to edited. This is used when a shape is passed between two different tools. This notifies the new tool that it needs to enter some extra edit mode.
 
 KoSelectedShapesProxy (QObject *parent=0)
 
virtual KoSelectionselection ()=0
 
void setRequestingToBeEdited (bool value)
 

Private Attributes

bool m_isRequestingEditing = false
 

Detailed Description

The KoSelectedShapesProxy class is a special interface of KoCanvasBase to have a stable connection to shape selection signals in an environment when the active shape manager can switch (e.g. when shape layers are switched in Krita)

Definition at line 22 of file KoSelectedShapesProxy.h.

Constructor & Destructor Documentation

◆ KoSelectedShapesProxy()

KoSelectedShapesProxy::KoSelectedShapesProxy ( QObject * parent = 0)
explicit

Definition at line 9 of file KoSelectedShapesProxy.cpp.

10 : QObject(parent)
11{
12}

Member Function Documentation

◆ currentLayerChanged

void KoSelectedShapesProxy::currentLayerChanged ( const KoShapeLayer * layer)
signal

◆ isRequestingToBeEdited()

bool KoSelectedShapesProxy::isRequestingToBeEdited ( )

The shape wants to edited. This is used when a shape is passed between two different tools. This notifies the new tool that it needs to enter some extra edit mode.

Definition at line 14 of file KoSelectedShapesProxy.cpp.

References m_isRequestingEditing.

◆ selection()

virtual KoSelection * KoSelectedShapesProxy::selection ( )
pure virtual

Returns a pointer to a currently active shape selection. Don't connect to the selection, unless you really know what you are doing. Use the signals provided by KoSelectedShapesProxy itself. They are guaranteed to be valid all the time.

Implemented in KoSelectedShapesProxySimple, and KisSelectedShapesProxy.

◆ selectionChanged

void KoSelectedShapesProxy::selectionChanged ( )
signal

◆ selectionContentChanged

void KoSelectedShapesProxy::selectionContentChanged ( )
signal

◆ setRequestingToBeEdited()

void KoSelectedShapesProxy::setRequestingToBeEdited ( bool value)

Definition at line 19 of file KoSelectedShapesProxy.cpp.

20{
22}
float value(const T *src, size_t ch)

References m_isRequestingEditing, and value().

Member Data Documentation

◆ m_isRequestingEditing

bool KoSelectedShapesProxy::m_isRequestingEditing = false
private

Definition at line 57 of file KoSelectedShapesProxy.h.


The documentation for this class was generated from the following files: