LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 processRotateCw () noexcept
 
virtual bool processRotateCcw () noexcept
 
virtual bool processRemove () noexcept
 
virtual bool processAbortCommand () noexcept
 
SymbolEditorStateoperator= (const SymbolEditorState &rhs)=delete
 

Protected Member Functions

const PositiveLengthgetGridInterval () const noexcept
 

Protected Attributes

Context mContext
 

Detailed Description

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

Author
ubruhin
Date
2016-11-01

Member Typedef Documentation

Constructor & Destructor Documentation

SymbolEditorState ( )
delete
SymbolEditorState ( const SymbolEditorState other)
delete
SymbolEditorState ( const Context context)
explicitnoexcept
~SymbolEditorState ( )
virtualnoexcept

Member Function Documentation

virtual bool entry ( )
inlinevirtualnoexcept

Reimplemented in SymbolEditorState_DrawTextBase, SymbolEditorState_DrawPolygonBase, SymbolEditorState_DrawCircle, and SymbolEditorState_AddPins.

+ Here is the caller graph for this function:

virtual bool processGraphicsSceneMouseMoved ( QGraphicsSceneMouseEvent &  e)
inlinevirtualnoexcept
virtual bool processGraphicsSceneLeftMouseButtonPressed ( QGraphicsSceneMouseEvent &  e)
inlinevirtualnoexcept
virtual bool processGraphicsSceneLeftMouseButtonReleased ( QGraphicsSceneMouseEvent &  e)
inlinevirtualnoexcept

Reimplemented in SymbolEditorState_Select.

virtual bool processGraphicsSceneLeftMouseButtonDoubleClicked ( QGraphicsSceneMouseEvent &  e)
inlinevirtualnoexcept
virtual bool processGraphicsSceneRightMouseButtonReleased ( QGraphicsSceneMouseEvent &  e)
inlinevirtualnoexcept
virtual bool processRotateCw ( )
inlinevirtualnoexcept

Reimplemented in SymbolEditorState_DrawTextBase, SymbolEditorState_AddPins, and SymbolEditorState_Select.

+ Here is the caller graph for this function:

virtual bool processRotateCcw ( )
inlinevirtualnoexcept

Reimplemented in SymbolEditorState_DrawTextBase, SymbolEditorState_AddPins, and SymbolEditorState_Select.

+ Here is the caller graph for this function:

virtual bool processRemove ( )
inlinevirtualnoexcept

Reimplemented in SymbolEditorState_Select.

+ Here is the caller graph for this function:

virtual bool processAbortCommand ( )
inlinevirtualnoexcept
SymbolEditorState& operator= ( const SymbolEditorState rhs)
delete
const PositiveLength & getGridInterval ( ) const
protectednoexcept

+ Here is the call graph for this function:

Member Data Documentation

Context mContext
protected

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