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

The BES_DrawPolygon class. More...

#include <bes_drawpolygon.h>

+ Inheritance diagram for BES_DrawPolygon:
+ Collaboration diagram for BES_DrawPolygon:

Public Member Functions

 BES_DrawPolygon (BoardEditor &editor, Ui::BoardEditor &editorUi, GraphicsView &editorGraphicsView, UndoStack &undoStack)
 
 ~BES_DrawPolygon () noexcept
 
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 updateSegmentPosition (const Point &cursorPos) noexcept
 
void layerComboBoxLayerChanged (const QString &layerName) noexcept
 
void widthComboBoxTextChanged (const QString &width) noexcept
 
void filledCheckBoxCheckedChanged (bool checked) noexcept
 
void makeSelectedLayerVisible () noexcept
 

Private Attributes

SubState mSubState
 
GraphicsLayerName mCurrentLayerName
 
UnsignedLength mCurrentWidth
 
bool mCurrentIsFilled
 
BI_PolygonmCurrentPolygon
 
CmdPolygonEditmCmdEditCurrentPolygon
 
Point mLastSegmentPos
 
QList< QAction * > mActionSeparators
 
QLabel * mLayerLabel
 
GraphicsLayerComboBoxmLayerComboBox
 
QLabel * mWidthLabel
 
QComboBox * mWidthComboBox
 
QLabel * mFillLabel
 
QCheckBox * mFillCheckBox
 

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

Member Enumeration Documentation

enum SubState
strongprivate

Internal FSM States (substates)

Enumerator
Idle 
Positioning 

Constructor & Destructor Documentation

BES_DrawPolygon ( BoardEditor editor,
Ui::BoardEditor &  editorUi,
GraphicsView editorGraphicsView,
UndoStack undoStack 
)
explicit
~BES_DrawPolygon ( )
noexcept

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 updateSegmentPosition ( 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 widthComboBoxTextChanged ( const QString &  width)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void filledCheckBoxCheckedChanged ( bool  checked)
privatenoexcept

+ Here is the caller graph for this function:

void makeSelectedLayerVisible ( )
privatenoexcept

+ Here is the call graph for this function:

Member Data Documentation

SubState mSubState
private
GraphicsLayerName mCurrentLayerName
private
UnsignedLength mCurrentWidth
private
bool mCurrentIsFilled
private
BI_Polygon* mCurrentPolygon
private
CmdPolygonEdit* mCmdEditCurrentPolygon
private
Point mLastSegmentPos
private
QList<QAction*> mActionSeparators
private
QLabel* mLayerLabel
private
GraphicsLayerComboBox* mLayerComboBox
private
QLabel* mWidthLabel
private
QComboBox* mWidthComboBox
private
QLabel* mFillLabel
private
QCheckBox* mFillCheckBox
private

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