LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PackageEditorState_AddHoles Class Referencefinal

The PackageEditorState_AddHoles class. More...

#include <packageeditorstate_addholes.h>

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

Public Member Functions

 PackageEditorState_AddHoles ()=delete
 
 PackageEditorState_AddHoles (const PackageEditorState_AddHoles &other)=delete
 
 PackageEditorState_AddHoles (Context &context) noexcept
 
 ~PackageEditorState_AddHoles () noexcept
 
bool entry () noexceptoverride
 
bool exit () noexceptoverride
 
bool processGraphicsSceneMouseMoved (QGraphicsSceneMouseEvent &e) noexceptoverride
 
bool processGraphicsSceneLeftMouseButtonPressed (QGraphicsSceneMouseEvent &e) noexceptoverride
 
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 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
 
PackageEditorStateoperator= (const PackageEditorState &rhs)=delete
 

Private Member Functions

bool startAddHole (const Point &pos) noexcept
 
bool finishAddHole (const Point &pos) noexcept
 
bool abortAddHole () noexcept
 
void diameterSpinBoxValueChanged (double value) noexcept
 

Private Attributes

Point mStartPos
 
QScopedPointer< CmdHoleEditmEditCmd
 
HolemCurrentHole
 
HoleGraphicsItemmCurrentGraphicsItem
 
PositiveLength mLastDiameter
 

Additional Inherited Members

- Public Types inherited from PackageEditorState
using Context = PackageEditorFsm::Context
 
- Protected Member Functions inherited from PackageEditorState
const PositiveLengthgetGridInterval () const noexcept
 
- Protected Attributes inherited from PackageEditorState
ContextmContext
 

Detailed Description

The PackageEditorState_AddHoles class.

Author
ubruhin
Date
2017-05-30

Constructor & Destructor Documentation

PackageEditorState_AddHoles ( Context context)
explicitnoexcept

Member Function Documentation

bool entry ( )
overridevirtualnoexcept

Reimplemented from PackageEditorState.

+ Here is the call graph for this function:

bool exit ( )
overridevirtualnoexcept

Reimplemented from PackageEditorState.

+ Here is the call graph for this function:

bool processGraphicsSceneMouseMoved ( QGraphicsSceneMouseEvent &  e)
overridevirtualnoexcept

Reimplemented from PackageEditorState.

+ Here is the call graph for this function:

bool processGraphicsSceneLeftMouseButtonPressed ( QGraphicsSceneMouseEvent &  e)
overridevirtualnoexcept

Reimplemented from PackageEditorState.

+ Here is the call graph for this function:

PackageEditorState_AddHoles& operator= ( const PackageEditorState_AddHoles rhs)
delete
bool startAddHole ( const Point pos)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool finishAddHole ( const Point pos)
privatenoexcept

+ Here is the call graph for this function:

bool abortAddHole ( )
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void diameterSpinBoxValueChanged ( double  value)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

Point mStartPos
private
QScopedPointer<CmdHoleEdit> mEditCmd
private
Hole* mCurrentHole
private
HoleGraphicsItem* mCurrentGraphicsItem
private
PositiveLength mLastDiameter
private

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