LibrePCB Developers Documentation
BES_AddDevice Class Referencefinal

The BES_AddDevice class. More...

#include <bes_adddevice.h>

+ Inheritance diagram for BES_AddDevice:
+ Collaboration diagram for BES_AddDevice:

Public Member Functions

 BES_AddDevice (BoardEditor &editor, Ui::BoardEditor &editorUi, GraphicsView &editorGraphicsView, UndoStack &undoStack)
 
 ~BES_AddDevice ()
 
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
 
void startAddingDevice (ComponentInstance &cmp, const Uuid &dev, const Uuid &fpt)
 
bool abortCommand (bool showErrMsgBox) noexcept
 
void rotateDevice (const Angle &angle) noexcept
 
void mirrorDevice (Qt::Orientation orientation) noexcept
 

Private Attributes

bool mIsUndoCmdActive
 
BI_DevicemCurrentDeviceToPlace
 
QScopedPointer< CmdDeviceInstanceEditAllmCurrentDeviceEditCmd
 

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

Constructor & Destructor Documentation

◆ BES_AddDevice()

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

◆ ~BES_AddDevice()

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:

◆ startAddingDevice()

void startAddingDevice ( ComponentInstance cmp,
const Uuid dev,
const Uuid fpt 
)
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ abortCommand()

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

◆ rotateDevice()

void rotateDevice ( const Angle angle)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mirrorDevice()

void mirrorDevice ( Qt::Orientation  orientation)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ mIsUndoCmdActive

bool mIsUndoCmdActive
private

◆ mCurrentDeviceToPlace

BI_Device* mCurrentDeviceToPlace
private

◆ mCurrentDeviceEditCmd

QScopedPointer<CmdDeviceInstanceEditAll> mCurrentDeviceEditCmd
private

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