LibrePCB Developers Documentation
PackageEditorState Class Reference

The PackageEditorState class is the base class of all package editor FSM states. More...

#include <packageeditorstate.h>

+ Inheritance diagram for PackageEditorState:
+ Collaboration diagram for PackageEditorState:

Public Types

using Context = PackageEditorFsm::Context
 

Public Member Functions

 PackageEditorState ()=delete
 
 PackageEditorState (const PackageEditorState &other)=delete
 
 PackageEditorState (Context &context) noexcept
 
virtual ~PackageEditorState () 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 processFlip () noexcept
 
virtual bool processRemove () noexcept
 
virtual bool processAbortCommand () noexcept
 
PackageEditorStateoperator= (const PackageEditorState &rhs)=delete
 

Protected Member Functions

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

Protected Attributes

ContextmContext
 

Detailed Description

The PackageEditorState class is the base class of all package editor FSM states.

Member Typedef Documentation

◆ Context

Constructor & Destructor Documentation

◆ PackageEditorState() [1/3]

PackageEditorState ( )
delete

◆ PackageEditorState() [2/3]

PackageEditorState ( const PackageEditorState other)
delete

◆ PackageEditorState() [3/3]

PackageEditorState ( Context context)
explicitnoexcept

◆ ~PackageEditorState()

~PackageEditorState ( )
virtualnoexcept

Member Function Documentation

◆ entry()

virtual bool entry ( )
inlinevirtualnoexcept

Reimplemented in PackageEditorState_DrawTextBase, PackageEditorState_DrawPolygonBase, PackageEditorState_AddPads, PackageEditorState_DrawCircle, and PackageEditorState_AddHoles.

+ Here is the caller graph for this function:

◆ exit()

◆ processGraphicsSceneMouseMoved()

virtual bool processGraphicsSceneMouseMoved ( QGraphicsSceneMouseEvent &  e)
inlinevirtualnoexcept

Reimplemented in PackageEditorState_DrawTextBase, PackageEditorState_DrawPolygonBase, PackageEditorState_AddPads, PackageEditorState_DrawCircle, PackageEditorState_AddHoles, and PackageEditorState_Select.

+ Here is the caller graph for this function:

◆ processGraphicsSceneLeftMouseButtonPressed()

virtual bool processGraphicsSceneLeftMouseButtonPressed ( QGraphicsSceneMouseEvent &  e)
inlinevirtualnoexcept

Reimplemented in PackageEditorState_DrawTextBase, PackageEditorState_DrawPolygonBase, PackageEditorState_AddPads, PackageEditorState_DrawCircle, PackageEditorState_AddHoles, and PackageEditorState_Select.

+ Here is the caller graph for this function:

◆ processGraphicsSceneLeftMouseButtonReleased()

virtual bool processGraphicsSceneLeftMouseButtonReleased ( QGraphicsSceneMouseEvent &  e)
inlinevirtualnoexcept

Reimplemented in PackageEditorState_Select.

+ Here is the caller graph for this function:

◆ processGraphicsSceneLeftMouseButtonDoubleClicked()

virtual bool processGraphicsSceneLeftMouseButtonDoubleClicked ( QGraphicsSceneMouseEvent &  e)
inlinevirtualnoexcept

Reimplemented in PackageEditorState_DrawPolygonBase, and PackageEditorState_Select.

+ Here is the caller graph for this function:

◆ processGraphicsSceneRightMouseButtonReleased()

virtual bool processGraphicsSceneRightMouseButtonReleased ( QGraphicsSceneMouseEvent &  e)
inlinevirtualnoexcept

Reimplemented in PackageEditorState_DrawTextBase, PackageEditorState_AddPads, and PackageEditorState_Select.

+ Here is the caller graph for this function:

◆ processSelectAll()

virtual bool processSelectAll ( )
inlinevirtualnoexcept

Reimplemented in PackageEditorState_Select.

+ Here is the caller graph for this function:

◆ processCut()

virtual bool processCut ( )
inlinevirtualnoexcept

Reimplemented in PackageEditorState_Select.

+ Here is the caller graph for this function:

◆ processCopy()

virtual bool processCopy ( )
inlinevirtualnoexcept

Reimplemented in PackageEditorState_Select.

+ Here is the caller graph for this function:

◆ processPaste()

virtual bool processPaste ( )
inlinevirtualnoexcept

Reimplemented in PackageEditorState_Select.

+ Here is the caller graph for this function:

◆ processRotateCw()

virtual bool processRotateCw ( )
inlinevirtualnoexcept

Reimplemented in PackageEditorState_DrawTextBase, PackageEditorState_Select, and PackageEditorState_AddPads.

+ Here is the caller graph for this function:

◆ processRotateCcw()

virtual bool processRotateCcw ( )
inlinevirtualnoexcept

Reimplemented in PackageEditorState_DrawTextBase, PackageEditorState_Select, and PackageEditorState_AddPads.

+ Here is the caller graph for this function:

◆ processMirror()

virtual bool processMirror ( )
inlinevirtualnoexcept

Reimplemented in PackageEditorState_Select.

+ Here is the caller graph for this function:

◆ processFlip()

virtual bool processFlip ( )
inlinevirtualnoexcept

Reimplemented in PackageEditorState_Select.

+ Here is the caller graph for this function:

◆ processRemove()

virtual bool processRemove ( )
inlinevirtualnoexcept

Reimplemented in PackageEditorState_Select.

+ Here is the caller graph for this function:

◆ processAbortCommand()

virtual bool processAbortCommand ( )
inlinevirtualnoexcept

Reimplemented in PackageEditorState_Select, PackageEditorState_DrawPolygonBase, and PackageEditorState_DrawCircle.

+ Here is the call graph for this function:

◆ operator=()

PackageEditorState& operator= ( const PackageEditorState 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: