LibrePCB Developers Documentation
Loading...
Searching...
No Matches
PackageEditorState_Measure Class Referencefinal

The PackageEditorState_Measure class. More...

#include <packageeditorstate_measure.h>

+ Inheritance diagram for PackageEditorState_Measure:
+ Collaboration diagram for PackageEditorState_Measure:

Public Member Functions

 PackageEditorState_Measure ()=delete
 
 PackageEditorState_Measure (const PackageEditorState_Measure &other)=delete
 
 PackageEditorState_Measure (Context &context) noexcept
 
 ~PackageEditorState_Measure () noexcept
 
bool entry () noexcept override
 
bool exit () noexcept override
 
QSet< EditorWidgetBase::FeaturegetAvailableFeatures () const noexcept override
 
bool processKeyPressed (const QKeyEvent &e) noexcept override
 
bool processKeyReleased (const QKeyEvent &e) noexcept override
 
bool processGraphicsSceneMouseMoved (QGraphicsSceneMouseEvent &e) noexcept override
 
bool processGraphicsSceneLeftMouseButtonPressed (QGraphicsSceneMouseEvent &e) noexcept override
 
bool processCopy () noexcept override
 
bool processRemove () noexcept override
 
bool processAbortCommand () noexcept override
 
PackageEditorState_Measureoperator= (const PackageEditorState_Measure &rhs)=delete
 
- Public Member Functions inherited from PackageEditorState
 PackageEditorState ()=delete
 
 PackageEditorState (const PackageEditorState &other)=delete
 
 PackageEditorState (Context &context) noexcept
 
virtual ~PackageEditorState () noexcept
 
virtual bool processGraphicsSceneLeftMouseButtonReleased (QGraphicsSceneMouseEvent &e) noexcept
 
virtual bool processGraphicsSceneLeftMouseButtonDoubleClicked (QGraphicsSceneMouseEvent &e) noexcept
 
virtual bool processGraphicsSceneRightMouseButtonReleased (QGraphicsSceneMouseEvent &e) noexcept
 
virtual bool processSelectAll () noexcept
 
virtual bool processCut () noexcept
 
virtual bool processPaste () noexcept
 
virtual bool processMove (const Point &delta)
 
virtual bool processRotate (const Angle &rotation) noexcept
 
virtual bool processMirror (Qt::Orientation orientation) noexcept
 
virtual bool processMoveAlign () noexcept
 
virtual bool processSnapToGrid () noexcept
 
virtual bool processFlip (Qt::Orientation orientation) noexcept
 
virtual bool processEditProperties () noexcept
 
virtual bool processGenerateOutline () noexcept
 
virtual bool processGenerateCourtyard () noexcept
 
virtual bool processImportDxf () noexcept
 
PackageEditorStateoperator= (const PackageEditorState &rhs)=delete
 

Private Attributes

QScopedPointer< MeasureToolmTool
 

Additional Inherited Members

- Public Types inherited from PackageEditorState
using Context = PackageEditorFsm::Context
 
- Signals inherited from PackageEditorState
void abortRequested ()
 
void availableFeaturesChanged ()
 
void statusBarMessageChanged (const QString &message, int timeoutMs=-1)
 
- Protected Member Functions inherited from PackageEditorState
const PositiveLengthgetGridInterval () const noexcept
 
const LengthUnitgetLengthUnit () const noexcept
 
- Static Protected Member Functions inherited from PackageEditorState
static const QSet< const Layer * > & getAllowedTextLayers () noexcept
 
static const QSet< const Layer * > & getAllowedCircleAndPolygonLayers () noexcept
 
- Protected Attributes inherited from PackageEditorState
ContextmContext
 

Detailed Description

Constructor & Destructor Documentation

◆ PackageEditorState_Measure() [1/3]

◆ PackageEditorState_Measure() [2/3]

◆ PackageEditorState_Measure() [3/3]

PackageEditorState_Measure ( Context context)
explicitnoexcept
+ Here is the call graph for this function:

◆ ~PackageEditorState_Measure()

Member Function Documentation

◆ entry()

bool entry ( )
overridevirtualnoexcept

Reimplemented from PackageEditorState.

◆ exit()

bool exit ( )
overridevirtualnoexcept

Reimplemented from PackageEditorState.

◆ getAvailableFeatures()

QSet< EditorWidgetBase::Feature > getAvailableFeatures ( ) const
overridevirtualnoexcept

Implements PackageEditorState.

◆ processKeyPressed()

bool processKeyPressed ( const QKeyEvent &  e)
overridevirtualnoexcept

Reimplemented from PackageEditorState.

◆ processKeyReleased()

bool processKeyReleased ( const QKeyEvent &  e)
overridevirtualnoexcept

Reimplemented from PackageEditorState.

◆ processGraphicsSceneMouseMoved()

bool processGraphicsSceneMouseMoved ( QGraphicsSceneMouseEvent &  e)
overridevirtualnoexcept

Reimplemented from PackageEditorState.

◆ processGraphicsSceneLeftMouseButtonPressed()

bool processGraphicsSceneLeftMouseButtonPressed ( QGraphicsSceneMouseEvent &  e)
overridevirtualnoexcept

Reimplemented from PackageEditorState.

◆ processCopy()

bool processCopy ( )
overridevirtualnoexcept

Reimplemented from PackageEditorState.

◆ processRemove()

bool processRemove ( )
overridevirtualnoexcept

Reimplemented from PackageEditorState.

◆ processAbortCommand()

bool processAbortCommand ( )
overridevirtualnoexcept

Reimplemented from PackageEditorState.

◆ operator=()

PackageEditorState_Measure & operator= ( const PackageEditorState_Measure rhs)
delete

Member Data Documentation

◆ mTool

QScopedPointer<MeasureTool> mTool
private

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