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 exit () noexceptoverride
 
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 processCut () noexceptoverride
 
bool processCopy () noexceptoverride
 
bool processPaste () noexceptoverride
 
bool processRotateCw () noexceptoverride
 
bool processRotateCcw () noexceptoverride
 
bool processMirror () noexceptoverride
 
bool processRemove () noexceptoverride
 
bool processAbortCommand () 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
 
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 copySelectedItemsToClipboard () noexcept
 
bool pasteFromClipboard () noexcept
 
bool rotateSelectedItems (const Angle &angle) noexcept
 
bool mirrorSelectedItems (Qt::Orientation orientation) noexcept
 
bool removeSelectedItems () noexcept
 
void setSelectionRect (const Point &p1, const Point &p2) noexcept
 
void clearSelectionRect (bool updateItemsSelectionState) noexcept
 

Private Attributes

SubState mState
 
Point mStartPos
 
QScopedPointer
< CmdDragSelectedSymbolItems
mCmdDragSelectedItems
 

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

Member Enumeration Documentation

enum SubState
strongprivate
Enumerator
IDLE 
SELECTING 
MOVING 
PASTING 

Constructor & Destructor Documentation

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

Member Function Documentation

bool exit ( )
inlineoverridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

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 processCut ( )
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

bool processCopy ( )
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

bool processPaste ( )
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 processMirror ( )
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:

bool processAbortCommand ( )
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

+ Here is the caller 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 copySelectedItemsToClipboard ( )
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool pasteFromClipboard ( )
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller 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 mirrorSelectedItems ( Qt::Orientation  orientation)
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

+ Here is the caller graph for this function:

Member Data Documentation

SubState mState
private
Point mStartPos
private
QScopedPointer<CmdDragSelectedSymbolItems> mCmdDragSelectedItems
private

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