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

kig

Public Member Functions | Static Public Member Functions | List of all members
KigCommand Class Reference

#include <kig_commands.h>

Inheritance diagram for KigCommand:
Inheritance graph
[legend]

Public Member Functions

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

Static Public Member Functions

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

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.

Constructor & Destructor Documentation

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

Definition at line 48 of file kig_commands.cpp.

KigCommand::~KigCommand ( )

Definition at line 53 of file kig_commands.cpp.

Member Function Documentation

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 106 of file kig_commands.cpp.

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 86 of file kig_commands.cpp.

void KigCommand::addTask ( KigCommandTask *  t)

Definition at line 74 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 118 of file kig_commands.cpp.

void KigCommand::redo ( )

Definition at line 60 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 93 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 79 of file kig_commands.cpp.

void KigCommand::undo ( )

Definition at line 67 of file kig_commands.cpp.


The documentation for this class was generated from the following files:
  • kig_commands.h
  • kig_commands.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kig

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

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal