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

step/stepcore

  • StepCore
  • ItemGroup
Public Member Functions | List of all members
StepCore::ItemGroup Class Reference
World

#include <world.h>

Inheritance diagram for StepCore::ItemGroup:
Inheritance graph
[legend]

Public Member Functions

 ItemGroup (const QString &name=QString())
 
 ItemGroup (const ItemGroup &group)
 
 ~ItemGroup ()
 
virtual void addItem (Item *item)
 
ItemList allItems () const
 
void allItems (ItemList *items) const
 
Item * childItem (int index) const
 
Item * childItem (const QString &name) const
 
int childItemCount () const
 
int childItemIndex (const Item *item) const
 
void clear ()
 
virtual void deleteItem (Item *item)
 
Item * item (const QString &name) const
 
const ItemList & items () const
 
ItemGroup & operator= (const ItemGroup &group)
 
virtual void removeItem (Item *item)
 
void setWorld (World *world)
 
void worldItemRemoved (Item *item)
 
- Public Member Functions inherited from StepCore::Item
 Item (const QString &name=QString())
 
 Item (const Item &item)
 
virtual ~Item ()
 
Color color () const
 
void deleteObjectErrors ()
 
ItemGroup * group () const
 
ObjectErrors * objectErrors ()
 
Item & operator= (const Item &item)
 
void setColor (Color color)
 
virtual void setGroup (ItemGroup *group)
 
ObjectErrors * tryGetObjectErrors () const
 
World * world () const
 
virtual void worldItemRemoved (Item *item STEPCORE_UNUSED)
 
- Public Member Functions inherited from StepCore::Object
 Object (const QString &name=QString())
 
virtual ~Object ()
 
const QString & name () const
 
void setName (const QString &name)
 

Additional Inherited Members

- Protected Member Functions inherited from StepCore::Item
virtual ObjectErrors * createObjectErrors ()
 
- Protected Attributes inherited from StepCore::Object
QString _name
 

Detailed Description

Groups several items together.

Definition at line 309 of file world.h.

Constructor & Destructor Documentation

StepCore::ItemGroup::ItemGroup ( const QString &  name = QString())
inline

Constructs empty group.

Definition at line 315 of file world.h.

StepCore::ItemGroup::ItemGroup ( const ItemGroup &  group)

Constructs a copy of the group (deep copy)

Definition at line 73 of file world.cc.

StepCore::ItemGroup::~ItemGroup ( )

Destroys the group and all its subitems.

Definition at line 132 of file world.cc.

Member Function Documentation

void StepCore::ItemGroup::addItem ( Item *  item)
virtual

Add new item to the group.

Definition at line 94 of file world.cc.

ItemList StepCore::ItemGroup::allItems ( ) const
inline

Get list of all items in the ItemGroup.

Note
This operation takes long time since it recursively traverses all child groups

Definition at line 331 of file world.h.

void StepCore::ItemGroup::allItems ( ItemList *  items) const

Get list of all items in the ItemGroup.

Parameters
itemsArray to store items
Note
This operation takes long time since it recursively traverses all child groups

Definition at line 205 of file world.cc.

Item* StepCore::ItemGroup::childItem ( int  index) const
inline

Get direct child item by its index.

Definition at line 353 of file world.h.

Item * StepCore::ItemGroup::childItem ( const QString &  name) const

Get direct child item by its name.

Definition at line 183 of file world.cc.

int StepCore::ItemGroup::childItemCount ( ) const
inline

Get direct child count.

Definition at line 351 of file world.h.

int StepCore::ItemGroup::childItemIndex ( const Item *  item) const

Finds direct child item in items()

Definition at line 176 of file world.cc.

void StepCore::ItemGroup::clear ( )

Deletes all items.

Definition at line 116 of file world.cc.

virtual void StepCore::ItemGroup::deleteItem ( Item *  item)
inlinevirtual

Delete item from the group (it actually deletes item)

Definition at line 343 of file world.h.

Item * StepCore::ItemGroup::item ( const QString &  name) const

Get any descendant item by its name.

Definition at line 191 of file world.cc.

const ItemList& StepCore::ItemGroup::items ( ) const
inline

Get list of all direct child items in the ItemGroup.

Definition at line 326 of file world.h.

ItemGroup & StepCore::ItemGroup::operator= ( const ItemGroup &  group)

Assignment operator (deep copy)

Warning
Do not call this on groups already attached to the world

Definition at line 137 of file world.cc.

void StepCore::ItemGroup::removeItem ( Item *  item)
virtual

Remove item from the group (you should delete item youself)

Definition at line 104 of file world.cc.

void StepCore::ItemGroup::setWorld ( World *  world)
virtual

Recursively call setWorld for all children objects.

Reimplemented from StepCore::Item.

Definition at line 79 of file world.cc.

void StepCore::ItemGroup::worldItemRemoved ( Item *  item)

Recursively call worldItemRemoved for all children objects.

Definition at line 87 of file world.cc.


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

KDE's Doxygen guidelines are available online.

step/stepcore

Skip menu "step/stepcore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

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