20#ifndef LIBREPCB_EDITOR_CMDDRAGSELECTEDSYMBOLITEMS_H
21#define LIBREPCB_EDITOR_CMDDRAGSELECTEDSYMBOLITEMS_H
26#include "../../undocommandgroup.h"
27#include "../sym/fsm/symboleditorstate.h"
42class CmdSymbolPinEdit;
70 void mirror(Qt::Orientation orientation) noexcept;
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition: angle.h:78
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition: point.h:79
The CmdCircleEdit class.
Definition: cmdcircleedit.h:51
The CmdDragSelectedSymbolItems class.
Definition: cmddragselectedsymbolitems.h:52
CmdDragSelectedSymbolItems(const CmdDragSelectedSymbolItems &other)=delete
Point mDeltaPos
Definition: cmddragselectedsymbolitems.h:87
bool mHasOffTheGridElements
Definition: cmddragselectedsymbolitems.h:91
void translate(const Point &deltaPos) noexcept
Definition: cmddragselectedsymbolitems.cpp:157
const SymbolEditorState::Context & mContext
Definition: cmddragselectedsymbolitems.h:85
QList< CmdSymbolPinEdit * > mPinEditCmds
Definition: cmddragselectedsymbolitems.h:94
~CmdDragSelectedSymbolItems() noexcept
Definition: cmddragselectedsymbolitems.cpp:118
Angle mDeltaRot
Definition: cmddragselectedsymbolitems.h:88
void mirror(Qt::Orientation orientation) noexcept
Definition: cmddragselectedsymbolitems.cpp:192
QList< CmdPolygonEdit * > mPolygonEditCmds
Definition: cmddragselectedsymbolitems.h:96
bool hasOffTheGridElements() const noexcept
Definition: cmddragselectedsymbolitems.h:63
CmdDragSelectedSymbolItems()=delete
bool mSnappedToGrid
Definition: cmddragselectedsymbolitems.h:90
int getSelectedItemsCount() const noexcept
Definition: cmddragselectedsymbolitems.cpp:126
void snapToGrid() noexcept
Definition: cmddragselectedsymbolitems.cpp:135
QList< CmdTextEdit * > mTextEditCmds
Definition: cmddragselectedsymbolitems.h:97
bool performExecute() override
Execute the command the first time.
Definition: cmddragselectedsymbolitems.cpp:212
bool mMirrored
Definition: cmddragselectedsymbolitems.h:89
QList< CmdCircleEdit * > mCircleEditCmds
Definition: cmddragselectedsymbolitems.h:95
void rotate(const Angle &angle) noexcept
Definition: cmddragselectedsymbolitems.cpp:176
void setDeltaToStartPos(const Point &delta) noexcept
Definition: cmddragselectedsymbolitems.cpp:152
Point mCenterPos
Definition: cmddragselectedsymbolitems.h:86
void deleteAllCommands() noexcept
Definition: cmddragselectedsymbolitems.cpp:242
The CmdPolygonEdit class.
Definition: cmdpolygonedit.h:51
The CmdSymbolPinEdit class.
Definition: cmdsymbolpinedit.h:48
The CmdTextEdit class.
Definition: cmdtextedit.h:51
The SymbolEditorState class is the base class of all symbol editor FSM states.
Definition: symboleditorstate.h:54
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: symboleditorfsm.h:76