SelectCmd Class Reference

#include <draw.h>

Inheritance diagram for SelectCmd:

Cmd List of all members.

Public Member Functions

 SelectCmd (FrameBuffer *pFB)
 SelectCmd (FrameBuffer *pFB, const Rect &sel)
virtual void exec ()
 Command execution. This should save undo informations.
virtual void unExec ()
 Revert command execution using undo informations.
virtual std::string name ()
 Command identification. This will appear in config file.
virtual std::string args ()
 Command export to text string. Needed for macro saving.
 SelectCmd (FrameBuffer *pFB, const std::string &args)

Static Public Attributes

static const char *const szCmdName
 Command id string.

Detailed Description

Select command class. Design pattern command.

Definition at line 351 of file draw.h.


Constructor & Destructor Documentation

SelectCmd::SelectCmd ( FrameBuffer pFB  ) 

Construct select command using current image size as select size.

Parameters:
pFB Pointer to framebuffer to work with.

SelectCmd::SelectCmd ( FrameBuffer pFB,
const Rect sel 
)

Construct select command.

Parameters:
pFB Pointer to framebuffer to work with.
sel Selected area to select on execution.

SelectCmd::SelectCmd ( FrameBuffer pFB,
const std::string &  args 
)

Import select command.

Parameters:
pFB Pointer to frame buffer to work with.
args Data to import -- previously returned by SelectCmd::args() method.


Member Function Documentation

virtual void SelectCmd::exec (  )  [virtual]

Command execution. This should save undo informations.

Implements Cmd.

virtual void SelectCmd::unExec (  )  [virtual]

Revert command execution using undo informations.

Implements Cmd.

virtual std::string SelectCmd::name (  )  [inline, virtual]

Command identification. This will appear in config file.

Implements Cmd.

Definition at line 368 of file draw.h.

References szCmdName.

virtual std::string SelectCmd::args (  )  [virtual]

Command export to text string. Needed for macro saving.

Implements Cmd.


Member Data Documentation

const char* const SelectCmd::szCmdName [static]

Command id string.

Definition at line 378 of file draw.h.

Referenced by name().


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