LibrePCB Developers Documentation
Loading...
Searching...
No Matches
PackageEditorState_AddHoles Class Referencefinal

The PackageEditorState_AddHoles class. More...

#include <packageeditorstate_addholes.h>

+ Inheritance diagram for PackageEditorState_AddHoles:
+ Collaboration diagram for PackageEditorState_AddHoles:

Signals

void diameterChanged (const PositiveLength &diameter)
 
- Signals inherited from PackageEditorState
void abortRequested ()
 

Public Member Functions

 PackageEditorState_AddHoles ()=delete
 
 PackageEditorState_AddHoles (const PackageEditorState_AddHoles &other)=delete
 
 PackageEditorState_AddHoles (Context &context) noexcept
 
 ~PackageEditorState_AddHoles () noexcept
 
bool entry () noexcept override
 
bool exit () noexcept override
 
bool processGraphicsSceneMouseMoved (const GraphicsSceneMouseEvent &e) noexcept override
 
bool processGraphicsSceneLeftMouseButtonPressed (const GraphicsSceneMouseEvent &e) noexcept override
 
const PositiveLengthgetDiameter () const noexcept
 
void setDiameter (const PositiveLength &diameter) noexcept
 
PackageEditorState_AddHolesoperator= (const PackageEditorState_AddHoles &rhs)=delete
 
- Public Member Functions inherited from PackageEditorState
 PackageEditorState ()=delete
 
 PackageEditorState (const PackageEditorState &other)=delete
 
 PackageEditorState (Context &context) noexcept
 
virtual ~PackageEditorState () noexcept
 
virtual bool processKeyPressed (const GraphicsSceneKeyEvent &e) noexcept
 
virtual bool processKeyReleased (const GraphicsSceneKeyEvent &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
 

Private Member Functions

bool startAddHole (const Point &pos) noexcept
 
bool finishAddHole (const Point &pos) noexcept
 
bool abortAddHole () noexcept
 

Private Attributes

Hole mCurrentProperties
 
std::shared_ptr< HolemCurrentHole
 
std::shared_ptr< HoleGraphicsItemmCurrentGraphicsItem
 
std::unique_ptr< CmdHoleEditmCurrentEditCmd
 

Additional Inherited Members

- Public Types inherited from PackageEditorState
using Context = PackageEditorFsm::Context
 
- Protected Member Functions inherited from PackageEditorState
GraphicsScenegetGraphicsScene () noexcept
 
PositiveLength getGridInterval () const noexcept
 
const LengthUnitgetLengthUnit () const noexcept
 
QWidget * parentWidget () noexcept
 
- Static Protected Member Functions inherited from PackageEditorState
static const QSet< const Layer * > & getAllowedTextLayers () noexcept
 
static const QSet< const Layer * > & getAllowedCircleAndPolygonLayers () noexcept
 
- Protected Attributes inherited from PackageEditorState
ContextmContext
 
PackageEditorFsmAdaptermAdapter
 

Detailed Description

Constructor & Destructor Documentation

◆ PackageEditorState_AddHoles() [1/3]

◆ PackageEditorState_AddHoles() [2/3]

◆ PackageEditorState_AddHoles() [3/3]

PackageEditorState_AddHoles ( Context context)
explicitnoexcept

◆ ~PackageEditorState_AddHoles()

Member Function Documentation

◆ entry()

bool entry ( )
overridevirtualnoexcept

Reimplemented from PackageEditorState.

+ Here is the call graph for this function:

◆ exit()

bool exit ( )
overridevirtualnoexcept

Reimplemented from PackageEditorState.

+ Here is the call graph for this function:

◆ processGraphicsSceneMouseMoved()

bool processGraphicsSceneMouseMoved ( const GraphicsSceneMouseEvent e)
overridevirtualnoexcept

Reimplemented from PackageEditorState.

+ Here is the call graph for this function:

◆ processGraphicsSceneLeftMouseButtonPressed()

bool processGraphicsSceneLeftMouseButtonPressed ( const GraphicsSceneMouseEvent e)
overridevirtualnoexcept

Reimplemented from PackageEditorState.

+ Here is the call graph for this function:

◆ getDiameter()

const PositiveLength & getDiameter ( ) const
inlinenoexcept
+ Here is the call graph for this function:

◆ setDiameter()

void setDiameter ( const PositiveLength diameter)
noexcept
+ Here is the caller graph for this function:

◆ operator=()

PackageEditorState_AddHoles & operator= ( const PackageEditorState_AddHoles rhs)
delete

◆ diameterChanged

void diameterChanged ( const PositiveLength diameter)
signal
+ Here is the caller graph for this function:

◆ startAddHole()

bool startAddHole ( const Point pos)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ finishAddHole()

bool finishAddHole ( const Point pos)
privatenoexcept
+ Here is the call graph for this function:

◆ abortAddHole()

bool abortAddHole ( )
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ mCurrentProperties

Hole mCurrentProperties
private

◆ mCurrentHole

std::shared_ptr<Hole> mCurrentHole
private

◆ mCurrentGraphicsItem

std::shared_ptr<HoleGraphicsItem> mCurrentGraphicsItem
private

◆ mCurrentEditCmd

std::unique_ptr<CmdHoleEdit> mCurrentEditCmd
private

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