Changeset 3376 in Sophya for trunk


Ignore:
Timestamp:
Nov 7, 2007, 12:37:52 PM (18 years ago)
Author:
ansari
Message:

correction mineure du probleme de selection dans ObjMgrWind - Reza 07/11/2007

Location:
trunk/SophyaPI/PIext
Files:
2 edited

Legend:

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

    r3374 r3376  
    17261726if (!myImgApp)  return;
    17271727if ( !_fgimgapp )  myImgApp->LockMutex();
     1728// On ne fait rien si la fenetre non visible ou autre repertoire courant ds fenetre
    17281729if ( !(myImgApp->ObjMgrW())->Visible() ||
    17291730     ( (did >= 0) && (myImgApp->ObjMgrW())->GetCurDirId() != did) ) {
     
    17321733  }
    17331734
     1735// on change le repertoire courant de la fenetre si did<0
    17341736if (did < 0) {
    17351737  string cdir = *currDir;
     
    17431745NObjList::iterator it; 
    17441746string cn;
     1747int loid = 0;
    17451748for(it = myObjs->begin(); it != myObjs->end(); it++) {
    17461749  if ((*it).second.dirid != did) continue;
     
    17481751  //  cn = cn.substr(cn.find('/')+1) + "  (T= " + typeid(*((*it).second.obj)).name() + ")" ;
    17491752  cn = cn.substr(cn.find('/')+1) + "  (T= " + (*it).second.obja->GetDataObjType() + ")" ;
    1750   (myImgApp->ObjMgrW())->AddObj(cn.c_str(), (*it).second.oid);
    1751   }
     1753  loid = (*it).second.oid;
     1754  (myImgApp->ObjMgrW())->AddObj(cn.c_str(), loid);
     1755  }
     1756(myImgApp->ObjMgrW())->SelObjByOid(loid);
    17521757
    17531758(myImgApp->ObjMgrW())->SetSensitive();
  • trunk/SophyaPI/PIext/pisiadw.h

    r3366 r3376  
    3939  inline  void  AddObj(const char * objn, int oid)
    4040                    { mNitem++;  objlist->AppendItem(objn, oid); }
     41  inline  void  SelObjByOid(int oid)
     42                    { objlist->SelectItemMsg(oid); }
    4143  inline  int   GetCurDirId() { return (dirlist->GetValue()-30000); }
    4244
Note: See TracChangeset for help on using the changeset viewer.