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

The PackageEditorState_AddPads class. More...

#include <packageeditorstate_addpads.h>

+ Inheritance diagram for PackageEditorState_AddPads:
+ Collaboration diagram for PackageEditorState_AddPads:

Public Types

enum  PadType
 
- Public Types inherited from PackageEditorState
using Context = PackageEditorFsm::Context
 

Public Member Functions

 PackageEditorState_AddPads ()=delete
 
 PackageEditorState_AddPads (const PackageEditorState_AddPads &other)=delete
 
 PackageEditorState_AddPads (Context &context, PadType type) noexcept
 
virtual ~PackageEditorState_AddPads () noexcept
 
virtual bool entry () noexceptoverride
 
virtual bool exit () noexceptoverride
 
virtual bool processGraphicsSceneMouseMoved (QGraphicsSceneMouseEvent &e) noexceptoverride
 
virtual bool processGraphicsSceneLeftMouseButtonPressed (QGraphicsSceneMouseEvent &e) noexceptoverride
 
virtual bool processGraphicsSceneRightMouseButtonReleased (QGraphicsSceneMouseEvent &e) noexceptoverride
 
virtual bool processRotateCw () noexceptoverride
 
virtual bool processRotateCcw () noexceptoverride
 
PackageEditorState_AddPadsoperator= (const PackageEditorState_AddPads &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 processCut () noexcept
 
virtual bool processCopy () noexcept
 
virtual bool processPaste () noexcept
 
virtual bool processMirror () noexcept
 
virtual bool processFlip () noexcept
 
virtual bool processRemove () noexcept
 
virtual bool processAbortCommand () noexcept
 
PackageEditorStateoperator= (const PackageEditorState &rhs)=delete
 

Private Member Functions

bool startAddPad (const Point &pos) noexcept
 
bool finishAddPad (const Point &pos) noexcept
 
bool abortAddPad () noexcept
 
void packagePadComboBoxCurrentPadChanged (PackagePad *pad) noexcept
 
void boardSideSelectorCurrentSideChanged (FootprintPad::BoardSide side) noexcept
 
void shapeSelectorCurrentShapeChanged (FootprintPad::Shape shape) noexcept
 
void widthEditValueChanged (const PositiveLength &value) noexcept
 
void heightEditValueChanged (const PositiveLength &value) noexcept
 
void drillDiameterEditValueChanged (const UnsignedLength &value) noexcept
 

Private Attributes

PadType mPadType
 
Point mStartPos
 
QScopedPointer
< CmdFootprintPadEdit
mEditCmd
 
std::shared_ptr< FootprintPadmCurrentPad
 
FootprintPadGraphicsItemmCurrentGraphicsItem
 
PackagePadComboBoxmPackagePadComboBox
 
FootprintPad mLastPad
 

Additional Inherited Members

- Protected Member Functions inherited from PackageEditorState
const PositiveLengthgetGridInterval () const noexcept
 
- Protected Attributes inherited from PackageEditorState
ContextmContext
 

Detailed Description

Member Enumeration Documentation

enum PadType
strong
Enumerator
THT 
SMT 

Constructor & Destructor Documentation

PackageEditorState_AddPads ( Context context,
PadType  type 
)
explicitnoexcept
~PackageEditorState_AddPads ( )
virtualnoexcept

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:

bool processGraphicsSceneRightMouseButtonReleased ( QGraphicsSceneMouseEvent &  e)
overridevirtualnoexcept

Reimplemented from PackageEditorState.

bool processRotateCw ( )
overridevirtualnoexcept

Reimplemented from PackageEditorState.

+ Here is the call graph for this function:

bool processRotateCcw ( )
overridevirtualnoexcept

Reimplemented from PackageEditorState.

+ Here is the call graph for this function:

PackageEditorState_AddPads& operator= ( const PackageEditorState_AddPads rhs)
delete
bool startAddPad ( const Point pos)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool finishAddPad ( const Point pos)
privatenoexcept

+ Here is the call graph for this function:

bool abortAddPad ( )
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void packagePadComboBoxCurrentPadChanged ( PackagePad pad)
privatenoexcept

+ Here is the caller graph for this function:

void boardSideSelectorCurrentSideChanged ( FootprintPad::BoardSide  side)
privatenoexcept

+ Here is the caller graph for this function:

void shapeSelectorCurrentShapeChanged ( FootprintPad::Shape  shape)
privatenoexcept

+ Here is the caller graph for this function:

void widthEditValueChanged ( const PositiveLength value)
privatenoexcept

+ Here is the caller graph for this function:

void heightEditValueChanged ( const PositiveLength value)
privatenoexcept

+ Here is the caller graph for this function:

void drillDiameterEditValueChanged ( const UnsignedLength value)
privatenoexcept

+ Here is the caller graph for this function:

Member Data Documentation

PadType mPadType
private
Point mStartPos
private
QScopedPointer<CmdFootprintPadEdit> mEditCmd
private
std::shared_ptr<FootprintPad> mCurrentPad
private
FootprintPadGraphicsItem* mCurrentGraphicsItem
private
PackagePadComboBox* mPackagePadComboBox
private
FootprintPad mLastPad
private

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