LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SymbolEditorState_DrawCircle Class Referencefinal

The SymbolEditorState_DrawCircle class. More...

#include <symboleditorstate_drawcircle.h>

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

Public Member Functions

 SymbolEditorState_DrawCircle ()=delete
 
 SymbolEditorState_DrawCircle (const SymbolEditorState_DrawCircle &other)=delete
 
 SymbolEditorState_DrawCircle (const Context &context) noexcept
 
 ~SymbolEditorState_DrawCircle () noexcept
 
bool entry () noexceptoverride
 
bool exit () noexceptoverride
 
bool processGraphicsSceneMouseMoved (QGraphicsSceneMouseEvent &e) noexceptoverride
 
bool processGraphicsSceneLeftMouseButtonPressed (QGraphicsSceneMouseEvent &e) noexceptoverride
 
bool processAbortCommand () noexceptoverride
 
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
 
virtual bool processGraphicsSceneLeftMouseButtonReleased (QGraphicsSceneMouseEvent &e) noexcept
 
virtual bool processGraphicsSceneLeftMouseButtonDoubleClicked (QGraphicsSceneMouseEvent &e) noexcept
 
virtual bool processGraphicsSceneRightMouseButtonReleased (QGraphicsSceneMouseEvent &e) noexcept
 
virtual bool processCut () noexcept
 
virtual bool processCopy () noexcept
 
virtual bool processPaste () noexcept
 
virtual bool processRotateCw () noexcept
 
virtual bool processRotateCcw () noexcept
 
virtual bool processMirror () noexcept
 
virtual bool processRemove () 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
 
void layerComboBoxValueChanged (const GraphicsLayerName &layerName) noexcept
 
void lineWidthEditValueChanged (const UnsignedLength &value) noexcept
 
void fillCheckBoxCheckedChanged (bool checked) noexcept
 
void grabAreaCheckBoxCheckedChanged (bool checked) noexcept
 

Private Attributes

QScopedPointer< CmdCircleEditmEditCmd
 
CirclemCurrentCircle
 
CircleGraphicsItemmCurrentGraphicsItem
 
GraphicsLayerName mLastLayerName
 
UnsignedLength mLastLineWidth
 
bool mLastFill
 
bool mLastGrabArea
 

Additional Inherited Members

- Public Types inherited from SymbolEditorState
using Context = SymbolEditorFsm::Context
 
- Protected Member Functions inherited from SymbolEditorState
const PositiveLengthgetGridInterval () const noexcept
 
- Protected Attributes inherited from SymbolEditorState
Context mContext
 

Detailed Description

Constructor & Destructor Documentation

SymbolEditorState_DrawCircle ( const Context context)
explicitnoexcept

Member Function Documentation

bool entry ( )
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

bool exit ( )
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

bool processGraphicsSceneMouseMoved ( QGraphicsSceneMouseEvent &  e)
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

bool processGraphicsSceneLeftMouseButtonPressed ( QGraphicsSceneMouseEvent &  e)
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

bool processAbortCommand ( )
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

SymbolEditorState_DrawCircle& operator= ( const SymbolEditorState_DrawCircle rhs)
delete
bool startAddCircle ( const Point pos)
privatenoexcept

+ Here is the call graph for this function:

bool updateCircleDiameter ( const Point pos)
privatenoexcept

+ Here is the call graph for this function:

bool finishAddCircle ( const Point pos)
privatenoexcept

+ Here is the call graph for this function:

bool abortAddCircle ( )
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void layerComboBoxValueChanged ( const GraphicsLayerName layerName)
privatenoexcept

+ Here is the caller graph for this function:

void lineWidthEditValueChanged ( const UnsignedLength value)
privatenoexcept

+ Here is the caller graph for this function:

void fillCheckBoxCheckedChanged ( bool  checked)
privatenoexcept

+ Here is the caller graph for this function:

void grabAreaCheckBoxCheckedChanged ( bool  checked)
privatenoexcept

+ Here is the caller graph for this function:

Member Data Documentation

QScopedPointer<CmdCircleEdit> mEditCmd
private
Circle* mCurrentCircle
private
CircleGraphicsItem* mCurrentGraphicsItem
private
GraphicsLayerName mLastLayerName
private
UnsignedLength mLastLineWidth
private
bool mLastFill
private
bool mLastGrabArea
private

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