LibrePCB Developers Documentation
SymbolEditorState Class Reference

The SymbolEditorState class is the base class of all symbol editor FSM states. More...

#include <symboleditorstate.h>

+ Inheritance diagram for SymbolEditorState:
+ Collaboration diagram for SymbolEditorState:

Public Types

using Context = SymbolEditorFsm::Context
 

Public Member Functions

 SymbolEditorState ()=delete
 
 SymbolEditorState (const SymbolEditorState &other)=delete
 
 SymbolEditorState (const Context &context) noexcept
 
virtual ~SymbolEditorState () noexcept
 
virtual bool entry () noexcept
 
virtual bool exit () noexcept
 
virtual bool processGraphicsSceneMouseMoved (QGraphicsSceneMouseEvent &e) noexcept
 
virtual bool processGraphicsSceneLeftMouseButtonPressed (QGraphicsSceneMouseEvent &e) noexcept
 
virtual bool processGraphicsSceneLeftMouseButtonReleased (QGraphicsSceneMouseEvent &e) noexcept
 
virtual bool processGraphicsSceneLeftMouseButtonDoubleClicked (QGraphicsSceneMouseEvent &e) noexcept
 
virtual bool processGraphicsSceneRightMouseButtonReleased (QGraphicsSceneMouseEvent &e) noexcept
 
virtual bool processSelectAll () 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
 
virtual bool processAbortCommand () noexcept
 
SymbolEditorStateoperator= (const SymbolEditorState &rhs)=delete
 

Protected Member Functions

const PositiveLengthgetGridInterval () const noexcept
 
const LengthUnitgetDefaultLengthUnit () const noexcept
 

Protected Attributes

Context mContext
 

Detailed Description

The SymbolEditorState class is the base class of all symbol editor FSM states.

Member Typedef Documentation

◆ Context

Constructor & Destructor Documentation

◆ SymbolEditorState() [1/3]

SymbolEditorState ( )
delete

◆ SymbolEditorState() [2/3]

SymbolEditorState ( const SymbolEditorState other)
delete

◆ SymbolEditorState() [3/3]

SymbolEditorState ( const Context context)
explicitnoexcept

◆ ~SymbolEditorState()

~SymbolEditorState ( )
virtualnoexcept

Member Function Documentation

◆ entry()

virtual bool entry ( )
inlinevirtualnoexcept

Reimplemented in SymbolEditorState_DrawTextBase, SymbolEditorState_DrawPolygonBase, SymbolEditorState_DrawCircle, and SymbolEditorState_AddPins.

+ Here is the caller graph for this function:

◆ exit()

◆ processGraphicsSceneMouseMoved()

virtual bool processGraphicsSceneMouseMoved ( QGraphicsSceneMouseEvent &  e)
inlinevirtualnoexcept

Reimplemented in SymbolEditorState_DrawTextBase, SymbolEditorState_DrawPolygonBase, SymbolEditorState_DrawCircle, SymbolEditorState_AddPins, and SymbolEditorState_Select.

+ Here is the caller graph for this function:

◆ processGraphicsSceneLeftMouseButtonPressed()

virtual bool processGraphicsSceneLeftMouseButtonPressed ( QGraphicsSceneMouseEvent &  e)
inlinevirtualnoexcept

Reimplemented in SymbolEditorState_DrawTextBase, SymbolEditorState_DrawPolygonBase, SymbolEditorState_DrawCircle, SymbolEditorState_AddPins, and SymbolEditorState_Select.

+ Here is the caller graph for this function:

◆ processGraphicsSceneLeftMouseButtonReleased()

virtual bool processGraphicsSceneLeftMouseButtonReleased ( QGraphicsSceneMouseEvent &  e)
inlinevirtualnoexcept

Reimplemented in SymbolEditorState_Select.

+ Here is the caller graph for this function:

◆ processGraphicsSceneLeftMouseButtonDoubleClicked()

virtual bool processGraphicsSceneLeftMouseButtonDoubleClicked ( QGraphicsSceneMouseEvent &  e)
inlinevirtualnoexcept

Reimplemented in SymbolEditorState_DrawPolygonBase, and SymbolEditorState_Select.

+ Here is the caller graph for this function:

◆ processGraphicsSceneRightMouseButtonReleased()

virtual bool processGraphicsSceneRightMouseButtonReleased ( QGraphicsSceneMouseEvent &  e)
inlinevirtualnoexcept

Reimplemented in SymbolEditorState_DrawTextBase, SymbolEditorState_Select, and SymbolEditorState_AddPins.

+ Here is the caller graph for this function:

◆ processSelectAll()

virtual bool processSelectAll ( )
inlinevirtualnoexcept

Reimplemented in SymbolEditorState_Select.

+ Here is the caller graph for this function:

◆ processCut()

virtual bool processCut ( )
inlinevirtualnoexcept

Reimplemented in SymbolEditorState_Select.

+ Here is the caller graph for this function:

◆ processCopy()

virtual bool processCopy ( )
inlinevirtualnoexcept

Reimplemented in SymbolEditorState_Select.

+ Here is the caller graph for this function:

◆ processPaste()

virtual bool processPaste ( )
inlinevirtualnoexcept

Reimplemented in SymbolEditorState_Select.

+ Here is the caller graph for this function:

◆ processRotateCw()

virtual bool processRotateCw ( )
inlinevirtualnoexcept

Reimplemented in SymbolEditorState_DrawTextBase, SymbolEditorState_Select, and SymbolEditorState_AddPins.

+ Here is the caller graph for this function:

◆ processRotateCcw()

virtual bool processRotateCcw ( )
inlinevirtualnoexcept

Reimplemented in SymbolEditorState_DrawTextBase, SymbolEditorState_Select, and SymbolEditorState_AddPins.

+ Here is the caller graph for this function:

◆ processMirror()

virtual bool processMirror ( )
inlinevirtualnoexcept

Reimplemented in SymbolEditorState_Select.

+ Here is the caller graph for this function:

◆ processRemove()

virtual bool processRemove ( )
inlinevirtualnoexcept

Reimplemented in SymbolEditorState_Select.

+ Here is the caller graph for this function:

◆ processAbortCommand()

virtual bool processAbortCommand ( )
inlinevirtualnoexcept

Reimplemented in SymbolEditorState_Select, SymbolEditorState_DrawPolygonBase, and SymbolEditorState_DrawCircle.

+ Here is the call graph for this function:

◆ operator=()

SymbolEditorState& operator= ( const SymbolEditorState rhs)
delete
+ Here is the caller graph for this function:

◆ getGridInterval()

const PositiveLength & getGridInterval ( ) const
protectednoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDefaultLengthUnit()

const LengthUnit & getDefaultLengthUnit ( ) const
protectednoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ mContext

Context mContext
protected

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