The board editor finite state machine.
More...
#include <boardeditorfsm.h>
Inherits QObject.
The board editor finite state machine.
◆ State
◆ BoardEditorFsm() [1/3]
◆ BoardEditorFsm() [2/3]
◆ BoardEditorFsm() [3/3]
◆ ~BoardEditorFsm()
◆ getCurrentState()
State getCurrentState |
( |
| ) |
const |
|
inlinenoexcept |
◆ processSelect()
◆ processAddHole()
◆ processAddStrokeText()
bool processAddStrokeText |
( |
| ) |
|
|
noexcept |
◆ processAddVia()
◆ processAddDevice()
◆ processDrawPolygon()
bool processDrawPolygon |
( |
| ) |
|
|
noexcept |
◆ processDrawPlane()
bool processDrawPlane |
( |
| ) |
|
|
noexcept |
◆ processDrawZone()
◆ processDrawTrace()
bool processDrawTrace |
( |
| ) |
|
|
noexcept |
◆ processImportDxf()
bool processImportDxf |
( |
| ) |
|
|
noexcept |
◆ processMeasure()
◆ processAbortCommand()
bool processAbortCommand |
( |
| ) |
|
|
noexcept |
◆ processSelectAll()
bool processSelectAll |
( |
| ) |
|
|
noexcept |
◆ processCut()
◆ processCopy()
◆ processPaste()
◆ processMove()
bool processMove |
( |
const Point & |
delta | ) |
|
|
noexcept |
◆ processRotate()
bool processRotate |
( |
const Angle & |
rotation | ) |
|
|
noexcept |
◆ processFlip()
bool processFlip |
( |
Qt::Orientation |
orientation | ) |
|
|
noexcept |
◆ processSnapToGrid()
bool processSnapToGrid |
( |
| ) |
|
|
noexcept |
◆ processSetLocked()
bool processSetLocked |
( |
bool |
locked | ) |
|
|
noexcept |
◆ processChangeLineWidth()
bool processChangeLineWidth |
( |
int |
step | ) |
|
|
noexcept |
◆ processResetAllTexts()
bool processResetAllTexts |
( |
| ) |
|
|
noexcept |
◆ processRemove()
◆ processEditProperties()
bool processEditProperties |
( |
| ) |
|
|
noexcept |
◆ processKeyPressed()
bool processKeyPressed |
( |
const QKeyEvent & |
e | ) |
|
|
noexcept |
◆ processKeyReleased()
bool processKeyReleased |
( |
const QKeyEvent & |
e | ) |
|
|
noexcept |
◆ processGraphicsSceneMouseMoved()
bool processGraphicsSceneMouseMoved |
( |
QGraphicsSceneMouseEvent & |
e | ) |
|
|
noexcept |
◆ processGraphicsSceneLeftMouseButtonPressed()
bool processGraphicsSceneLeftMouseButtonPressed |
( |
QGraphicsSceneMouseEvent & |
e | ) |
|
|
noexcept |
◆ processGraphicsSceneLeftMouseButtonReleased()
bool processGraphicsSceneLeftMouseButtonReleased |
( |
QGraphicsSceneMouseEvent & |
e | ) |
|
|
noexcept |
◆ processGraphicsSceneLeftMouseButtonDoubleClicked()
bool processGraphicsSceneLeftMouseButtonDoubleClicked |
( |
QGraphicsSceneMouseEvent & |
e | ) |
|
|
noexcept |
◆ processGraphicsSceneRightMouseButtonReleased()
bool processGraphicsSceneRightMouseButtonReleased |
( |
QGraphicsSceneMouseEvent & |
e | ) |
|
|
noexcept |
◆ processSwitchToBoard()
bool processSwitchToBoard |
( |
int |
index | ) |
|
|
noexcept |
Switch to another board
If someone (the user or the application) wants to switch to another board in the board editor, this is not allowed at any time (for example, while drawing a trace in the active board, you cannot switch to another board). So this kind of event must be processed by the FSM. The FSM then will only decide whether changing the board is allowed (event accepted) or not (event rejected). If the event was accepted, the board editor then is allowed to switch to the requested board.
- Parameters
-
- Return values
-
true | If switching is allowed |
false | If switching is rejected |
◆ operator=()
◆ stateChanged
void stateChanged |
( |
State |
newState | ) |
|
|
signal |
◆ statusBarMessageChanged
void statusBarMessageChanged |
( |
const QString & |
message, |
|
|
int |
timeoutMs = -1 |
|
) |
| |
|
signal |
◆ getCurrentStateObj()
◆ setNextState()
bool setNextState |
( |
State |
state | ) |
|
|
privatenoexcept |
◆ leaveCurrentState()
bool leaveCurrentState |
( |
| ) |
|
|
privatenoexcept |
◆ enterNextState()
bool enterNextState |
( |
State |
state | ) |
|
|
privatenoexcept |
◆ switchToPreviousState()
bool switchToPreviousState |
( |
| ) |
|
|
privatenoexcept |
◆ mStates
◆ mCurrentState
◆ mPreviousState
The documentation for this class was generated from the following files: