Changeset 374 in Sophya for trunk/SophyaPI/PIext/pistdimgapp.cc


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

File:
1 edited

Legend:

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