Changeset 374 in Sophya


Ignore:
Timestamp:
Aug 9, 1999, 4:42:11 PM (26 years ago)
Author:
ercodmgr
Message:

Corrections diverses et fichier de numero de version pour piapp Reza 9/8/99

Location:
trunk/SophyaPI/PIext
Files:
1 added
4 edited

Legend:

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

    r368 r374  
    343343if ( !CheckDirName(dirname) ) {
    344344  cout << "NamedObjMgr::CleanDir( " << dirname << ") Error - Invalid name !" << endl;
    345   return(false);
    346345  }
    347346NObjDirList::iterator itr = myDirs->find(dirname);
    348347if (itr == myDirs->end()) {
    349348  cout << "NamedObjMgr::CleanDir( " << dirname << ") Error - No such directory !" << endl;
    350   return(false);
    351349  }
    352350
  • trunk/SophyaPI/PIext/piacmd.cc

    r368 r374  
    448448#ifndef __mac__
    449449  /* On vide le buffer X-Window */
    450   XFlush(PIXDisplay());
     450  XSync(PIXDisplay(),False);
    451451#endif
    452452}
  • trunk/SophyaPI/PIext/pistdimgapp.cc

    r368 r374  
    3232
    3333#include "piinit.h"
     34#include "piversion.h"
     35#include "piaversion.h"
    3436
    3537
     
    102104m[5]->AppendItem("CloseAll", 10601);
    103105m[5]->AppendCheckItem("Red.Out/Err", 10602);
    104 m[5]->AppendCheckItem("Catch SigFPE/SEGV", 10603);
     106m[5]->AppendCheckItem("Catch SigFPE", 10603);
     107m[5]->AppendCheckItem("Catch SigSEGV", 10604);
    105108
    106109m[6] = new PIMenu(Menubar(),"Modules");
     
    112115AppendMenu(m[4]);
    113116AppendMenu(m[5]);
    114 AppendMenu(m[6]);
     117// AppendMenu(m[6]);  Menu Modules vide pour le moment
    115118
    116119int scsx, scsy;
     
    142145
    143146char buff[128];
    144 sprintf(buff, "piapp V2.0   ---  PEIDA++ Version %5.3f \n", (float)PeidaVersion());
    145147mCons->AddStr("  ............  starting piapp .............\n", PIVA_Blue );
     148sprintf(buff, "Version: piapp=%g  PI=%g  PEIDA=%g \n", (double)PIAPP_VERSIONNUMBER,
     149              (double)PI_VERSIONNUMBER, (float)PeidaVersion());
    146150mCons->AddStr(buff, PIVA_Blue );
    147151mCons->AddStr("  ..........................................\n", PIVA_Blue );
     
    804808
    805809/* --Methode-- */
    806 void PIStdImgApp::CatchSignals(bool fg)
     810void PIStdImgApp::CatchSignals(bool fgfpe, bool fgsegv)
    807811{   
    808 PeidaConfigureSignalhandling(fg, fg, true, true); 
    809 m[5]->SetStateMsg(10603, fg);
     812PeidaConfigureSignalhandling(fgfpe, fgsegv, true, true); 
     813m[5]->SetStateMsg(10603, fgfpe);
     814m[5]->SetStateMsg(10604, fgsegv);
    810815}
    811816
     
    12081213    break;
    12091214  case 10603:
    1210     CatchSignals(*((bool*)data));
     1215  case 10604:
     1216    CatchSignals(m[5]->GetStateMsg(10603), m[5]->GetStateMsg(10604));
    12111217    break;
    12121218  default:
  • trunk/SophyaPI/PIext/pistdimgapp.h

    r368 r374  
    9393     inline bool HasRedirectedStdOutErr() { return(redirecout); }
    9494// Gestion des signaux
    95      void  CatchSignals(bool fg = true);
     95     void  CatchSignals(bool fgfpe=true, bool fgsegv=true);
    9696
    9797//  Gestion d attributs graphiques courants
Note: See TracChangeset for help on using the changeset viewer.