model_server/gala/src/view.cxx
// Deletetem - Deletes the item from the view.
Deletes the item from the view.
Deletes the item from the view .
void View::DeleteItem(vdialogItem* itemToDelete)
{
  vdialog *dialog = NULL;
  if(GetViewer())
    dialog = GetViewer()->GetDialog();
  else
    if(myViewer)
      dialog = myViewer->dialog;
  if(dialog != NULL)
    dialog->SetFocusItem(NULL);
  Pane *container = NULL;
  if(myOwnerPane)
    container = myOwnerPane;
  else if(ParentView && ParentView->myPane)
    container = ParentView->myPane;
  if(container){
    container->GetItemList()->ChangedAttributeValue(vname_CurrentConfirm, itemToDelete, NULL);
    container->GetItemList()->SetDragItem(NULL);
  }
  if(ParentView && ParentView->myPane)
    ParentView->myPane->GetItemList()->ChangedAttributeValue(vname_CurrentConfirm, itemToDelete, NULL);
  if(GetViewer() && GetViewer()->GetDialog())
    GetViewer()->GetDialog()->SetFocusItem(NULL);
  if (myOwnerPane)
    myOwnerPane->DeleteItem(itemToDelete);
  else if (ParentView && ParentView->myPane)
    ParentView->myPane->DeleteItem(itemToDelete);
  else if (myViewer && myViewer->dialog)
    myViewer->dialog->DeleteItem(itemToDelete);
}
void View :: DeleteItem ( vdialogItem * itemToDelete ) { vdialog * dialog = NULL ; if ( GetViewer ( ) ) dialog = GetViewer ( ) -> GetDialog ( ) ; else if ( myViewer ) dialog = myViewer -> dialog ; if ( dialog != NULL ) dialog -> SetFocusItem ( NULL ) ; Pane * container = NULL ; if ( myOwnerPane ) container = myOwnerPane ; else if ( ParentView && ParentView -> myPane ) container = ParentView -> myPane ; if ( container ) { container -> GetItemList ( ) -> ChangedAttributeValue ( vname_CurrentConfirm , itemToDelete , NULL ) ; container -> GetItemList ( ) -> SetDragItem ( NULL ) ; } if ( ParentView && ParentView -> myPane ) ParentView -> myPane -> GetItemList ( ) -> ChangedAttributeValue ( vname_CurrentConfirm , itemToDelete , NULL ) ; if ( GetViewer ( ) && GetViewer ( ) -> GetDialog ( ) ) GetViewer ( ) -> GetDialog ( ) -> SetFocusItem ( NULL ) ; if ( myOwnerPane ) myOwnerPane -> DeleteItem ( itemToDelete ) ; else if ( ParentView && ParentView -> myPane ) ParentView -> myPane -> DeleteItem ( itemToDelete ) ; else if ( myViewer && myViewer -> dialog ) myViewer -> dialog -> DeleteItem ( itemToDelete ) ; }
Deletetem - Deletes the item from the view.
Deletetem - Deletes the item from the view .