#include <command.h>
Inheritance diagram for Cmd:

Public Member Functions | |
| virtual | ~Cmd () |
| All Cmd based classes will have virtual destructor. | |
| virtual void | exec ()=0 |
| Command execution. This should save undo informations. | |
| virtual void | unExec ()=0 |
| Revert command execution using undo informations. | |
| 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 | |
| Cmd (FrameBuffer *pFB) | |
Protected Attributes | |
| FrameBuffer & | _fb |
Friends | |
| class | CmdHistory |
Definition at line 25 of file command.h.
| virtual Cmd::~Cmd | ( | ) | [inline, virtual] |
| Cmd::Cmd | ( | FrameBuffer * | pFB | ) | [inline, protected] |
| virtual void Cmd::exec | ( | ) | [pure virtual] |
Command execution. This should save undo informations.
Implemented in SlowUndoCmd, SlowUndoSelectCmd, PluginCmd, MacroCmd, BrushCmd, LineCmd, RectCmd, CircleCmd, EllipseCmd, TextCmd, SelectCmd, GrayScaleCmd, and InvertCmd.
Referenced by Image::operator<<().
| virtual void Cmd::unExec | ( | ) | [pure virtual] |
Revert command execution using undo informations.
Implemented in SlowUndoCmd, SlowUndoSelectCmd, MacroCmd, and SelectCmd.
| virtual std::string Cmd::name | ( | ) | [pure virtual] |
Command identification. This will appear in config file.
Implemented in SlowUndoCmd, SlowUndoSelectCmd, PluginCmd, MacroCmd, BrushCmd, LineCmd, RectCmd, CircleCmd, EllipseCmd, TextCmd, SelectCmd, GrayScaleCmd, and InvertCmd.
| virtual std::string Cmd::args | ( | ) | [pure virtual] |
Command export to text string. Needed for macro saving.
Implemented in SlowUndoCmd, SlowUndoSelectCmd, PluginCmd, MacroCmd, BrushCmd, PlacementCmd, TextCmd, SelectCmd, GrayScaleCmd, and InvertCmd.
friend class CmdHistory [friend] |
FrameBuffer& Cmd::_fb [protected] |
Frame buffer reference. All derived class should use this reference.
Definition at line 43 of file command.h.
Referenced by SlowUndoCmd::exec(), and SlowUndoCmd::unExec().
1.5.2