Logo Search packages:      
Sourcecode: ktechlab version File versions  Download package

void Component::removeItem (  )  [virtual, slot, inherited]

Remove the item and associated nodes. It appends the item to the ICNDocument's delete list, so you must call ICNDocument::flushDeleteList() after calling this (and possible ICNDocument::clearDeleteList() befor calling it) The virtual function void handleRemove() is called to allow any child classes to clear up any neccessary data (which doesn't do anything by default), before CNItem does the rest

Reimplemented from CNItem.

Reimplemented in ECSubcircuit.

Definition at line 78 of file component.cpp.

References Simulator::detachComponent(), and CNItem::removeItem().

Referenced by ECSubcircuit::removeItem().

{
      if (b_deleted)
            return;
      Simulator::self()->detachComponent(this);
      CNItem::removeItem();
}


Generated by  Doxygen 1.6.0   Back to index