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

void ICNDocument::deleteSelection (  )  [virtual, slot]

Deletes all items in the selected item list, along with associated connectors, etc, and adds the operation to the undo list

Reimplemented from ItemDocument.

Reimplemented in PinMapDocument.

Definition at line 1273 of file icndocument.cpp.

References CMManager::cancelCurrentManipulation(), CNItemGroup::deleteAllItems(), flushDeleteList(), ItemGroup::isEmpty(), ItemDocument::itemUnselected(), requestRerouteInvalidatedConnectors(), ItemDocument::requestStateSave(), and Document::setModified().

Referenced by PinMapDocument::deleteSelection().

{
      // End whatever editing mode we are in, as we don't want to start editing
      // something that is about to no longer exist...
      m_cmManager->cancelCurrentManipulation();
      
      if ( m_selectList->isEmpty() )
            return;
      
      m_selectList->deleteAllItems();
      flushDeleteList();
      setModified(true);
      
      // We need to emit this so that property widgets etc...
      // can clear themselves.
      emit itemUnselected(0L);
      
      requestRerouteInvalidatedConnectors();
      requestStateSave();
}


Generated by  Doxygen 1.6.0   Back to index