LibrePCB Developers Documentation
Loading...
Searching...
No Matches
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
 

Signals

void abortRequested ()
 

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 processKeyPressed (const GraphicsSceneKeyEvent &e) noexcept
 
virtual bool processKeyReleased (const GraphicsSceneKeyEvent &e) noexcept
 
virtual bool processGraphicsSceneMouseMoved (const GraphicsSceneMouseEvent &e) noexcept
 
virtual bool processGraphicsSceneLeftMouseButtonPressed (const GraphicsSceneMouseEvent &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 () noexcept
 
virtual bool processMove (const Point &delta)
 
virtual bool processRotate (const Angle &rotation) noexcept
 
virtual bool processMirror (Qt::Orientation orientation) noexcept
 
virtual bool processMoveAlign () noexcept
 
virtual bool processSnapToGrid () noexcept
 
virtual bool processFlip (Qt::Orientation orientation) noexcept
 
virtual bool processRemove () noexcept
 
virtual bool processEditProperties () noexcept
 
virtual bool processGenerateOutline () noexcept
 
virtual bool processGenerateCourtyard () noexcept
 
virtual bool processImportDxf () noexcept
 
virtual bool processAcceptCommand () noexcept
 
virtual bool processAbortCommand () noexcept
 
virtual bool processGridIntervalChanged (const PositiveLength &interval) noexcept
 
PackageEditorStateoperator= (const PackageEditorState &rhs)=delete
 

Protected Member Functions

GraphicsScenegetGraphicsScene () noexcept
 
PositiveLength getGridInterval () const noexcept
 
const LengthUnitgetLengthUnit () const noexcept
 
QWidget * parentWidget () noexcept
 

Static Protected Member Functions

static const QSet< const Layer * > & getAllowedTextLayers () noexcept
 
static const QSet< const Layer * > & getAllowedCircleAndPolygonLayers () noexcept
 

Protected Attributes

ContextmContext
 
PackageEditorFsmAdaptermAdapter
 

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()

◆ exit()

◆ processKeyPressed()

virtual bool processKeyPressed ( const GraphicsSceneKeyEvent e)
inlinevirtualnoexcept

◆ processKeyReleased()

virtual bool processKeyReleased ( const GraphicsSceneKeyEvent e)
inlinevirtualnoexcept

◆ processGraphicsSceneMouseMoved()

◆ processGraphicsSceneLeftMouseButtonPressed()

◆ processGraphicsSceneLeftMouseButtonReleased()

virtual bool processGraphicsSceneLeftMouseButtonReleased ( const GraphicsSceneMouseEvent e)
inlinevirtualnoexcept

Reimplemented in PackageEditorState_Select.

◆ processGraphicsSceneLeftMouseButtonDoubleClicked()

virtual bool processGraphicsSceneLeftMouseButtonDoubleClicked ( const GraphicsSceneMouseEvent e)
inlinevirtualnoexcept

◆ processGraphicsSceneRightMouseButtonReleased()

virtual bool processGraphicsSceneRightMouseButtonReleased ( const GraphicsSceneMouseEvent e)
inlinevirtualnoexcept

Reimplemented in PackageEditorState_AddPads, PackageEditorState_DrawTextBase, 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_Measure, and 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:

◆ processMove()

virtual bool processMove ( const Point delta)
inlinevirtual

Reimplemented in PackageEditorState_Select.

◆ processRotate()

virtual bool processRotate ( const Angle rotation)
inlinevirtualnoexcept

◆ processMirror()

virtual bool processMirror ( Qt::Orientation  orientation)
inlinevirtualnoexcept

◆ processMoveAlign()

virtual bool processMoveAlign ( )
inlinevirtualnoexcept

Reimplemented in PackageEditorState_Select.

+ Here is the caller graph for this function:

◆ processSnapToGrid()

virtual bool processSnapToGrid ( )
inlinevirtualnoexcept

Reimplemented in PackageEditorState_Select.

+ Here is the caller graph for this function:

◆ processFlip()

virtual bool processFlip ( Qt::Orientation  orientation)
inlinevirtualnoexcept

◆ processRemove()

virtual bool processRemove ( )
inlinevirtualnoexcept

Reimplemented in PackageEditorState_Measure, and PackageEditorState_Select.

+ Here is the caller graph for this function:

◆ processEditProperties()

virtual bool processEditProperties ( )
inlinevirtualnoexcept

Reimplemented in PackageEditorState_Select.

+ Here is the caller graph for this function:

◆ processGenerateOutline()

virtual bool processGenerateOutline ( )
inlinevirtualnoexcept

Reimplemented in PackageEditorState_Select.

+ Here is the caller graph for this function:

◆ processGenerateCourtyard()

virtual bool processGenerateCourtyard ( )
inlinevirtualnoexcept

Reimplemented in PackageEditorState_Select.

+ Here is the caller graph for this function:

◆ processImportDxf()

virtual bool processImportDxf ( )
inlinevirtualnoexcept

Reimplemented in PackageEditorState_Select.

◆ processAcceptCommand()

virtual bool processAcceptCommand ( )
inlinevirtualnoexcept

Reimplemented in PackageEditorState_ReNumberPads.

+ Here is the caller graph for this function:

◆ processAbortCommand()

◆ processGridIntervalChanged()

virtual bool processGridIntervalChanged ( const PositiveLength interval)
inlinevirtualnoexcept

Reimplemented in PackageEditorState_Select.

◆ operator=()

PackageEditorState & operator= ( const PackageEditorState rhs)
delete

◆ abortRequested

void abortRequested ( )
signal
+ Here is the caller graph for this function:

◆ getGraphicsScene()

GraphicsScene * getGraphicsScene ( )
protectednoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getGridInterval()

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

◆ getLengthUnit()

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

◆ parentWidget()

QWidget * parentWidget ( )
protectednoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getAllowedTextLayers()

const QSet< const Layer * > & getAllowedTextLayers ( )
staticprotectednoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getAllowedCircleAndPolygonLayers()

const QSet< const Layer * > & getAllowedCircleAndPolygonLayers ( )
staticprotectednoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ mContext

Context& mContext
protected

◆ mAdapter

PackageEditorFsmAdapter& mAdapter
protected

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