LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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) noexceptoverride
 
bool entry (BEE_Base *event) noexceptoverride
 
bool exit (BEE_Base *event) noexceptoverride
 
- 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 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
 
QComboBox * mSizeComboBox
 
QLabel * mDrillLabel
 
QComboBox * mDrillComboBox
 
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 ( BoardEditor editor,
Ui::BoardEditor &  editorUi,
GraphicsView editorGraphicsView,
UndoStack undoStack 
)
explicit
~BES_AddVia ( )

Member Function Documentation

BES_Base::ProcRetVal process ( BEE_Base event)
overridevirtualnoexcept

Implements BES_Base.

bool entry ( BEE_Base event)
overridevirtualnoexcept

Reimplemented from BES_Base.

+ Here is the call graph for this function:

bool exit ( BEE_Base event)
overridevirtualnoexcept

Reimplemented from BES_Base.

+ Here is the call graph for this function:

BES_Base::ProcRetVal processSceneEvent ( BEE_Base event)
privatenoexcept

+ Here is the call graph for this function:

bool addVia ( Board board)
privatenoexcept

+ Here is the call graph for this function:

bool updateVia ( Board board,
const Point pos 
)
privatenoexcept

+ Here is the call graph for this function:

bool fixVia ( const Point pos)
privatenoexcept

+ Here is the call graph for this function:

void updateShapeActionsCheckedState ( )
privatenoexcept
void setNetSignal ( NetSignal netsignal)
privatenoexcept

+ Here is the call graph for this function:

Member Data Documentation

bool mUndoCmdActive
private
BI_Via* mCurrentVia
private
BI_Via::Shape mCurrentViaShape
private
PositiveLength mCurrentViaSize
private
PositiveLength mCurrentViaDrillDiameter
private
NetSignal* mCurrentViaNetSignal
private
QScopedPointer<CmdBoardViaEdit> mViaEditCmd
private
QHash<int, QAction*> mShapeActions
private
QList<QAction*> mActionSeparators
private
QLabel* mSizeLabel
private
QComboBox* mSizeComboBox
private
QLabel* mDrillLabel
private
QComboBox* mDrillComboBox
private
QLabel* mNetSignalLabel
private
QComboBox* mNetSignalComboBox
private

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