karbon

VDistributeCmd Class Reference

#include <vdistributecmd.h>

Inheritance diagram for VDistributeCmd:

VCommand VVisitor List of all members.

Detailed Description

A command for distributing objects.

Definition at line 29 of file vdistributecmd.h.


Public Types

enum  Distribute {
  DISTRIBUTE_HORIZONTAL_CENTER, DISTRIBUTE_HORIZONTAL_GAP, DISTRIBUTE_HORIZONTAL_LEFT, DISTRIBUTE_HORIZONTAL_RIGHT,
  DISTRIBUTE_VERTICAL_CENTER, DISTRIBUTE_VERTICAL_GAP, DISTRIBUTE_VERTICAL_BOTTOM, DISTRIBUTE_VERTICAL_TOP
}

Public Member Functions

 VDistributeCmd (VDocument *doc, Distribute distribute)
virtual ~VDistributeCmd ()
virtual void execute ()
virtual void unexecute ()
virtual bool changesSelection () const

Protected Member Functions

double getAvailableSpace (VObject *first, VObject *last, double extent)

Protected Attributes

Distribute m_distribute
QPtrList< VTranslateCmdm_trafoCmds

Member Function Documentation

void VDistributeCmd::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 39 of file vdistributecmd.cc.

void VDistributeCmd::unexecute (  )  [virtual]

Unexecutes the command.

All changes to the document have to be undone here.

Reimplemented from VCommand.

Definition at line 156 of file vdistributecmd.cc.

virtual bool VDistributeCmd::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 48 of file vdistributecmd.h.


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