LibrePCB Developers Documentation
Loading...
Searching...
No Matches
SymbolEditorState_DrawCircle Class Referencefinal

The SymbolEditorState_DrawCircle class. More...

#include <symboleditorstate_drawcircle.h>

+ Inheritance diagram for SymbolEditorState_DrawCircle:
+ Collaboration diagram for SymbolEditorState_DrawCircle:

Signals

void layerChanged (const Layer &layer)
 
void lineWidthChanged (const UnsignedLength &width)
 
void filledChanged (bool filled)
 
void grabAreaChanged (bool grabArea)
 
- Signals inherited from SymbolEditorState
void pasteRequested ()
 

Public Member Functions

 SymbolEditorState_DrawCircle ()=delete
 
 SymbolEditorState_DrawCircle (const SymbolEditorState_DrawCircle &other)=delete
 
 SymbolEditorState_DrawCircle (const Context &context) noexcept
 
 ~SymbolEditorState_DrawCircle () noexcept
 
bool entry () noexcept override
 
bool exit () noexcept override
 
bool processGraphicsSceneMouseMoved (const GraphicsSceneMouseEvent &e) noexcept override
 
bool processGraphicsSceneLeftMouseButtonPressed (const GraphicsSceneMouseEvent &e) noexcept override
 
bool processAbortCommand () noexcept override
 
QSet< const Layer * > getAvailableLayers () const noexcept
 
const LayergetLayer () const noexcept
 
void setLayer (const Layer &layer) noexcept
 
const UnsignedLengthgetLineWidth () const noexcept
 
void setLineWidth (const UnsignedLength &width) noexcept
 
bool getFilled () const noexcept
 
void setFilled (bool filled) noexcept
 
bool getGrabArea () const noexcept
 
void setGrabArea (bool grabArea) noexcept
 
SymbolEditorState_DrawCircleoperator= (const SymbolEditorState_DrawCircle &rhs)=delete
 
- Public Member Functions inherited from SymbolEditorState
 SymbolEditorState ()=delete
 
 SymbolEditorState (const SymbolEditorState &other)=delete
 
 SymbolEditorState (const Context &context) noexcept
 
virtual ~SymbolEditorState () noexcept
 
std::unique_ptr< SymbolClipboardDatatakeDataToPaste () noexcept
 
virtual bool processKeyPressed (const GraphicsSceneKeyEvent &e) noexcept
 
virtual bool processKeyReleased (const GraphicsSceneKeyEvent &e) noexcept
 
virtual bool processGraphicsSceneLeftMouseButtonReleased (const GraphicsSceneMouseEvent &e) noexcept
 
virtual bool processGraphicsSceneLeftMouseButtonDoubleClicked (const GraphicsSceneMouseEvent &e) noexcept
 
virtual bool processGraphicsSceneRightMouseButtonReleased (const GraphicsSceneMouseEvent &e) noexcept
 
virtual bool processSelectAll () noexcept
 
virtual bool processCut () noexcept
 
virtual bool processCopy () noexcept
 
virtual bool processPaste (std::unique_ptr< SymbolClipboardData > data=nullptr) noexcept
 
virtual bool processMove (const Point &delta)
 
virtual bool processRotate (const Angle &rotation) noexcept
 
virtual bool processMirror (Qt::Orientation orientation) noexcept
 
virtual bool processSnapToGrid () noexcept
 
virtual bool processRemove () noexcept
 
virtual bool processEditProperties () noexcept
 
virtual bool processImportPins () noexcept
 
virtual bool processImportDxf () noexcept
 
virtual bool processGridIntervalChanged (const PositiveLength &inverval) noexcept
 
SymbolEditorStateoperator= (const SymbolEditorState &rhs)=delete
 

Private Member Functions

bool startAddCircle (const Point &pos) noexcept
 
bool updateCircleDiameter (const Point &pos) noexcept
 
bool finishAddCircle (const Point &pos) noexcept
 
bool abortAddCircle () noexcept
 

Private Attributes

Circle mCurrentProperties
 
std::unique_ptr< CmdCircleEditmCurrentEditCmd
 
std::shared_ptr< CirclemCurrentCircle
 
std::shared_ptr< CircleGraphicsItemmCurrentGraphicsItem
 

Additional Inherited Members

