karbon

VDeleteCmd Class Reference

#include <vdeletecmd.h>

Inheritance diagram for VDeleteCmd:

VCommand VVisitor

List of all members.


Detailed Description

A class to provide undo/redoable deletion of VObjects.

Definition at line 31 of file vdeletecmd.h.


Public Member Functions

 VDeleteCmd (VDocument *part)
 VDeleteCmd (VDocument *part, VObject *object)
virtual void execute ()
virtual void unexecute ()
virtual bool changesSelection () const

Protected Attributes

VSelectionm_selection

Member Function Documentation

void VDeleteCmd::execute (  )  [virtual]

Executes the command.

All the changes to the document are done here. All commands have to implement this function.

Implements VCommand.

Definition at line 48 of file vdeletecmd.cc.

void VDeleteCmd::unexecute (  )  [virtual]

Unexecutes the command.

All changes to the document have to be undone here.

Reimplemented from VCommand.

Definition at line 61 of file vdeletecmd.cc.

virtual bool VDeleteCmd::changesSelection (  )  const [inline, virtual]

Returns if the command changes the actual document selection.

This flag is checked to determine if the document has to be redrawn.

Returns:
true if the selection is changed, else false

Reimplemented from VCommand.

Definition at line 41 of file vdeletecmd.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys