- Timestamp:
- Nov 7, 2007, 12:37:52 PM (18 years ago)
- Location:
- trunk/SophyaPI/PIext
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/nobjmgr.cc
r3374 r3376 1726 1726 if (!myImgApp) return; 1727 1727 if ( !_fgimgapp ) myImgApp->LockMutex(); 1728 // On ne fait rien si la fenetre non visible ou autre repertoire courant ds fenetre 1728 1729 if ( !(myImgApp->ObjMgrW())->Visible() || 1729 1730 ( (did >= 0) && (myImgApp->ObjMgrW())->GetCurDirId() != did) ) { … … 1732 1733 } 1733 1734 1735 // on change le repertoire courant de la fenetre si did<0 1734 1736 if (did < 0) { 1735 1737 string cdir = *currDir; … … 1743 1745 NObjList::iterator it; 1744 1746 string cn; 1747 int loid = 0; 1745 1748 for(it = myObjs->begin(); it != myObjs->end(); it++) { 1746 1749 if ((*it).second.dirid != did) continue; … … 1748 1751 // cn = cn.substr(cn.find('/')+1) + " (T= " + typeid(*((*it).second.obj)).name() + ")" ; 1749 1752 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); 1752 1757 1753 1758 (myImgApp->ObjMgrW())->SetSensitive(); -
trunk/SophyaPI/PIext/pisiadw.h
r3366 r3376 39 39 inline void AddObj(const char * objn, int oid) 40 40 { mNitem++; objlist->AppendItem(objn, oid); } 41 inline void SelObjByOid(int oid) 42 { objlist->SelectItemMsg(oid); } 41 43 inline int GetCurDirId() { return (dirlist->GetValue()-30000); } 42 44
Note:
See TracChangeset
for help on using the changeset viewer.