LibrePCB Developers Documentation
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
 

Signals

void requestRadiusInputEnabled (bool enabled)
 
void requestRadius (const UnsignedLimitedRatio &radius)
 
- Signals inherited from PackageEditorState
void availableFeaturesChanged ()
 
void statusBarMessageChanged (const QString &message, int timeoutMs=-1)
 

Public Member Functions

 PackageEditorState_AddPads ()=delete
 
 PackageEditorState_AddPads (const PackageEditorState_AddPads &other)=delete
 
 PackageEditorState_AddPads (Context &context, PadType type, FootprintPad::Function function) noexcept
 
virtual ~PackageEditorState_AddPads () noexcept
 
virtual bool entry () noexcept override
 
virtual bool exit () noexcept override
 
QSet< EditorWidgetBase::FeaturegetAvailableFeatures () const noexcept override
 
virtual bool processGraphicsSceneMouseMoved (QGraphicsSceneMouseEvent &e) noexcept override
 
virtual bool processGraphicsSceneLeftMouseButtonPressed (QGraphicsSceneMouseEvent &e) noexcept override
 
virtual bool processGraphicsSceneRightMouseButtonReleased (QGraphicsSceneMouseEvent &e) noexcept override
 
virtual bool processRotate (const Angle &rotation) noexcept override
 
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 processKeyPressed (const QKeyEvent &e) noexcept
 
virtual bool processKeyReleased (const QKeyEvent &e) noexcept
 
virtual bool processGraphicsSceneLeftMouseButtonReleased (QGraphicsSceneMouseEvent &e) noexcept
 
virtual bool processGraphicsSceneLeftMouseButtonDoubleClicked (QGraphicsSceneMouseEvent &e) noexcept
 
virtual bool processSelectAll () noexcept
 
virtual bool processCut () noexcept
 
virtual bool processCopy () noexcept
 
virtual bool processPaste () noexcept
 
virtual bool processMove (Qt::ArrowType direction)
 
virtual bool processMirror (Qt::Orientation orientation) 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 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 selectNextFreePadInComboBox () noexcept
 
void packagePadComboBoxCurrentPadChanged (tl::optional< Uuid > pad) noexcept
 
void boardSideSelectorCurrentSideChanged (FootprintPad::ComponentSide side) noexcept
 
void shapeSelectorCurrentShapeChanged (FootprintPad::Shape shape, const UnsignedLimitedRatio &radius, bool customRadius) noexcept
 
void widthEditValueChanged (const PositiveLength &value) noexcept
 
void heightEditValueChanged (const PositiveLength &value) noexcept
 
void drillDiameterEditValueChanged (const PositiveLength &value) noexcept
 
void fiducialClearanceEditValueChanged (const UnsignedLength &value) noexcept
 
void radiusEditValueChanged (const UnsignedLimitedRatio &value) noexcept
 
void pressFitCheckedChanged (bool value) noexcept
 
void applyRecommendedRoundedRectRadius () noexcept
 

Private Attributes

PadType mPadType
 
QScopedPointer< CmdFootprintPadEditmEditCmd
 
std::shared_ptr< FootprintPadmCurrentPad
 
std::shared_ptr< FootprintPadGraphicsItemmCurrentGraphicsItem
 
PackagePadComboBoxmPackagePadComboBox
 
FootprintPad mLastPad
 

Additional Inherited Members

- Protected Member Functions inherited from PackageEditorState
const PositiveLengthgetGridInterval () const noexcept
 
const LengthUnitgetLengthUnit () const 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
 

Detailed Description

Member Enumeration Documentation

◆ PadType

enum PadType
strong
Enumerator
THT 
SMT 

Constructor & Destructor Documentation

◆ PackageEditorState_AddPads() [1/3]

◆ PackageEditorState_AddPads() [2/3]

◆ PackageEditorState_AddPads() [3/3]

PackageEditorState_AddPads ( Context context,
PadType  type,
FootprintPad::Function  function 
)
explicitnoexcept
+ Here is the call graph for this function:

◆ ~PackageEditorState_AddPads()

~PackageEditorState_AddPads ( )
virtualnoexcept

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:

◆ getAvailableFeatures()

QSet< EditorWidgetBase::Feature > getAvailableFeatures ( ) const
overridevirtualnoexcept

Implements PackageEditorState.

◆ processGraphicsSceneMouseMoved()

bool processGraphicsSceneMouseMoved ( QGraphicsSceneMouseEvent &  e)
overridevirtualnoexcept

Reimplemented from PackageEditorState.

+ Here is the call graph for this function:

◆ processGraphicsSceneLeftMouseButtonPressed()

bool processGraphicsSceneLeftMouseButtonPressed ( QGraphicsSceneMouseEvent &  e)
overridevirtualnoexcept

Reimplemented from PackageEditorState.

+ Here is the call graph for this function:

◆ processGraphicsSceneRightMouseButtonReleased()

bool processGraphicsSceneRightMouseButtonReleased ( QGraphicsSceneMouseEvent &  e)
overridevirtualnoexcept

Reimplemented from PackageEditorState.

+ Here is the call graph for this function:

◆ processRotate()

bool processRotate ( const Angle rotation)
overridevirtualnoexcept

Reimplemented from PackageEditorState.

+ Here is the caller graph for this function:

◆ operator=()

PackageEditorState_AddPads& operator= ( const PackageEditorState_AddPads rhs)
delete

◆ startAddPad()

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

◆ finishAddPad()

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

◆ abortAddPad()

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

◆ selectNextFreePadInComboBox()

void selectNextFreePadInComboBox ( )
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ packagePadComboBoxCurrentPadChanged()

void packagePadComboBoxCurrentPadChanged ( tl::optional< Uuid pad)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ boardSideSelectorCurrentSideChanged()

void boardSideSelectorCurrentSideChanged ( FootprintPad::ComponentSide  side)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ shapeSelectorCurrentShapeChanged()

void shapeSelectorCurrentShapeChanged ( FootprintPad::Shape  shape,
const UnsignedLimitedRatio radius,
bool  customRadius 
)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ widthEditValueChanged()

void widthEditValueChanged ( const PositiveLength value)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ heightEditValueChanged()

void heightEditValueChanged ( const PositiveLength value)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ drillDiameterEditValueChanged()

void drillDiameterEditValueChanged ( const PositiveLength value)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fiducialClearanceEditValueChanged()

void fiducialClearanceEditValueChanged ( const UnsignedLength value)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ radiusEditValueChanged()

void radiusEditValueChanged ( const UnsignedLimitedRatio value)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pressFitCheckedChanged()

void pressFitCheckedChanged ( bool  value)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ applyRecommendedRoundedRectRadius()

void applyRecommendedRoundedRectRadius ( )
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ requestRadiusInputEnabled

void requestRadiusInputEnabled ( bool  enabled)
signal
+ Here is the caller graph for this function:

◆ requestRadius

void requestRadius ( const UnsignedLimitedRatio radius)
signal
+ Here is the caller graph for this function:

Member Data Documentation

◆ mPadType

PadType mPadType
private

◆ mEditCmd

QScopedPointer<CmdFootprintPadEdit> mEditCmd
private

◆ mCurrentPad

std::shared_ptr<FootprintPad> mCurrentPad
private

◆ mCurrentGraphicsItem

std::shared_ptr<FootprintPadGraphicsItem> mCurrentGraphicsItem
private

◆ mPackagePadComboBox

PackagePadComboBox* mPackagePadComboBox
private

◆ mLastPad

FootprintPad mLastPad
private

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