Public Member Functions | Protected Member Functions | Protected Attributes

hipp::ShapeCommand Class Reference

#include <ShapeCommand.h>

Inheritance diagram for hipp::ShapeCommand:
hipp::BackgroundCommand hipp::ChangeShapePropertyCommand hipp::ClearShapesCommand hipp::CopyShapeCommand hipp::CreatePolylineCommand hipp::CutShapeCommand hipp::DeleteShapeCommand hipp::FillShapeCommand hipp::LineWidthCommand hipp::MoveShapeCommand hipp::PasteShapeCommand hipp::ToggleCommand hipp::TransformToCircleCommand hipp::TransformToLineCommand hipp::TransformToRectCommand hipp::ZoomShapeCommand

List of all members.

Public Member Functions

 ShapeCommand (bool canUndo, const wxString &name, HippDocument *doc)
virtual ~ShapeCommand ()
virtual bool Do ()=0
virtual bool Undo ()=0

Protected Member Functions

bool replaceShape (HippShape *oldShape, HippShape *newShape)

Protected Attributes

HippDocumentm_doc
bool isDone
HippFrameframe

Constructor & Destructor Documentation

ShapeCommand::ShapeCommand ( bool  canUndo,
const wxString &  name,
HippDocument doc 
)
ShapeCommand::~ShapeCommand (  )  [virtual]

Member Function Documentation

bool ShapeCommand::replaceShape ( HippShape oldShape,
HippShape newShape 
) [protected]

This functions finds the oldShape in the current document, and replaces it with the newShape. It also updates the views, marks the document as modified and selects the newShape in the view.

Returns:
Whether the oldShape was found in the document.

Member Data Documentation

bool hipp::ShapeCommand::isDone [protected]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines