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

The PackageEditorState_Select class. More...

#include <packageeditorstate_select.h>

+ Inheritance diagram for PackageEditorState_Select:
+ Collaboration diagram for PackageEditorState_Select:

Public Member Functions

 PackageEditorState_Select ()=delete
 
 PackageEditorState_Select (const PackageEditorState_Select &other)=delete
 
 PackageEditorState_Select (Context &context) noexcept
 
 ~PackageEditorState_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
 
PackageEditorState_Selectoperator= (const PackageEditorState_Select &rhs)=delete
 
- Public Member Functions inherited from PackageEditorState
 PackageEditorState ()=delete
 
 PackageEditorState (const PackageEditorState &other)=delete
 
 PackageEditorState (Context &context) noexcept
 
virtual ~PackageEditorState () noexcept
 
virtual bool entry () noexcept
 
virtual bool exit () noexcept
 
virtual bool processAbortCommand () noexcept
 
PackageEditorStateoperator= (const PackageEditorState &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
< CmdMoveSelectedFootprintItems
mCmdMoveSelectedItems
 

Additional Inherited Members

- Public Types inherited from PackageEditorState
using Context = PackageEditorFsm::Context
 
- Protected Member Functions inherited from PackageEditorState
const PositiveLengthgetGridInterval () const noexcept
 
- Protected Attributes inherited from PackageEditorState
ContextmContext
 

Detailed Description

The PackageEditorState_Select class.

Author
ubruhin
Date
2017-05-28

Member Enumeration Documentation

enum SubState
strongprivate
Enumerator
IDLE 
SELECTING 
MOVING 

Constructor & Destructor Documentation

PackageEditorState_Select ( Context context)
explicitnoexcept

Member Function Documentation

bool processGraphicsSceneMouseMoved ( QGraphicsSceneMouseEvent &  e)
overridevirtualnoexcept

Reimplemented from PackageEditorState.

+ Here is the call graph for this function:

bool processGraphicsSceneLeftMouseButtonPressed ( QGraphicsSceneMouseEvent &  e)
overridevirtualnoexcept

Reimplemented from PackageEditorState.

+ Here is the call graph for this function:

bool processGraphicsSceneLeftMouseButtonReleased ( QGraphicsSceneMouseEvent &  e)
overridevirtualnoexcept

Reimplemented from PackageEditorState.

+ Here is the call graph for this function:

bool processGraphicsSceneLeftMouseButtonDoubleClicked ( QGraphicsSceneMouseEvent &  e)
overridevirtualnoexcept

Reimplemented from PackageEditorState.

+ Here is the call graph for this function:

bool processGraphicsSceneRightMouseButtonReleased ( QGraphicsSceneMouseEvent &  e)
overridevirtualnoexcept

Reimplemented from PackageEditorState.

+ Here is the call graph for this function:

bool processRotateCw ( )
overridevirtualnoexcept

Reimplemented from PackageEditorState.

+ Here is the call graph for this function:

bool processRotateCcw ( )
overridevirtualnoexcept

Reimplemented from PackageEditorState.

+ Here is the call graph for this function:

bool processRemove ( )
overridevirtualnoexcept

Reimplemented from PackageEditorState.

+ Here is the call graph for this function:

PackageEditorState_Select& operator= ( const PackageEditorState_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<CmdMoveSelectedFootprintItems> mCmdMoveSelectedItems
private

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