22#include "vcleanupcmd.h"
27 : VCommand( doc, i18n( "Clean Up" ) )
31VCleanUpCmd::~VCleanUpCmd()
42VCleanUpCmd::unexecute()
47VCleanUpCmd::visitVLayer( VLayer& layer )
49 VObjectListIterator itr( layer. objects() );
50 for( ; itr.current(); ++itr )
54 delete( itr.current() );
55 layer. take( *itr.current() );
The base class for all karbon commands.
All non-visual, static doc info is in here.
void take(const VObject &object) Removes the reference to child object, not the object itself.
const VObjectList & objects() const Read only access to the grouped objects.
VLayer manages a set of vobjects.
@ deleted deleted, nearly dead
|