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 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 processFlip () noexceptoverride
 
bool processRemove () noexceptoverride
 
bool processAbortCommand () 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
 
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 copySelectedItemsToClipboard () noexcept
 
bool pasteFromClipboard () noexcept
 
bool rotateSelectedItems (const Angle &angle) noexcept
 
bool mirrorSelectedItems (Qt::Orientation orientation, bool flipLayers) 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
< CmdDragSelectedFootprintItems
mCmdDragSelectedItems
 

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

Member Enumeration Documentation

enum SubState
strongprivate
Enumerator
IDLE 
SELECTING 
MOVING 
PASTING 

Constructor & Destructor Documentation

PackageEditorState_Select ( Context context)
explicitnoexcept

Member Function Documentation

bool exit ( )
inlineoverridevirtualnoexcept

Reimplemented from PackageEditorState.

+ Here is the call graph for this function:

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

Reimplemented from PackageEditorState.

+ Here is the call graph for this function:

bool processCopy ( )
overridevirtualnoexcept

Reimplemented from PackageEditorState.

+ Here is the call graph for this function:

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

Reimplemented from PackageEditorState.

+ Here is the call graph for this function:

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

bool processAbortCommand ( )
overridevirtualnoexcept

Reimplemented from PackageEditorState.

+ Here is the call graph for this function:

+ Here is the caller 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 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,
bool  flipLayers 
)
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<CmdDragSelectedFootprintItems> mCmdDragSelectedItems
private

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