19#ifndef KIS_UNDO_ADAPTER_H_
20#define KIS_UNDO_ADAPTER_H_
39 virtual void notifyCommandAdded(KCommand * cmd) = 0;
40 virtual void notifyCommandExecuted(KCommand * cmd) = 0;
46 virtual ~KisUndoAdapter() {};
53 virtual KCommand * presentCommand() = 0;
54 virtual void addCommand(KCommand *cmd) = 0;
55 virtual void setUndo( bool undo) = 0;
56 virtual bool undo() const = 0;
57 virtual void beginMacro( const TQString& macroName) = 0;
58 virtual void endMacro() = 0;
61 KisUndoAdapter( const KisUndoAdapter&);
62 KisUndoAdapter& operator=( const KisUndoAdapter&);
Undo listeners want to be notified of undo and redo actions.
|