20#ifndef LIBREPCB_EDITOR_SYMBOLEDITORSTATE_ADDIMAGE_H
21#define LIBREPCB_EDITOR_SYMBOLEDITORSTATE_ADDIMAGE_H
41class ImageGraphicsItem;
61 bool entry() noexcept override;
62 bool exit() noexcept override;
73 const QString& basename) noexcept override;
80 bool start(const
Point& pos, QByteArray data, QString format,
81 QString basename) noexcept;
84 bool abort(
bool showErrMsgBox) noexcept;
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition angle.h:76
The Image class.
Definition image.h:49
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition point.h:78
The SymbolEditorState_AddImage class.
Definition symboleditorstate_addimage.h:50
bool processGraphicsSceneMouseMoved(const GraphicsSceneMouseEvent &e) noexcept override
Definition symboleditorstate_addimage.cpp:96
bool processGraphicsSceneRightMouseButtonReleased(const GraphicsSceneMouseEvent &e) noexcept override
Definition symboleditorstate_addimage.cpp:134
bool finish(const Point &pos) noexcept
Definition symboleditorstate_addimage.cpp:247
State mState
Definition symboleditorstate_addimage.h:90
bool processGraphicsSceneLeftMouseButtonPressed(const GraphicsSceneMouseEvent &e) noexcept override
Definition symboleditorstate_addimage.cpp:114
SymbolEditorState_AddImage()=delete
State
Definition symboleditorstate_addimage.h:87
std::shared_ptr< Image > mCurrentImage
Definition symboleditorstate_addimage.h:98
Image mCurrentProperties
Definition symboleditorstate_addimage.h:94
bool mUndoCmdActive
Definition symboleditorstate_addimage.h:91
bool processRotate(const Angle &rotation) noexcept override
Definition symboleditorstate_addimage.cpp:140
std::unique_ptr< CmdImageEdit > mCurrentEditCmd
Definition symboleditorstate_addimage.h:97
void updateSize(const Point &pos) noexcept
Definition symboleditorstate_addimage.cpp:235
bool abort(bool showErrMsgBox) noexcept
Definition symboleditorstate_addimage.cpp:271
bool exit() noexcept override
Definition symboleditorstate_addimage.cpp:81
~SymbolEditorState_AddImage() noexcept
Definition symboleditorstate_addimage.cpp:64
SymbolEditorState_AddImage(const SymbolEditorState_AddImage &other)=delete
std::shared_ptr< ImageGraphicsItem > mCurrentGraphicsItem
Definition symboleditorstate_addimage.h:100
qreal mCurrentImageAspectRatio
Definition symboleditorstate_addimage.h:99
bool processAddImage(const QByteArray &data, const QString &format, const QString &basename) noexcept override
Definition symboleditorstate_addimage.cpp:150
bool entry() noexcept override
Definition symboleditorstate_addimage.cpp:72
bool start(const Point &pos, QByteArray data, QString format, QString basename) noexcept
Definition symboleditorstate_addimage.cpp:162
The SymbolEditorState class is the base class of all symbol editor FSM states.
Definition symboleditorstate.h:56
Definition occmodel.cpp:77
Definition graphicsscene.h:45
Definition symboleditorfsm.h:79