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

The SchematicEditorState_AddImage class. More...

#include <schematiceditorstate_addimage.h>

+ Inheritance diagram for SchematicEditorState_AddImage:
+ Collaboration diagram for SchematicEditorState_AddImage:

Public Member Functions

 SchematicEditorState_AddImage ()=delete
 
 SchematicEditorState_AddImage (const SchematicEditorState_AddImage &other)=delete
 
 SchematicEditorState_AddImage (const Context &context) noexcept
 
virtual ~SchematicEditorState_AddImage () noexcept
 
virtual bool entry () noexcept override
 
virtual bool exit () noexcept override
 
virtual bool processAddImage (const QByteArray &data, const QString &format, const QString &basename) noexcept override
 
virtual bool processRotate (const Angle &rotation) noexcept override
 
virtual bool processGraphicsSceneMouseMoved (const GraphicsSceneMouseEvent &e) noexcept override
 
virtual bool processGraphicsSceneLeftMouseButtonPressed (const GraphicsSceneMouseEvent &e) noexcept override
 
virtual bool processGraphicsSceneRightMouseButtonReleased (const GraphicsSceneMouseEvent &e) noexcept override
 
SchematicEditorState_AddImageoperator= (const SchematicEditorState_AddImage &rhs)=delete
 
- Public Member Functions inherited from SchematicEditorState
 SchematicEditorState ()=delete
 
 SchematicEditorState (const SchematicEditorState &other)=delete
 
 SchematicEditorState (const Context &context, QObject *parent=nullptr) noexcept
 
virtual ~SchematicEditorState () noexcept
 
virtual bool processAddComponent (const QString &searchTerm=QString()) noexcept
 
virtual bool processAddComponent (const Uuid &cmp, const Uuid &symbVar) noexcept
 
virtual bool processSelectAll () noexcept
 
virtual bool processCut () noexcept
 
virtual bool processCopy () noexcept
 
virtual bool processPaste () noexcept
 
virtual bool processMove (const Point &delta) noexcept
 
virtual bool processMirror (Qt::Orientation orientation) noexcept
 
virtual bool processSnapToGrid () noexcept
 
virtual bool processResetAllTexts () noexcept
 
virtual bool processRemove () noexcept
 
virtual bool processEditProperties () noexcept
 
virtual bool processAbortCommand () noexcept
 
virtual bool processKeyPressed (const GraphicsSceneKeyEvent &e) noexcept
 
virtual bool processKeyReleased (const GraphicsSceneKeyEvent &e) noexcept
 
virtual bool processGraphicsSceneLeftMouseButtonReleased (const GraphicsSceneMouseEvent &e) noexcept
 
virtual bool processGraphicsSceneLeftMouseButtonDoubleClicked (const GraphicsSceneMouseEvent &e) noexcept
 
virtual bool processGridIntervalChanged (const PositiveLength &interval) noexcept
 
SchematicEditorStateoperator= (const SchematicEditorState &rhs)=delete
 

Private Types

enum class  State
 

Private Member Functions

bool start (const Point &pos, QByteArray data, QString format, QString basename) noexcept
 
void updateSize (const Point &pos) noexcept
 
bool finish (const Point &pos) noexcept
 
bool abort (bool showErrMsgBox) noexcept
 

Private Attributes

State mState
 
bool mUndoCmdActive
 
Image mCurrentProperties
 
std::unique_ptr< CmdImageEditmCurrentEditCmd
 
QPointer< SI_ImagemCurrentImage
 
qreal mCurrentImageAspectRatio
 
std::shared_ptr< ImageGraphicsItemmCurrentGraphicsItem
 

Additional Inherited Members

- Public Types inherited from SchematicEditorState
enum class  FindFlag
 
using Context = SchematicEditorFsm::Context
 
- Signals inherited from SchematicEditorState
void requestLeavingState ()
 Signal to indicate that the current tool should be exited.
 
- Protected Member Functions inherited from SchematicEditorState
SchematicGraphicsScenegetActiveSchematicScene () noexcept
 
PositiveLength getGridInterval () const noexcept
 
