LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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) 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
 
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
< CmdDeviceInstanceEditAll
mCurrentDeviceEditCmd
 

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 ( BoardEditor editor,
Ui::BoardEditor &  editorUi,
GraphicsView editorGraphicsView,
UndoStack undoStack 
)

Member Function Documentation

BES_Base::ProcRetVal process ( BEE_Base event)
overridevirtualnoexcept

Implements BES_Base.

+ Here is the call graph for this function:

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.

BES_Base::ProcRetVal processSceneEvent ( BEE_Base event)
privatenoexcept

+ Here is the call graph for this function:

void startAddingDevice ( ComponentInstance cmp,
const Uuid dev,
const Uuid fpt 
)
private

+ Here is the call graph for this function:

bool abortCommand ( bool  showErrMsgBox)
privatenoexcept

+ Here is the call graph for this function:

void rotateDevice ( const Angle angle)
privatenoexcept
void mirrorDevice ( Qt::Orientation  orientation)
privatenoexcept

+ Here is the call graph for this function:

Member Data Documentation

bool mIsUndoCmdActive
private
BI_Device* mCurrentDeviceToPlace
private
QScopedPointer<CmdDeviceInstanceEditAll> mCurrentDeviceEditCmd
private

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