![]() |
Scribus
Open source desktop publishing at your fingertips
|
#include <undotransaction.h>
Public Member Functions | |
UndoTransaction (TransactionData *data) | |
virtual bool | commit () |
virtual bool | cancel () |
bool | commit (const QString &targetName, QPixmap *targetPixmap, const QString &name="", const QString &description="", QPixmap *actionPixmap=0) |
![]() | |
Transaction (TransactionStateBase *data) | |
virtual | ~Transaction () |
operator bool () const | |
virtual void | markFailed () |
virtual void | reset () |
int | getState () const |
bool | isNull () const |
bool | isStarted () const |
bool | isOpened () const |
Additional Inherited Members | |
![]() | |
enum | Status { STATE_OPEN, STATE_WILLFAIL, STATE_FAILED, STATE_COMMITTED } |
![]() | |
QExplicitlySharedDataPointer< TransactionStateBase > | m_data |
Class which handles Undo transactions. No data, just methods.
|
virtual |
Cancels this transaction if in STATE_OPEN or STATE_WILLFAIL; otherwise do nothing Returns true iff the transaction was canceled.
Implements Transaction.
|
virtual |
Commits this transaction if in STATE_OPEN. If in STATE_WILLFAIL, cancel the transaction instead; otherwise do nothing. Returns true iff the transaction was committed or canceled.
Implements Transaction.