LibrePCB Developers Documentation
BES_AddVia Class Referencefinal

The BES_AddVia class. More...

#include <bes_addvia.h>

+ Inheritance diagram for BES_AddVia:
+ Collaboration diagram for BES_AddVia:

Public Member Functions

 BES_AddVia (BoardEditor &editor, Ui::BoardEditor &editorUi, GraphicsView &editorGraphicsView, UndoStack &undoStack)
 
 ~BES_AddVia ()
 
ProcRetVal process (BEE_Base *event) noexcept override
 
bool entry (BEE_Base *event) noexcept override
 
bool exit (BEE_Base *event) noexcept override
 
- Public Member Functions inherited from BES_Base
 BES_Base (BoardEditor &editor, Ui::BoardEditor &editorUi, GraphicsView &editorGraphicsView, UndoStack &undoStack)
 
virtual ~BES_Base ()
 

Private Member Functions

ProcRetVal processSceneEvent (BEE_Base *event) noexcept
 
bool addVia (Board &board) noexcept
 
bool updateVia (Board &board, const Point &pos) noexcept
 
bool fixVia (const Point &pos) noexcept
 
void updateShapeActionsCheckedState () noexcept
 
void sizeEditValueChanged (const PositiveLength &value) noexcept
 
void drillDiameterEditValueChanged (const PositiveLength &value) noexcept
 
void setNetSignal (NetSignal *netsignal) noexcept
 

Private Attributes

bool mUndoCmdActive
 
BI_ViamCurrentVia
 
BI_Via::Shape mCurrentViaShape
 
PositiveLength mCurrentViaSize
 
PositiveLength mCurrentViaDrillDiameter
 
NetSignalmCurrentViaNetSignal
 
QScopedPointer< CmdBoardViaEditmViaEditCmd
 
QHash< int, QAction * > mShapeActions
 
QList< QAction * > mActionSeparators
 
QLabel * mSizeLabel
 
PositiveLengthEditmSizeEdit
 
QLabel * mDrillLabel
 
PositiveLengthEditmDrillEdit
 
QLabel * mNetSignalLabel
 
QComboBox * mNetSignalComboBox
 

Additional Inherited Members

- Public Types inherited from BES_Base
enum  ProcRetVal
 process() return values More...
 
- Protected Attributes inherited from BES_Base
workspace::WorkspacemWorkspace
 
ProjectmProject
 
CircuitmCircuit
 
BoardEditormEditor
 
Ui::BoardEditor & mEditorUi
 allows access to BoardEditor UI More...
 
GraphicsViewmEditorGraphicsView
 allows access to the board editor graphics view More...
 
UndoStackmUndoStack
 

Detailed Description

The BES_AddVia class.

Constructor & Destructor Documentation

◆ BES_AddVia()

BES_AddVia ( BoardEditor editor,
Ui::BoardEditor &  editorUi,
GraphicsView editorGraphicsView,
UndoStack undoStack 
)
explicit

◆ ~BES_AddVia()

~BES_AddVia ( )

Member Function Documentation

◆ process()

BES_Base::ProcRetVal process ( BEE_Base event)
overridevirtualnoexcept

Implements BES_Base.

+ Here is the call graph for this function:

◆ entry()

bool entry ( BEE_Base event)
overridevirtualnoexcept

Reimplemented from BES_Base.

+ Here is the call graph for this function:

◆ exit()

bool exit ( BEE_Base event)
overridevirtualnoexcept

Reimplemented from BES_Base.

+ Here is the call graph for this function:

◆ processSceneEvent()

BES_Base::ProcRetVal processSceneEvent ( BEE_Base event)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addVia()

bool addVia ( Board board)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateVia()

bool updateVia ( Board board,
const Point pos 
)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fixVia()

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

◆ updateShapeActionsCheckedState()

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

◆ sizeEditValueChanged()

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

◆ drillDiameterEditValueChanged()

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

◆ setNetSignal()

void setNetSignal ( NetSignal netsignal)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ mUndoCmdActive

bool mUndoCmdActive
private

◆ mCurrentVia

BI_Via* mCurrentVia
private

◆ mCurrentViaShape

BI_Via::Shape mCurrentViaShape
private

◆ mCurrentViaSize

PositiveLength mCurrentViaSize
private

◆ mCurrentViaDrillDiameter

PositiveLength mCurrentViaDrillDiameter
private

◆ mCurrentViaNetSignal

NetSignal* mCurrentViaNetSignal
private

◆ mViaEditCmd

QScopedPointer<CmdBoardViaEdit> mViaEditCmd
private

◆ mShapeActions

QHash<int, QAction*> mShapeActions
private

◆ mActionSeparators

QList<QAction*> mActionSeparators
private

◆ mSizeLabel

QLabel* mSizeLabel
private

◆ mSizeEdit

PositiveLengthEdit* mSizeEdit
private

◆ mDrillLabel

QLabel* mDrillLabel
private

◆ mDrillEdit

PositiveLengthEdit* mDrillEdit
private

◆ mNetSignalLabel

QLabel* mNetSignalLabel
private

◆ mNetSignalComboBox

QComboBox* mNetSignalComboBox
private

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