Changeset 2231 in Sophya for trunk/SophyaPI/PIext/pihisto2d.cc


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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//++
Note: See TracChangeset for help on using the changeset viewer.