Changeset 2778 in Sophya


Ignore:
Timestamp:
May 27, 2005, 5:39:42 PM (20 years ago)
Author:
ansari
Message:

Corrections diveres suite pb imagnav - Reza 27/5/2005

Location:
trunk/SophyaPI/PIext
Files:
2 edited

Legend:

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

    r2762 r2778  
    7171void ObjMgrWind::Show()
    7272{
    73 // dap->SetBlocked();  Ce n'est plus necessaire - Reza 11/12/99
     73PIWindow::Show();
    7474string cdir;
    7575dap->ObjMgr()->GetCurrentDir(cdir);
     
    7777dirlist->SetValueStr(cdir);
    7878dap->ObjMgr()->UpdateObjMgrWindow( GetCurDirId() );
    79 PIWindow::Show();
    8079return;
    8180}
  • trunk/SophyaPI/PIext/pistdimgapp.cc

    r2762 r2778  
    761761  piin = new PIImageNavigator(win, (char *)name.c_str(), sx, sy, px,py);
    762762  piin->SetBinding(PIBK_elastic, PIBK_elastic, PIBK_elastic, PIBK_elastic);
     763  piin->Show();
    763764  piin->ImageWdg()->ShowCursor(true);
    764765  pii = piin->ImageWdg();
    765766  piin->SetUserData(NULL, oid);
    766767  pii->SetUserData(NULL, oid);
    767   //  XSync(PIXDisplay(), False); 
    768   // cout << " DBG-ImagNav-BBB-BBB Apres XSync() " << endl; 
    769  
    770768}
    771769else { // Creation de widget PIImage normal
     
    778776  pii->SetUserData(NULL, oid);
    779777}
     778
     779
     780pii->SetImage(nouv, true, false);
     781
     782// decode des options en chaine de caracteres
     783if (mAxesAtt.size() > 0)
     784  pii->DecodeOptionString(mAxesAtt, false);   // Les options d'axe
     785if (mDefaultAtt.size() > 0)
     786  pii->DecodeOptionString(mDefaultAtt, false);  // d'abord les options par defaut
     787if (opts.size() > 0)
     788  pii->DecodeOptionString(opts);    // ensuite, les options specifies en argument
    780789
    781790// On recalcule la taille de la fenetre si Disp_Win
     
    791800}
    792801
    793 pii->SetImage(nouv, true, false);
    794 
    795 // decode des options en chaine de caracteres
    796 if (mAxesAtt.size() > 0)
    797   pii->DecodeOptionString(mAxesAtt, false);   // Les options d'axe
    798 if (mDefaultAtt.size() > 0)
    799   pii->DecodeOptionString(mDefaultAtt, false);  // d'abord les options par defaut
    800 if (opts.size() > 0)
    801   pii->DecodeOptionString(opts);    // ensuite, les options specifies en argument
    802 
    803802// printf("!!DBG!! PIImage Pos= %d %d  Size= %d %d \n", pii->XPos(), pii->YPos(), pii->XSize(), pii->YSize()   );
    804803mCurWin = win;
     
    806805mLastWdg = pii;
    807806mBWId++;
    808 if (fgimagnav) mBWList[mBWId] = piin;
     807if (fgimagnav)  mBWList[mBWId] = piin;
    809808else mBWList[mBWId] = pii;
    810809// pii->Refresh();
     
    15941593
    15951594  if (fg) {
     1595    consolecont->Hide();
    15961596    consolecont->SetBinding(PIBK_free,PIBK_free,PIBK_free, PIBK_free);
    15971597    int szy = MainWin()->YSize();
     
    16001600    consolecont->SetSize(MainWin()->XSize(), szy);
    16011601    consolecont->SetBinding(PIBK_fixed,PIBK_fixed,PIBK_fixed, PIBK_fixed);
     1602    consolecont->Show();
    16021603    statcont->Show();
    16031604    m[3]->SetStateMsg(10470, true);
     
    16051606  else {
    16061607    statcont->Hide();
     1608    consolecont->Hide();
    16071609    consolecont->SetBinding(PIBK_free,PIBK_free,PIBK_free, PIBK_free);
    16081610    MainWin()->SetSize(MainWin()->XSize(), MainWin()->YSize()-statcont->YSize());
     
    16101612    consolecont->SetSize(MainWin()->XSize(), MainWin()->YSize());
    16111613    consolecont->SetBinding(PIBK_fixed,PIBK_fixed,PIBK_fixed, PIBK_fixed);
     1614    consolecont->Show();   
    16121615    m[3]->SetStateMsg(10470, false);   
    16131616  }
Note: See TracChangeset for help on using the changeset viewer.