- Public Types inherited from SymbolEditorState
using Context = SymbolEditorFsm::Context
 
- Protected Member Functions inherited from SymbolEditorState
void requestPaste (std::unique_ptr< SymbolClipboardData > data) noexcept
 
GraphicsScenegetGraphicsScene () noexcept
 
SymbolGraphicsItemgetGraphicsItem () noexcept
 
PositiveLength getGridInterval () const noexcept
 
const LengthUnitgetLengthUnit () const noexcept
 
QWidget * parentWidget () noexcept
 
- Static Protected Member Functions inherited from SymbolEditorState
static const QSet< const Layer * > & getAllowedTextLayers () noexcept
 
static const QSet< const Layer * > & getAllowedCircleAndPolygonLayers () noexcept
 
- Protected Attributes inherited from SymbolEditorState
Context mContext
 
SymbolEditorFsmAdaptermAdapter
 

Detailed Description

Constructor & Destructor Documentation

◆ SymbolEditorState_DrawCircle() [1/3]

◆ SymbolEditorState_DrawCircle() [2/3]

◆ SymbolEditorState_DrawCircle() [3/3]

SymbolEditorState_DrawCircle ( const Context context)
explicitnoexcept

◆ ~SymbolEditorState_DrawCircle()

Member Function Documentation

◆ entry()

bool entry ( )
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

◆ exit()

bool exit ( )
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

◆ processGraphicsSceneMouseMoved()

bool processGraphicsSceneMouseMoved ( const GraphicsSceneMouseEvent e)
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

◆ processGraphicsSceneLeftMouseButtonPressed()

bool processGraphicsSceneLeftMouseButtonPressed ( const GraphicsSceneMouseEvent e)
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

◆ processAbortCommand()

bool processAbortCommand ( )
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

◆ getAvailableLayers()

QSet< const Layer * > getAvailableLayers ( ) const
noexcept
+ Here is the call graph for this function:

◆ getLayer()

const Layer & getLayer ( ) const
inlinenoexcept
+ Here is the call graph for this function:

◆ setLayer()

void setLayer ( const Layer layer)
noexcept
+ Here is the caller graph for this function:

◆ getLineWidth()

const UnsignedLength & getLineWidth ( ) const
inlinenoexcept
+ Here is the call graph for this function:

◆ setLineWidth()

void setLineWidth ( const UnsignedLength width)
noexcept
+ Here is the caller graph for this function:

◆ getFilled()

bool getFilled ( ) const
inlinenoexcept
+ Here is the call graph for this function:

◆ setFilled()

void setFilled ( bool  filled)
noexcept
+ Here is the caller graph for this function:

◆ getGrabArea()

bool getGrabArea ( ) const
inlinenoexcept
+ Here is the call graph for this function:

◆ setGrabArea()

void setGrabArea ( bool  grabArea)
noexcept
+ Here is the caller graph for this function:

◆ operator=()

SymbolEditorState_DrawCircle & operator= ( const SymbolEditorState_DrawCircle rhs)
delete

◆ layerChanged

void layerChanged ( const Layer layer)
signal
+ Here is the caller graph for this function:

◆ lineWidthChanged

void lineWidthChanged ( const UnsignedLength width)
signal
+ Here is the caller graph for this function:

◆ filledChanged

void filledChanged ( bool  filled)
signal
+ Here is the caller graph for this function:

◆ grabAreaChanged

void grabAreaChanged ( bool  grabArea)
signal
+ Here is the caller graph for this function:

◆ startAddCircle()

bool startAddCircle ( const Point pos)
privatenoexcept
+ Here is the call graph for this function:

◆ updateCircleDiameter()

bool updateCircleDiameter ( const Point pos)
privatenoexcept
+ Here is the call graph for this function:

◆ finishAddCircle()

bool finishAddCircle ( const Point pos)
privatenoexcept
+ Here is the call graph for this function:

◆ abortAddCircle()

bool abortAddCircle ( )
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ mCurrentProperties

Circle mCurrentProperties
private

◆ mCurrentEditCmd

std::unique_ptr<CmdCircleEdit> mCurrentEditCmd
private

◆ mCurrentCircle

std::shared_ptr<Circle> mCurrentCircle
private

◆ mCurrentGraphicsItem

std::shared_ptr<CircleGraphicsItem> mCurrentGraphicsItem
private

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