Public Member Functions | |
BitmapReplaceCommand (const BitmapImage *backupBitmap, const int undoLayerId, const QString &description, Editor *editor, QUndoCommand *parent=nullptr) | |
void | undo () override |
void | redo () override |
Public Member Functions inherited from UndoRedoCommand | |
UndoRedoCommand (Editor *editor, QUndoCommand *parent=nullptr) | |
Public Member Functions inherited from QUndoCommand | |
QUndoCommand (QUndoCommand *parent) | |
QUndoCommand (const QString &text, QUndoCommand *parent) | |
virtual void | undo () |
virtual void | redo () |
QString | text () const const |
QString | actionText () const const |
void | setText (const QString &text) |
bool | isObsolete () const const |
void | setObsolete (bool obsolete) |
virtual int | id () const const |
virtual bool | mergeWith (const QUndoCommand *command) |
int | childCount () const const |
const QUndoCommand * | child (int index) const const |
Private Attributes | |
int | undoLayerId = 0 |
int | redoLayerId = 0 |
BitmapImage | undoBitmap |
BitmapImage | redoBitmap |
Additional Inherited Members | |
Protected Member Functions inherited from UndoRedoCommand | |
Editor * | editor () |
bool | isFirstRedo () const |
void | setFirstRedo (const bool state) |
Definition at line 54 of file undoredocommand.h.
BitmapReplaceCommand::BitmapReplaceCommand | ( | const BitmapImage * | backupBitmap, |
const int | undoLayerId, | ||
const QString & | description, | ||
Editor * | editor, | ||
QUndoCommand * | parent = nullptr |
||
) |
Definition at line 41 of file undoredocommand.cpp.
|
overridevirtual |
Reimplemented from QUndoCommand.
Definition at line 69 of file undoredocommand.cpp.
|
overridevirtual |
Reimplemented from QUndoCommand.
Definition at line 59 of file undoredocommand.cpp.
|
private |
Definition at line 72 of file undoredocommand.h.
|
private |
Definition at line 69 of file undoredocommand.h.
|
private |
Definition at line 71 of file undoredocommand.h.
|
private |
Definition at line 68 of file undoredocommand.h.