20#ifndef LIBREPCB_EDITOR_PACKAGEEDITORSTATE_H
21#define LIBREPCB_EDITOR_PACKAGEEDITORSTATE_H
26#include "../../../utils/toolbarproxy.h"
65 virtual
bool entry() noexcept {
return true; }
66 virtual bool exit() noexcept {
return true; }
80 QGraphicsSceneMouseEvent& e)
noexcept {
85 QGraphicsSceneMouseEvent& e)
noexcept {
90 QGraphicsSceneMouseEvent& e)
noexcept {
95 QGraphicsSceneMouseEvent& e)
noexcept {
100 QGraphicsSceneMouseEvent& e)
noexcept {
117 Q_UNUSED(orientation);
123 Q_UNUSED(orientation);
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition: angle.h:78
The Layer class provides all supported geometry layers.
Definition: layer.h:42
The LengthUnit class represents a length unit (millimeters, inches,...) and provides some useful meth...
Definition: lengthunit.h:60
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition: point.h:79
The PackageEditorState class is the base class of all package editor FSM states.
Definition: packageeditorstate.h:52
virtual bool processEditProperties() noexcept
Definition: packageeditorstate.h:127
const PositiveLength & getGridInterval() const noexcept
Definition: packageeditorstate.cpp:52
virtual bool processAbortCommand() noexcept
Definition: packageeditorstate.h:131
virtual bool processGraphicsSceneLeftMouseButtonDoubleClicked(QGraphicsSceneMouseEvent &e) noexcept
Definition: packageeditorstate.h:94
virtual bool exit() noexcept
Definition: packageeditorstate.h:66
void statusBarMessageChanged(const QString &message, int timeoutMs=-1)
const LengthUnit & getLengthUnit() const noexcept
Definition: packageeditorstate.cpp:56
virtual bool processGenerateCourtyard() noexcept
Definition: packageeditorstate.h:129
virtual bool processKeyPressed(const QKeyEvent &e) noexcept
Definition: packageeditorstate.h:71
virtual bool processSnapToGrid() noexcept
Definition: packageeditorstate.h:121
virtual QSet< EditorWidgetBase::Feature > getAvailableFeatures() const noexcept=0
virtual bool processMove(const Point &delta)
Definition: packageeditorstate.h:108
PackageEditorState(const PackageEditorState &other)=delete
static const QSet< const Layer * > & getAllowedCircleAndPolygonLayers() noexcept
Definition: packageeditorstate.cpp:96
virtual bool entry() noexcept
Definition: packageeditorstate.h:65
virtual bool processMoveAlign() noexcept
Definition: packageeditorstate.h:120
virtual bool processSelectAll() noexcept
Definition: packageeditorstate.h:104
virtual bool processGraphicsSceneRightMouseButtonReleased(QGraphicsSceneMouseEvent &e) noexcept
Definition: packageeditorstate.h:99
static const QSet< const Layer * > & getAllowedTextLayers() noexcept
Definition: packageeditorstate.cpp:60
virtual bool processGraphicsSceneLeftMouseButtonReleased(QGraphicsSceneMouseEvent &e) noexcept
Definition: packageeditorstate.h:89
virtual bool processRotate(const Angle &rotation) noexcept
Definition: packageeditorstate.h:112
virtual bool processImportDxf() noexcept
Definition: packageeditorstate.h:130
virtual bool processKeyReleased(const QKeyEvent &e) noexcept
Definition: packageeditorstate.h:75
Context & mContext
Definition: packageeditorstate.h:148
virtual bool processGraphicsSceneMouseMoved(QGraphicsSceneMouseEvent &e) noexcept
Definition: packageeditorstate.h:79
PackageEditorState()=delete
PackageEditorState & operator=(const PackageEditorState &rhs)=delete
virtual bool processGraphicsSceneLeftMouseButtonPressed(QGraphicsSceneMouseEvent &e) noexcept
Definition: packageeditorstate.h:84
virtual bool processMirror(Qt::Orientation orientation) noexcept
Definition: packageeditorstate.h:116
virtual bool processGenerateOutline() noexcept
Definition: packageeditorstate.h:128
virtual ~PackageEditorState() noexcept
Definition: packageeditorstate.cpp:45
virtual bool processCopy() noexcept
Definition: packageeditorstate.h:106
virtual bool processCut() noexcept
Definition: packageeditorstate.h:105
virtual bool processFlip(Qt::Orientation orientation) noexcept
Definition: packageeditorstate.h:122
virtual bool processPaste() noexcept
Definition: packageeditorstate.h:107
virtual bool processRemove() noexcept
Definition: packageeditorstate.h:126
void availableFeaturesChanged()
Definition: occmodel.cpp:77
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition: length.h:812
Definition: packageeditorfsm.h:90