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

The SES_Select class (default state of the schematic editor FSM) More...

#include <ses_select.h>

+ Inheritance diagram for SES_Select:
+ Collaboration diagram for SES_Select:

Public Member Functions

 SES_Select (SchematicEditor &editor, Ui::SchematicEditor &editorUi, GraphicsView &editorGraphicsView, UndoStack &undoStack)
 
 ~SES_Select ()
 
ProcRetVal process (SEE_Base *event) noexceptoverride
 
bool entry (SEE_Base *event) noexceptoverride
 
bool exit (SEE_Base *event) noexceptoverride
 
- Public Member Functions inherited from SES_Base
 SES_Base (SchematicEditor &editor, Ui::SchematicEditor &editorUi, GraphicsView &editorGraphicsView, UndoStack &undoStack)
 
virtual ~SES_Base ()
 

Private Types

enum  SubState
 enum for all possible substates More...
 

Private Member Functions

ProcRetVal processSubStateIdle (SEE_Base *event) noexcept
 
ProcRetVal processSubStateIdleSceneEvent (SEE_Base *event) noexcept
 
ProcRetVal processSubStateMoving (SEE_Base *event) noexcept
 
ProcRetVal processSubStateMovingSceneEvent (SEE_Base *event) noexcept
 
ProcRetVal proccessIdleSceneLeftClick (QGraphicsSceneMouseEvent *mouseEvent, Schematic &schematic) noexcept
 
ProcRetVal proccessIdleSceneRightMouseButtonReleased (QGraphicsSceneMouseEvent *mouseEvent, Schematic *schematic) noexcept
 
ProcRetVal proccessIdleSceneDoubleClick (QGraphicsSceneMouseEvent *mouseEvent, Schematic *schematic) noexcept
 
bool startMovingSelectedItems (Schematic &schematic, const Point &startPos) noexcept
 
bool rotateSelectedItems (const Angle &angle) noexcept
 
bool mirrorSelectedItems () noexcept
 
bool removeSelectedItems () noexcept
 
void openSymbolPropertiesDialog (SI_Symbol &symbol) noexcept
 
void openNetLabelPropertiesDialog (SI_NetLabel &netlabel) noexcept
 

Private Attributes

SubState mSubState
 the current substate More...
 
QScopedPointer
< CmdMoveSelectedSchematicItems
mSelectedItemsMoveCommand
 

Additional Inherited Members

- Public Types inherited from SES_Base
enum  ProcRetVal
 process() return values More...
 
- Protected Attributes inherited from SES_Base
workspace::WorkspacemWorkspace
 
ProjectmProject
 
CircuitmCircuit
 
SchematicEditormEditor
 
Ui::SchematicEditor & mEditorUi
 allows access to SchematicEditor UI More...
 
GraphicsViewmEditorGraphicsView
 
UndoStackmUndoStack
 

Detailed Description

The SES_Select class (default state of the schematic editor FSM)

Member Enumeration Documentation

enum SubState
private

enum for all possible substates

Enumerator
SubState_Idle 

left mouse button is not pressed (default state)

SubState_Moving 

left mouse button is pressed

Constructor & Destructor Documentation

SES_Select ( SchematicEditor editor,
Ui::SchematicEditor &  editorUi,
GraphicsView editorGraphicsView,
UndoStack undoStack 
)
explicit
~SES_Select ( )

Member Function Documentation

SES_Base::ProcRetVal process ( SEE_Base event)
overridevirtualnoexcept

Implements SES_Base.

bool entry ( SEE_Base event)
overridevirtualnoexcept

Reimplemented from SES_Base.

bool exit ( SEE_Base event)
overridevirtualnoexcept

Reimplemented from SES_Base.

SES_Base::ProcRetVal processSubStateIdle ( SEE_Base event)
privatenoexcept

+ Here is the call graph for this function:

SES_Base::ProcRetVal processSubStateIdleSceneEvent ( SEE_Base event)
privatenoexcept

+ Here is the call graph for this function:

SES_Base::ProcRetVal processSubStateMoving ( SEE_Base event)
privatenoexcept
SES_Base::ProcRetVal processSubStateMovingSceneEvent ( SEE_Base event)
privatenoexcept

+ Here is the call graph for this function:

SES_Base::ProcRetVal proccessIdleSceneLeftClick ( QGraphicsSceneMouseEvent *  mouseEvent,
Schematic schematic 
)
privatenoexcept

+ Here is the call graph for this function:

SES_Base::ProcRetVal proccessIdleSceneRightMouseButtonReleased ( QGraphicsSceneMouseEvent *  mouseEvent,
Schematic schematic 
)
privatenoexcept

+ Here is the call graph for this function:

SES_Base::ProcRetVal proccessIdleSceneDoubleClick ( QGraphicsSceneMouseEvent *  mouseEvent,
Schematic schematic 
)
privatenoexcept

+ Here is the call graph for this function:

bool startMovingSelectedItems ( Schematic schematic,
const Point startPos 
)
privatenoexcept
bool rotateSelectedItems ( const Angle angle)
privatenoexcept

+ Here is the call graph for this function:

bool mirrorSelectedItems ( )
privatenoexcept

+ Here is the call graph for this function:

bool removeSelectedItems ( )
privatenoexcept

+ Here is the call graph for this function:

void openSymbolPropertiesDialog ( SI_Symbol symbol)
privatenoexcept
void openNetLabelPropertiesDialog ( SI_NetLabel netlabel)
privatenoexcept

+ Here is the call graph for this function:

Member Data Documentation

SubState mSubState
private

the current substate

QScopedPointer<CmdMoveSelectedSchematicItems> mSelectedItemsMoveCommand
private

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