const LengthUnitgetLengthUnit () const noexcept
 
void abortBlockingToolsInOtherEditors () noexcept
 
bool execCmd (UndoCommand *cmd)
 
QWidget * parentWidget () noexcept
 
QList< std::shared_ptr< QGraphicsItem > > findItemsAtPos (const Point &pos, FindFlags flags, const QVector< std::shared_ptr< QGraphicsItem > > &except={}) noexcept
 
template<typename T = QGraphicsItem>
std::shared_ptr< T > findItemAtPos (const Point &pos, FindFlags flags, const QVector< std::shared_ptr< QGraphicsItem > > &except={}) noexcept
 
- Static Protected Member Functions inherited from SchematicEditorState
static const QSet< const Layer * > & getAllowedGeometryLayers () noexcept
 
- Protected Attributes inherited from SchematicEditorState
Context mContext
 
SchematicEditorFsmAdaptermAdapter
 

Detailed Description

Member Enumeration Documentation

◆ State

enum class State
strongprivate
Enumerator
Positioning 
Resizing 

Constructor & Destructor Documentation

◆ SchematicEditorState_AddImage() [1/3]

◆ SchematicEditorState_AddImage() [2/3]

◆ SchematicEditorState_AddImage() [3/3]

SchematicEditorState_AddImage ( const Context context)
explicitnoexcept

◆ ~SchematicEditorState_AddImage()

~SchematicEditorState_AddImage ( )
virtualnoexcept

Member Function Documentation

◆ entry()

bool entry ( )
overridevirtualnoexcept

Reimplemented from SchematicEditorState.

+ Here is the call graph for this function:

◆ exit()

bool exit ( )
overridevirtualnoexcept

Reimplemented from SchematicEditorState.

+ Here is the call graph for this function:

◆ processAddImage()

bool processAddImage ( const QByteArray &  data,
const QString &  format,
const QString &  basename 
)
overridevirtualnoexcept

Reimplemented from SchematicEditorState.

+ Here is the call graph for this function:

◆ processRotate()

bool processRotate ( const Angle rotation)
overridevirtualnoexcept

Reimplemented from SchematicEditorState.

◆ processGraphicsSceneMouseMoved()

bool processGraphicsSceneMouseMoved ( const GraphicsSceneMouseEvent e)
overridevirtualnoexcept

Reimplemented from SchematicEditorState.

+ Here is the call graph for this function:

◆ processGraphicsSceneLeftMouseButtonPressed()

bool processGraphicsSceneLeftMouseButtonPressed ( const GraphicsSceneMouseEvent e)
overridevirtualnoexcept

Reimplemented from SchematicEditorState.

+ Here is the call graph for this function:

◆ processGraphicsSceneRightMouseButtonReleased()

bool processGraphicsSceneRightMouseButtonReleased ( const GraphicsSceneMouseEvent e)
overridevirtualnoexcept

Reimplemented from SchematicEditorState.

+ Here is the call graph for this function:

◆ operator=()

SchematicEditorState_AddImage & operator= ( const SchematicEditorState_AddImage rhs)
delete

◆ start()

bool start ( const Point pos,
QByteArray  data,
QString  format,
QString  basename 
)
privatenoexcept
+ Here is the call graph for this function:

◆ updateSize()

void updateSize ( const Point pos)
privatenoexcept
+ Here is the call graph for this function:

◆ finish()

bool finish ( const Point pos)
privatenoexcept
+ Here is the call graph for this function:

◆ abort()

bool abort ( bool  showErrMsgBox)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ mState

State mState
private

◆ mUndoCmdActive

bool mUndoCmdActive
private

◆ mCurrentProperties

Image mCurrentProperties
private

◆ mCurrentEditCmd

std::unique_ptr<CmdImageEdit> mCurrentEditCmd
private

◆ mCurrentImage

QPointer<SI_Image> mCurrentImage
private

◆ mCurrentImageAspectRatio

qreal mCurrentImageAspectRatio
private

◆ mCurrentGraphicsItem

std::shared_ptr<ImageGraphicsItem> mCurrentGraphicsItem
private

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