Changeset 685 in Sophya for trunk/SophyaPI/PIext/nobjmgr.cc


Ignore:
Timestamp:
Dec 13, 1999, 12:19:25 AM (26 years ago)
Author:
ercodmgr
Message:

FileChooser multiples ds PIStdImgApp, Correction Ndisp ds PINTuple, Fenetre NObjMgrWind non bloquant desormais ds piapp - Reza 12/12/99

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/nobjmgr.cc

    r594 r685  
    368368list<string>::iterator ii;
    369369for(ii=odel.begin(); ii != odel.end(); ii++)  DelObj(*ii,true);
     370if (myImgApp) 
     371  (myImgApp->ObjMgrW())->UpdateList(did);
    370372}
    371373
     
    466468(*itr).second.nobj++;
    467469
     470if ( (myImgApp != NULL) && (myImgApp->ObjMgrW())->Visible() ) {
     471  string oln = nobj + "  (T= " + typeid(*obj).name() + ")" ;
     472  (myImgApp->ObjMgrW())->AddObjList(did, oln.c_str(), no.oid);
     473  }
    468474if (verbeux) cout << "NamedObjMgr::AddObj()  Object " << nom << " ( " 
    469475     << typeid(*obj).name() << " ) added (Total= " << myObjs->size() << ")" << endl; 
     
    512518itr = myDirs->find(r2);
    513519(*itr).second.nobj++;
     520
     521if ( (myImgApp != NULL) && (myImgApp->ObjMgrW())->Visible() ) {
     522  (myImgApp->ObjMgrW())->DelObjList(dids, no.oid);
     523  string oln = n2 + "  (T= " + typeid(*(no.obj)).name() + ")" ;
     524  (myImgApp->ObjMgrW())->AddObjList(did, oln.c_str(), no.oid);
     525}
    514526if (verbeux)
    515527  cout << "NamedObjMgr::RenameObj() - Object " << nom << " renamed to " << nomnew << endl;
     
    537549{
    538550string n1,r1;
    539 ParseObjectName(nom, r1, n1);
     551int did = ParseObjectName(nom, r1, n1);
    540552nom = '/' + r1 + '/' + n1;
    541553NObjList::iterator it = myObjs->find(nom);
     
    555567if (fgd) delete (*it).second.obj;
    556568
     569if ( (myImgApp != NULL) && (myImgApp->ObjMgrW())->Visible() ) {
     570  int olid = (*it).second.oid;
     571  (myImgApp->ObjMgrW())->DelObjList(did, olid);
     572}
    557573myObjs->erase(it);
    558574(*itr).second.nobj--;
     575
    559576
    560577if (!verbeux) return(true); 
     
    707724if (nobj.length()<1)  nobj = servnobjm->FileName2Name(flnm);
    708725AddObj(ppobj->DataObj(), nobj, true);
     726cout << "NamedObjMgr::ReadObj(...) object " << nobj << " read from file " << endl;
    709727return;
    710728}
     
    12671285{
    12681286if (!myImgApp)  return;
    1269 (myImgApp->ObjMgrW())->ClearHelpList();
     1287(myImgApp->ObjMgrW())->ClearObjList();
    12701288
    12711289NObjList::iterator it; 
     
    12751293  cn = (*it).first.substr(1);
    12761294  cn = cn.substr(cn.find('/')+1) + "  (T= " + typeid(*((*it).second.obj)).name() + ")" ;
    1277   (myImgApp->ObjMgrW())->AddObj(cn.c_str());
     1295  (myImgApp->ObjMgrW())->AddObj(cn.c_str(), (*it).second.oid);
    12781296  }
    12791297}
Note: See TracChangeset for help on using the changeset viewer.