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

The SymbolEditorState_Select class. More...

#include <symboleditorstate_select.h>

+ Inheritance diagram for SymbolEditorState_Select:
+ Collaboration diagram for SymbolEditorState_Select:

Public Member Functions

 SymbolEditorState_Select ()=delete
 
 SymbolEditorState_Select (const SymbolEditorState_Select &other)=delete
 
 SymbolEditorState_Select (const Context &context) noexcept
 
 ~SymbolEditorState_Select () noexcept
 
bool processGraphicsSceneMouseMoved (QGraphicsSceneMouseEvent &e) noexceptoverride
 
bool processGraphicsSceneLeftMouseButtonPressed (QGraphicsSceneMouseEvent &e) noexceptoverride
 
bool processGraphicsSceneLeftMouseButtonReleased (QGraphicsSceneMouseEvent &e) noexceptoverride
 
bool processGraphicsSceneLeftMouseButtonDoubleClicked (QGraphicsSceneMouseEvent &e) noexceptoverride
 
bool processGraphicsSceneRightMouseButtonReleased (QGraphicsSceneMouseEvent &e) noexceptoverride
 
bool processRotateCw () noexceptoverride
 
bool processRotateCcw () noexceptoverride
 
bool processRemove () noexceptoverride
 
SymbolEditorState_Selectoperator= (const SymbolEditorState_Select &rhs)=delete
 
- Public Member Functions inherited from SymbolEditorState
 SymbolEditorState ()=delete
 
 SymbolEditorState (const SymbolEditorState &other)=delete
 
 SymbolEditorState (const Context &context) noexcept
 
virtual ~SymbolEditorState () noexcept
 
virtual bool entry () noexcept
 
virtual bool exit () noexcept
 
virtual bool processAbortCommand () noexcept
 
SymbolEditorStateoperator= (const SymbolEditorState &rhs)=delete
 

Private Types

enum  SubState
 

Private Member Functions

bool openContextMenuAtPos (const Point &pos) noexcept
 
bool openPropertiesDialogOfItemAtPos (const Point &pos) noexcept
 
bool rotateSelectedItems (const Angle &angle) noexcept
 
bool removeSelectedItems () noexcept
 
void setSelectionRect (const Point &p1, const Point &p2) noexcept
 
void clearSelectionRect (bool updateItemsSelectionState) noexcept
 

Private Attributes

SubState mState
 
QScopedPointer
< CmdMoveSelectedSymbolItems
mCmdMoveSelectedItems
 

Additional Inherited Members

- Public Types inherited from SymbolEditorState
using Context = SymbolEditorFsm::Context
 
- Protected Member Functions inherited from SymbolEditorState
const PositiveLengthgetGridInterval () const noexcept
 
- Protected Attributes inherited from SymbolEditorState
Context mContext
 

Detailed Description

The SymbolEditorState_Select class.

Author
ubruhin
Date
2016-11-02

Member Enumeration Documentation

enum SubState
strongprivate
Enumerator
IDLE 
SELECTING 
MOVING 

Constructor & Destructor Documentation

SymbolEditorState_Select ( const Context context)
explicitnoexcept
~SymbolEditorState_Select ( )
noexcept

Member Function Documentation

bool processGraphicsSceneMouseMoved ( QGraphicsSceneMouseEvent &  e)
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

bool processGraphicsSceneLeftMouseButtonPressed ( QGraphicsSceneMouseEvent &  e)
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

bool processGraphicsSceneLeftMouseButtonReleased ( QGraphicsSceneMouseEvent &  e)
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

bool processGraphicsSceneLeftMouseButtonDoubleClicked ( QGraphicsSceneMouseEvent &  e)
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

bool processGraphicsSceneRightMouseButtonReleased ( QGraphicsSceneMouseEvent &  e)
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

bool processRotateCw ( )
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

bool processRotateCcw ( )
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

bool processRemove ( )
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

SymbolEditorState_Select& operator= ( const SymbolEditorState_Select rhs)
delete
bool openContextMenuAtPos ( const Point pos)
privatenoexcept

+ Here is the call graph for this function:

bool openPropertiesDialogOfItemAtPos ( const Point pos)
privatenoexcept

+ Here is the call graph for this function:

bool rotateSelectedItems ( const Angle angle)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool removeSelectedItems ( )
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void setSelectionRect ( const Point p1,
const Point p2 
)
privatenoexcept
void clearSelectionRect ( bool  updateItemsSelectionState)
privatenoexcept

Member Data Documentation

SubState mState
private
QScopedPointer<CmdMoveSelectedSymbolItems> mCmdMoveSelectedItems
private

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