LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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) 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 addHole (Board &board, const Point &pos) noexcept
 
void updateHolePosition (const Point &pos) noexcept
 
bool fixHole (const Point &pos) noexcept
 
void diameterSpinBoxValueChanged (double value) noexcept
 
void makeLayerVisible () noexcept
 

Private Attributes

bool mUndoCmdActive
 
BI_HolemHole
 
QScopedPointer< CmdHoleEditmEditCmd
 
PositiveLength mCurrentDiameter
 
QScopedPointer< QLabel > mDiameterLabel
 
QScopedPointer< QDoubleSpinBox > mDiameterSpinBox
 

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_AddHole class.

Constructor & Destructor Documentation

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

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 addHole ( Board board,
const Point pos 
)
privatenoexcept

+ Here is the call graph for this function:

void updateHolePosition ( const Point pos)
privatenoexcept
bool fixHole ( const Point pos)
privatenoexcept

+ Here is the call graph for this function:

void diameterSpinBoxValueChanged ( double  value)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void makeLayerVisible ( )
privatenoexcept

+ Here is the call graph for this function:

Member Data Documentation

bool mUndoCmdActive
private
BI_Hole* mHole
private
QScopedPointer<CmdHoleEdit> mEditCmd
private
PositiveLength mCurrentDiameter
private
QScopedPointer<QLabel> mDiameterLabel
private
QScopedPointer<QDoubleSpinBox> mDiameterSpinBox
private

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