LineCmd Class Reference

#include <draw.h>

Inheritance diagram for LineCmd:

PlacementCmd SlowUndoSelectCmd Cmd List of all members.

Public Member Functions

 LineCmd (FrameBuffer *pFB, Rect placement, DrawContext dc, bool bBack=false)
virtual void exec ()
 Command execution. This should save undo informations.
virtual std::string name ()
 Command identification. This will appear in config file.
 LineCmd (FrameBuffer *pFB, const std::string &args)

Static Public Attributes

static const char *const szCmdName
 command id string

Detailed Description

Line draw command class. Design pattern command.

Definition at line 162 of file draw.h.


Constructor & Destructor Documentation

LineCmd::LineCmd ( FrameBuffer pFB,
Rect  placement,
DrawContext  dc,
bool  bBack = false 
) [inline]

Construct line command.

Parameters:
pFB Pointer to framebuffer to work with.
placement Command placement.
dc Current draw context.
bBack Give true to use background brush.

Definition at line 171 of file draw.h.

LineCmd::LineCmd ( FrameBuffer pFB,
const std::string &  args 
) [inline]

Import line command.

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

Definition at line 183 of file draw.h.


Member Function Documentation

virtual void LineCmd::exec (  )  [virtual]

Command execution. This should save undo informations.

Reimplemented from SlowUndoSelectCmd.

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

Command identification. This will appear in config file.

Implements SlowUndoSelectCmd.

Definition at line 175 of file draw.h.

References szCmdName.


Member Data Documentation

const char* const LineCmd::szCmdName [static]

command id string

Definition at line 176 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