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


Ignore:
Timestamp:
Apr 26, 2006, 5:47:13 PM (19 years ago)
Author:
ansari
Message:

1- Correction/Amelioration gestion code de retour (Rc) ds les
CmdExecutor (basexecut.cc cxxexecutor.cc) - pour c++exec en particulier
2- ajout flag fgsmall (constructeur PIStdImgApp) pour petite fenetre
principale

Reza , 26/04/2006

File:
1 edited

Legend:

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

    r2904 r2944  
    9393
    9494/* --Methode-- */
    95 PIStdImgApp::PIStdImgApp(int narg, char* arg[])
    96   : PIApplication(420, 320, narg, arg) , resusg(ResourceUsage::RU_All)
     95PIStdImgApp::PIStdImgApp(bool fgsmall, int narg, char* arg[])
     96  : PIApplication(420, (fgsmall)?320:220, narg, arg) , resusg(ResourceUsage::RU_All)
    9797{
    9898
     
    186186int msx = 420+mFgScSz*60;
    187187int msy = 320+mFgScSz*40;
     188int sfgsz = mFgScSz;
     189if (fgsmall) {  // Flag petite taille de fenetre
     190  if (mFgScSz > 1) mFgScSz = 1;
     191  msx = 420+mFgScSz*40;
     192  msy = 220+mFgScSz*20;
     193}
    188194MainWin()->SetSize(msx, msy);
    189195
     
    252258redirecout = false;
    253259// RedirectStdOutErr(true);  pas par defaut
     260
     261mFgScSz = sfgsz;
    254262 
    255263mObjMgr = new NamedObjMgr(true);
     
    16931701PeidaConfigureSignalhandling(fgfpe, fgsegv, true, true); 
    16941702#else
    1695 SophyaConfigureSignalhandling(fgfpe, fgsegv, true, true); 
     1703// On active aussi SIGUSR1 pour stopthr
     1704SophyaConfigureSignalhandling(fgfpe, fgsegv, true, true, true); 
    16961705#endif
    16971706m[5]->SetStateMsg(10603, fgfpe);
Note: See TracChangeset for help on using the changeset viewer.