The schematic editor finite state machine (FSM)
More...
#include <schematiceditorfsm.h>
Inherits QObject.
The schematic editor finite state machine (FSM)
◆ State
◆ SchematicEditorFsm() [1/3]
◆ SchematicEditorFsm() [2/3]
◆ SchematicEditorFsm() [3/3]
◆ ~SchematicEditorFsm()
◆ getCurrentState()
State getCurrentState |
( |
| ) |
const |
|
inlinenoexcept |
◆ processSelect()
◆ processAddComponent() [1/2]
bool processAddComponent |
( |
const QString & |
searchTerm = QString() | ) |
|
|
noexcept |
◆ processAddComponent() [2/2]
bool processAddComponent |
( |
const Uuid & |
cmp, |
|
|
const Uuid & |
symbVar |
|
) |
| |
|
noexcept |
◆ processAddNetLabel()
bool processAddNetLabel |
( |
| ) |
|
|
noexcept |
◆ processDrawPolygon()
bool processDrawPolygon |
( |
| ) |
|
|
noexcept |
◆ processAddText()
◆ processDrawWire()
◆ 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 |
◆ processMirror()
bool processMirror |
( |
Qt::Orientation |
orientation | ) |
|
|
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 |
◆ processSwitchToSchematicPage()
bool processSwitchToSchematicPage |
( |
int |
index | ) |
|
|
noexcept |
Switch to another schematic page
If someone (the user or the application) wants to switch to another schematic page in the schematic editor, this is not allowed at any time (for example, while drawing a netline in the active schematic, you cannot switch to another schematic). So this kind of event must be processed by the FSM. The FSM then will only decide whether changing the schematic is allowed (event accepted) or not (event rejected). If the event was accepted, the schematic editor then is allowed to switch to the requested schematic page.
- Parameters
-
index | The new schematic page index |
- 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: