LibrePCB Developers Documentation
BES_AddHole Class Referencefinal

The BES_AddHole class. More...

#include <bes_addhole.h>

+ Inheritance diagram for BES_AddHole:
+ Collaboration diagram for BES_AddHole:

Public Member Functions

 BES_AddHole (BoardEditor &editor, Ui::BoardEditor &editorUi, GraphicsView &editorGraphicsView, UndoStack &undoStack)
 
 ~BES_AddHole ()
 
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 addHole (Board &board, const Point &pos) noexcept
 
void updateHolePosition (const Point &pos) noexcept
 
bool fixHole (const Point &pos) noexcept
 
void diameterEditValueChanged (const PositiveLength &value) noexcept
 
void makeLayerVisible () noexcept
 

Private Attributes

bool mUndoCmdActive
 
BI_HolemHole
 
QScopedPointer< CmdHoleEditmEditCmd
 
PositiveLength mCurrentDiameter
 
QScopedPointer< QLabel > mDiameterLabel
 
QScopedPointer< PositiveLengthEditmDiameterEdit
 

Additional Inherited Members

- Public Types inherited from BES_Base
enum  ProcRetVal
 process() return values More...
 
- Protected Member Functions inherited from BES_Base
const LengthUnitgetDefaultLengthUnit () const noexcept
 
- 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_AddHole class.

Constructor & Destructor Documentation

◆ BES_AddHole()

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

◆ ~BES_AddHole()

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:

◆ addHole()

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

◆ updateHolePosition()

void updateHolePosition ( const Point pos)
privatenoexcept
+ Here is the caller graph for this function:

◆ fixHole()

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

◆ diameterEditValueChanged()

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

◆ makeLayerVisible()

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

Member Data Documentation

◆ mUndoCmdActive

bool mUndoCmdActive
private

◆ mHole

BI_Hole* mHole
private

◆ mEditCmd

QScopedPointer<CmdHoleEdit> mEditCmd
private

◆ mCurrentDiameter

PositiveLength mCurrentDiameter
private

◆ mDiameterLabel

QScopedPointer<QLabel> mDiameterLabel
private

◆ mDiameterEdit

QScopedPointer<PositiveLengthEdit> mDiameterEdit
private

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