20#ifndef LIBREPCB_EDITOR_CMDIMAGEADD_H
21#define LIBREPCB_EDITOR_CMDIMAGEADD_H
26#include "../undocommand.h"
39class TransactionalDirectory;
67 std::shared_ptr<Image> image,
68 const QByteArray& fileContent)
noexcept;
The Image class.
Definition image.h:49
Helper class to access a subdirectory of TransactionalFileSystem.
Definition transactionaldirectory.h:51
The CmdImageAdd class.
Definition cmdimageadd.h:50
void performRedo() override
Redo the command.
Definition cmdimageadd.cpp:83
ImageList & mList
Definition cmdimageadd.h:85
std::shared_ptr< Image > mImage
Definition cmdimageadd.h:87
void performUndo() override
Undo the command.
Definition cmdimageadd.cpp:76
TransactionalDirectory & mDirectory
Definition cmdimageadd.h:86
~CmdImageAdd() noexcept
Definition cmdimageadd.cpp:49
CmdImageAdd(const CmdImageAdd &other)=delete
bool performExecute() override
Execute the command the first time.
Definition cmdimageadd.cpp:56
const QByteArray mFileContent
Definition cmdimageadd.h:88
The UndoCommand class represents a command which you can undo/redo.
Definition undocommand.h:46
Definition occmodel.cpp:77