Changeset 2812 in Sophya for trunk/SophyaPI


Ignore:
Timestamp:
Jun 28, 2005, 3:35:33 PM (20 years ago)
Author:
ansari
Message:

Synchronisation avec boucle d'evenement (ZSync) pour les commandes fitw et helpwindow - Reza 28/06/2005

Location:
trunk/SophyaPI/PIext
Files:
2 edited

Legend:

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

    r2781 r2812  
    315315  PIBaseWdg* wdg = piapp->CurrentBaseWdg();
    316316  if (wdg)  wdg->Refresh();
    317 #ifndef __mac__
    318   /* On vide le buffer X-Window */
    319   XSync(PIXDisplay(),False);
    320 #endif
    321317}
    322318char buff[128];
     
    334330
    335331// >>>>>>>>>>> Commande d'interpreteur
    336 if (kw == "helpwindow") {
     332if ( (kw == "helpwindow") && (mImgApp))  {
     333  ZSync zs(mImgApp->getMutex());
    337334  ShowHelpWindow();
     335  zs.NOp();
    338336  return 0;
    339337}
    340338// ----> Sortie d'application
    341 else if (kw == "exitpiapp") {
     339else if ((kw == "exitpiapp") && (mImgApp)) {
    342340  mImgApp->Stop();
    343341  return 0;
     
    351349void PIACmd::ShowHelpWindow()
    352350{
    353 helpwin->Show();
     351  helpwin->Show();
    354352}
    355353
     
    357355void PIACmd::ShowCxxOptionWindow()
    358356{
    359 cxxoptwin->Show();
     357  cxxoptwin->Show();
    360358}
    361359
     
    363361void PIACmd::ShowCxxExecWindow()
    364362{
    365 cxxexwin->Show();
     363  cxxexwin->Show();
    366364}
    367365
  • trunk/SophyaPI/PIext/piafitting.cc

    r2615 r2812  
    10611061} else if(kw == "fitlin") {
    10621062  LinFit();
    1063 } else if(kw == "fitw") {
     1063} else if ((kw == "fitw") && (mApp != NULL) ) {
     1064  ZSync zs(mApp->getMutex());
    10641065  if(FWindFit!=NULL) {delete FWindFit; FWindFit=NULL;}
    10651066  FWindFit = new PIAFitterWind(mApp,this,tokens[1]);
    10661067  FWindFit->Show();
     1068  zs.NOp();
    10671069}
    10681070
Note: See TracChangeset for help on using the changeset viewer.