LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BES_DrawPlane Class Referencefinal

The BES_DrawPlane class. More...

#include <bes_drawplane.h>

+ Inheritance diagram for BES_DrawPlane:
+ Collaboration diagram for BES_DrawPlane:

Public Member Functions

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

enum  SubState
 Internal FSM States (substates) More...
 

Private Member Functions

ProcRetVal processSubStateIdle (BEE_Base *event) noexcept
 
ProcRetVal processSubStatePositioning (BEE_Base *event) noexcept
 
ProcRetVal processIdleSceneEvent (BEE_Base *event) noexcept
 
ProcRetVal processPositioningSceneEvent (BEE_Base *event) noexcept
 
bool start (Board &board, const Point &pos) noexcept
 
bool addSegment (Board &board, const Point &pos) noexcept
 
bool abort (bool showErrMsgBox) noexcept
 
void updateVertexPosition (const Point &cursorPos) noexcept
 
void layerComboBoxLayerChanged (const QString &layerName) noexcept
 
void makeSelectedLayerVisible () noexcept
 
void setNetSignal (NetSignal *netsignal) noexcept
 

Private Attributes

SubState mSubState
 
NetSignalmCurrentNetSignal
 
GraphicsLayerName mCurrentLayerName
 
BI_PlanemCurrentPlane
 
CmdBoardPlaneEditmCmdEditCurrentPlane
 
Point mLastVertexPos
 
QList< QAction * > mActionSeparators
 
QLabel * mNetSignalLabel
 
QComboBox * mNetSignalComboBox
 
QLabel * mLayerLabel
 
GraphicsLayerComboBoxmLayerComboBox
 

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

Member Enumeration Documentation

enum SubState
strongprivate

Internal FSM States (substates)

Enumerator
Idle 
Positioning 

Constructor & Destructor Documentation

BES_DrawPlane ( 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.

BES_Base::ProcRetVal processSubStateIdle ( BEE_Base event)
privatenoexcept
BES_Base::ProcRetVal processSubStatePositioning ( BEE_Base event)
privatenoexcept
BES_Base::ProcRetVal processIdleSceneEvent ( BEE_Base event)
privatenoexcept

+ Here is the call graph for this function:

BES_Base::ProcRetVal processPositioningSceneEvent ( BEE_Base event)
privatenoexcept

+ Here is the call graph for this function:

bool start ( Board board,
const Point pos 
)
privatenoexcept

+ Here is the call graph for this function:

bool addSegment ( Board board,
const Point pos 
)
privatenoexcept

+ Here is the call graph for this function:

bool abort ( bool  showErrMsgBox)
privatenoexcept

+ Here is the call graph for this function:

void updateVertexPosition ( const Point cursorPos)
privatenoexcept

+ Here is the call graph for this function:

void layerComboBoxLayerChanged ( const QString &  layerName)
privatenoexcept

+ Here is the caller graph for this function:

void makeSelectedLayerVisible ( )
privatenoexcept

+ Here is the call graph for this function:

void setNetSignal ( NetSignal netsignal)
privatenoexcept

+ Here is the call graph for this function:

Member Data Documentation

SubState mSubState
private
NetSignal* mCurrentNetSignal
private
GraphicsLayerName mCurrentLayerName
private
BI_Plane* mCurrentPlane
private
CmdBoardPlaneEdit* mCmdEditCurrentPlane
private
Point mLastVertexPos
private
QList<QAction*> mActionSeparators
private
QLabel* mNetSignalLabel
private
QComboBox* mNetSignalComboBox
private
QLabel* mLayerLabel
private
GraphicsLayerComboBox* mLayerComboBox
private

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