Changeset 2231 in Sophya for trunk/SophyaPI


Ignore:
Timestamp:
Oct 25, 2002, 12:45:09 AM (23 years ago)
Author:
ansari
Message:

Implementation de PIHisto2D::DeactivateControlWindow() + Refresh() Widget lors du delete de Drawer - Reza 25/10/2002

Location:
trunk/SophyaPI/PIext
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/piaversion.h

    r2217 r2231  
    22#define PIAPPVERSION_H_SEEN
    33
    4 #define PIAPP_VERSIONNUMBER  3.60
     4#define PIAPP_VERSIONNUMBER  3.62
    55
    66#endif
  • trunk/SophyaPI/PIext/pihisto2d.cc

    r1905 r2231  
    5252//--
    5353{
     54// La fonction virtuelle DeactivateControlWindow() doit etre appele
     55// a ce niveau - En effet au niveau du destructeur de base, il
     56// semble pointer sur la fonction de la classe de base
     57//                    Reza - Octobre 2002
     58// Desactivation totale de la fenetre de controle specialise
     59// ---> parametre d'appel PIBaseWdgGen* wdg=NULL
     60DeactivateControlWindow(NULL);
    5461if(mAdDO && mHisto!=NULL) delete mHisto;
    5562}
     
    205212}
    206213
     214//++
     215void PIHisto2D::DeactivateControlWindow(PIBaseWdgGen* wdg)
     216//
     217//      Desactivation de la fenetre de controle specialisee
     218//--
     219{
     220  if (H2WinArg::GetCurrentPIHisto2D() == this) {
     221    // si wdg != NULL, c'est un Detach (Drawer detache du PIBaseWdg
     222    // si wdg == NULL, c'est un delete du PIHisto2D (du PIDrawer)
     223    if ((wdg == NULL) || (H2WinArg::GetCurrentBaseWdg() == wdg)) {
     224      H2WinArg::SetCurrentBaseWdg(NULL);
     225      H2WinArg::SetCurrentPIHisto2D(NULL);
     226      H2WinArg::HidePIHisto2DTools();
     227    }
     228  }
     229  PIDrawer::DeactivateControlWindow(wdg);
     230  return;
     231}
    207232
    208233//++
  • trunk/SophyaPI/PIext/pihisto2d.h

    r1884 r2231  
    4141//  Methode permettant l'affichage d'une fenetre de controle specialisee
    4242  virtual void ShowControlWindow(PIBaseWdgGen* wdg);
     43//  Desactivation de la fenetre de controle specialisee
     44  virtual void DeactivateControlWindow(PIBaseWdgGen* wdg);
    4345
    4446  inline Histo2D*       Histogram()   {return(mHisto);}
  • trunk/SophyaPI/PIext/pistdimgapp.cc

    r2217 r2231  
    11601160  it  = mDrwList.find(-k);
    11611161  if (it == mDrwList.end())  return;
     1162  (*it).second->SetAutoRefreshOnDelete(true);
    11621163  delete (*it).second; 
    11631164  mDrwList.erase(it);
Note: See TracChangeset for help on using the changeset viewer.