Krita Source Code Documentation
Loading...
Searching...
No Matches
KoSelectedShapesProxySimple Class Reference

#include <KoSelectedShapesProxySimple.h>

+ Inheritance diagram for KoSelectedShapesProxySimple:

Public Member Functions

 KoSelectedShapesProxySimple (KoShapeManager *shapeManager)
 
KoSelectionselection () override
 
- Public Member Functions inherited from KoSelectedShapesProxy
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)
 
void setRequestingToBeEdited (bool value)
 

Private Attributes

QPointer< KoShapeManagerm_shapeManager
 

Additional Inherited Members

- Signals inherited from KoSelectedShapesProxy
void currentLayerChanged (const KoShapeLayer *layer)
 
void selectionChanged ()
 
void selectionContentChanged ()
 

Detailed Description

Definition at line 16 of file KoSelectedShapesProxySimple.h.

Constructor & Destructor Documentation

◆ KoSelectedShapesProxySimple()

KoSelectedShapesProxySimple::KoSelectedShapesProxySimple ( KoShapeManager * shapeManager)

Definition at line 13 of file KoSelectedShapesProxySimple.cpp.

14 : m_shapeManager(shapeManager)
15{
17
18 connect(m_shapeManager.data(), SIGNAL(selectionChanged()), SIGNAL(selectionChanged()));
20 connect(m_shapeManager->selection(), SIGNAL(currentLayerChanged(const KoShapeLayer*)), SIGNAL(currentLayerChanged(const KoShapeLayer*)));
21}
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
QPointer< KoShapeManager > m_shapeManager
void currentLayerChanged(const KoShapeLayer *layer)
#define KIS_ASSERT_RECOVER_RETURN(cond)
Definition kis_assert.h:75

References connect(), KoSelectedShapesProxy::currentLayerChanged(), KIS_ASSERT_RECOVER_RETURN, m_shapeManager, KoSelectedShapesProxy::selectionChanged(), and KoSelectedShapesProxy::selectionContentChanged().

Member Function Documentation

◆ selection()

KoSelection * KoSelectedShapesProxySimple::selection ( )
overridevirtual

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.

Implements KoSelectedShapesProxy.

Definition at line 23 of file KoSelectedShapesProxySimple.cpp.

24{
26 return m_shapeManager->selection();
27}
#define KIS_ASSERT_RECOVER_RETURN_VALUE(cond, val)
Definition kis_assert.h:85

References KIS_ASSERT_RECOVER_RETURN_VALUE, and m_shapeManager.

Member Data Documentation

◆ m_shapeManager

QPointer<KoShapeManager> KoSelectedShapesProxySimple::m_shapeManager
private

Definition at line 24 of file KoSelectedShapesProxySimple.h.


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