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

kig

Public Member Functions | List of all members
MonitorDataObjects Class Reference

#include <kig_commands.h>

Public Member Functions

 MonitorDataObjects (const std::vector< ObjectCalcer * > &objs)
 
 MonitorDataObjects (ObjectCalcer *c)
 
 ~MonitorDataObjects ()
 
void finish (KigCommand *comm)
 
void monitor (const std::vector< ObjectCalcer * > &objs)
 

Detailed Description

this class monitors a set of DataObjects for changes and returns an appropriate ChangeObjectImpsCommand if necessary.

E.g. MovingMode wants to move certain objects, so it monitors all the parents of the explicitly moving objects:

MonitorDataObjects mon( getAllParents( emo ) );

It then moves them around, and when it is finished, it asks to add the KigCommandTasks to a KigCommand, and applies that..

KigCommand* comm = new KigCommand( doc, i18n( "Move Stuff" ) );
mon.finish( comm );

Definition at line 153 of file kig_commands.h.

Constructor & Destructor Documentation

MonitorDataObjects::MonitorDataObjects ( const std::vector< ObjectCalcer * > &  objs)

all the DataObjects in objs will be watched.

Definition at line 211 of file kig_commands.cpp.

MonitorDataObjects::MonitorDataObjects ( ObjectCalcer *  c)

Definition at line 384 of file kig_commands.cpp.

MonitorDataObjects::~MonitorDataObjects ( )

Definition at line 243 of file kig_commands.cpp.

Member Function Documentation

void MonitorDataObjects::finish ( KigCommand *  comm)

add the generated KigCommandTasks to the command comm .

monitoring stops after this is called..

Definition at line 227 of file kig_commands.cpp.

void MonitorDataObjects::monitor ( const std::vector< ObjectCalcer * > &  objs)

add objs to the list of objs to be watched, and save their current imp's.

Definition at line 217 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