20#ifndef LIBREPCB_EDITOR_PACKAGEEDITORSTATE_RENUMBERPADS_H
21#define LIBREPCB_EDITOR_PACKAGEEDITORSTATE_RENUMBERPADS_H
42class FootprintPadGraphicsItem;
63 bool entry() noexcept override;
64 bool exit() noexcept override;
66 const noexcept override;
72 QGraphicsSceneMouseEvent& e) noexcept override;
74 QGraphicsSceneMouseEvent& e) noexcept override;
81 bool start() noexcept;
The PackagePad class represents one logical pad of a package.
Definition: packagepad.h:47
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition: point.h:79
The Uuid class is a replacement for QUuid to get UUID strings without {} braces.
Definition: uuid.h:58
The PackageEditorState_ReNumberPads class.
Definition: packageeditorstate_renumberpads.h:51
bool processGraphicsSceneMouseMoved(QGraphicsSceneMouseEvent &e) noexcept override
Definition: packageeditorstate_renumberpads.cpp:148
void finish() noexcept
Definition: packageeditorstate_renumberpads.cpp:356
void updateCurrentPad(bool force=false) noexcept
Definition: packageeditorstate_renumberpads.cpp:222
int findIndexOfPad(const Uuid &uuid) const noexcept
Definition: packageeditorstate_renumberpads.cpp:368
~PackageEditorState_ReNumberPads() noexcept
Definition: packageeditorstate_renumberpads.cpp:58
std::shared_ptr< FootprintPadGraphicsItem > mCurrentPad
Definition: packageeditorstate_renumberpads.h:94
bool processKeyPressed(const QKeyEvent &e) noexcept override
Definition: packageeditorstate_renumberpads.cpp:129
PackageEditorState_ReNumberPads()=delete
Qt::KeyboardModifiers mCurrentModifiers
Definition: packageeditorstate_renumberpads.h:98
bool mUndoCmdActive
Definition: packageeditorstate_renumberpads.h:88
Point mCurrentPos
Definition: packageeditorstate_renumberpads.h:97
PackageEditorState_ReNumberPads(const PackageEditorState_ReNumberPads &other)=delete
QScopedPointer< UndoCommandGroup > mTmpCmd
Definition: packageeditorstate_renumberpads.h:95
bool start() noexcept
Definition: packageeditorstate_renumberpads.cpp:179
int mAssignedFootprintPadCount
Definition: packageeditorstate_renumberpads.h:89
bool exit() noexcept override
Definition: packageeditorstate_renumberpads.cpp:93
bool commitCurrentPad() noexcept
Definition: packageeditorstate_renumberpads.cpp:339
std::shared_ptr< FootprintPadGraphicsItem > mPreviousPad
Definition: packageeditorstate_renumberpads.h:93
QSet< EditorWidgetBase::Feature > getAvailableFeatures() const noexcept override
Definition: packageeditorstate_renumberpads.cpp:119
bool processKeyReleased(const QKeyEvent &e) noexcept override
Definition: packageeditorstate_renumberpads.cpp:143
bool processGraphicsSceneLeftMouseButtonPressed(QGraphicsSceneMouseEvent &e) noexcept override
Definition: packageeditorstate_renumberpads.cpp:158
QVector< std::shared_ptr< PackagePad > > mPackagePads
Definition: packageeditorstate_renumberpads.h:91
bool entry() noexcept override
Definition: packageeditorstate_renumberpads.cpp:65
The PackageEditorState class is the base class of all package editor FSM states.
Definition: packageeditorstate.h:52
The UndoCommandGroup class makes it possible to pack multiple undo commands together (it acts as a pa...
Definition: undocommandgroup.h:44
Definition: occmodel.cpp:77
Definition: packageeditorfsm.h:90