SlowUndoCmd Class Reference

#include <command.h>

Inheritance diagram for SlowUndoCmd:

Cmd PluginCmd List of all members.

Public Member Functions

virtual void exec ()
 Save current frame buffer as undo information.
virtual void unExec ()
 Restore saved frame buffer.
virtual std::string name ()=0
 Command identification. This will appear in config file.
virtual std::string args ()=0
 Command export to text string. Needed for macro saving.

Protected Member Functions

 SlowUndoCmd (FrameBuffer *pFB)

Detailed Description

Very simple (and slow) undo for commands. This class save whole frame buffer on exec() method call. This is used for (untrusted) plugin call.

Definition at line 56 of file command.h.


Constructor & Destructor Documentation

SlowUndoCmd::SlowUndoCmd ( FrameBuffer pFB  )  [inline, protected]

Initialize base.

Parameters:
pFB Pointer to frame buffer to work with.

Definition at line 68 of file command.h.


Member Function Documentation

virtual void SlowUndoCmd::exec (  )  [inline, virtual]

Save current frame buffer as undo information.

Implements Cmd.

Reimplemented in PluginCmd.

Definition at line 58 of file command.h.

References Cmd::_fb.

virtual void SlowUndoCmd::unExec (  )  [inline, virtual]

Restore saved frame buffer.

Implements Cmd.

Definition at line 59 of file command.h.

References Cmd::_fb.

virtual std::string SlowUndoCmd::name (  )  [pure virtual]

Command identification. This will appear in config file.

Implements Cmd.

Implemented in PluginCmd.

virtual std::string SlowUndoCmd::args (  )  [pure virtual]

Command export to text string. Needed for macro saving.

Implements Cmd.

Implemented in PluginCmd.


The documentation for this class was generated from the following file:
Generated on Wed Aug 29 00:01:04 2007 for GED 2006 by  doxygen 1.5.2