• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdeedu
  • Sitemap
  • Contact Us
 

kig

KigCommand Class Reference

#include <kig_commands.h>

Inheritance diagram for KigCommand:

Inheritance graph
[legend]

List of all members.


Detailed Description

a KigCommand represents almost every action performed in Kig.

Used mainly in the Undo/Redo stuff...

Definition at line 44 of file kig_commands.h.


Public Member Functions

void addTask (KigCommandTask *)
 KigCommand (KigPart &inDoc, const QString &name)
void redo ()
void undo ()
 ~KigCommand ()

Static Public Member Functions

static KigCommand * addCommand (KigPart &doc, ObjectHolder *os)
static KigCommand * addCommand (KigPart &doc, const std::vector< ObjectHolder * > &os)
static KigCommand * changeCoordSystemCommand (KigPart &doc, CoordinateSystem *s)
static KigCommand * removeCommand (KigPart &doc, ObjectHolder *o)
static KigCommand * removeCommand (KigPart &doc, const std::vector< ObjectHolder * > &os)

Constructor & Destructor Documentation

KigCommand::KigCommand ( KigPart &  inDoc,
const QString &  name 
)

Definition at line 47 of file kig_commands.cpp.

KigCommand::~KigCommand (  ) 

Definition at line 52 of file kig_commands.cpp.


Member Function Documentation

KigCommand * KigCommand::addCommand ( KigPart &  doc,
ObjectHolder *  os 
) [static]

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 85 of file kig_commands.cpp.

KigCommand * KigCommand::addCommand ( KigPart &  doc,
const std::vector< ObjectHolder * > &  os 
) [static]

To avoid confusion, this doesn't add a command to anything, this creates an AddCommand ;).

Definition at line 105 of file kig_commands.cpp.

void KigCommand::addTask ( KigCommandTask *  t  ) 

Definition at line 73 of file kig_commands.cpp.

KigCommand * KigCommand::changeCoordSystemCommand ( KigPart &  doc,
CoordinateSystem *  s 
) [static]

This creates directly a command to change the coordinate system to s .

See also:
ChangeCoordSystemTask

Definition at line 117 of file kig_commands.cpp.

void KigCommand::redo (  ) 

Reimplemented from QUndoCommand.

Definition at line 59 of file kig_commands.cpp.

KigCommand * KigCommand::removeCommand ( KigPart &  doc,
ObjectHolder *  o 
) [static]

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 78 of file kig_commands.cpp.

KigCommand * KigCommand::removeCommand ( KigPart &  doc,
const std::vector< ObjectHolder * > &  os 
) [static]

make sure that when you delete something, you are also deleting its parents.

This class assumes you've done that. KigDocument::delObjects() takes care of this for you.

Definition at line 92 of file kig_commands.cpp.

void KigCommand::undo (  ) 

Reimplemented from QUndoCommand.

Definition at line 66 of file kig_commands.cpp.


The documentation for this class was generated from the following files:
  • kig_commands.h
  • kig_commands.cpp

kig

Skip menu "kig"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal