Changeset 3024 in Sophya for trunk/SophyaPI/PIext


Ignore:
Timestamp:
Jul 17, 2006, 2:33:29 PM (19 years ago)
Author:
ansari
Message:

Adaptation modification SophyaInitiator::RegisterModule()/PrintVersion() - pret pour tag V2 Reza 17/7/2006

Location:
trunk/SophyaPI/PIext
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/piaversion.h

    r2762 r3024  
    22#define PIAPPVERSION_H_SEEN
    33
    4 #define PIAPP_VERSIONNUMBER  3.985
     4#define PIAPP_VERSIONNUMBER  4.0
    55
    66#endif
  • trunk/SophyaPI/PIext/piinit.cc

    r2930 r3024  
    2929#include "gaussfilt.h"
    3030#include "nomspecrespadapter.h"
     31
     32#include "piaversion.h"
    3133
    3234#endif
     
    128130  serv->RegisterClass(new GaussianFilter, new NOMAdapter_SpectralResponse );
    129131  serv->RegisterClass(new SpecRespVec, new NOMAdapter_SpectralResponse );
    130 #endif
    131132
     133  SophyaInitiator::RegisterModule("PIext/piapp", PIAPP_VERSIONNUMBER);
     134#endif 
    132135}
    133136
  • trunk/SophyaPI/PIext/pistdimgapp.cc

    r2954 r3024  
    319319sprintf(buff, "Version: piapp=%g  PI=%g  PEIDA=%g \n", (double)PIAPP_VERSIONNUMBER,
    320320              (double)PI_VERSIONNUMBER, (float)PeidaVersion());
     321mCons->AddStr(buff, PIVA_Blue );
    321322#else
    322 sprintf(buff, "Version: piapp=%g  PI=%g  SOPHYA=%g \n", (double)PIAPP_VERSIONNUMBER,
    323               (double)PI_VERSIONNUMBER, glst_piai->Version());
     323string svers;
     324SophyaInitiator::GetVersion(svers);
     325mCons->AddStr(svers.c_str(), PIVA_Blue );
    324326#endif
    325 mCons->AddStr(buff, PIVA_Blue );
    326327mCons->AddStr("  ..........................................\n", PIVA_Blue );
    327328// PrintPeidaVersion();
     
    22832284                         PIWK_dialog, bsx*5+3*spx, bsy*4+spy*3, 200, 200);
    22842285infow_win->SetAutoDelChilds(true);
    2285 infow_txt = new PIText(infow_win,"about_piapp_text", bsx*5+spx, bsy*3, spx, spy);
     2286infow_txt = new PIText(infow_win,"about_piapp_text", true, false, bsx*5+spx, bsy*3, spx, spy);
    22862287infow_txt->SetMutiLineMode(true);
    22872288infow_txt->SetTextEditable(false);
     
    22932294infow_but->SetMsgParent((PIMsgHandler *)app);
    22942295infow_but->SetBinding(PIBK_elastic,PIBK_elastic, PIBK_elastic,PIBK_elastic);
     2296
     2297string info = "piapp : Interactive analysis program\n";
    22952298char buff[128];
    22962299#ifdef SANS_EVOLPLANCK
    22972300sprintf(buff, "Version: piapp=%g  PI=%g  PEIDA=%g \n", (double)PIAPP_VERSIONNUMBER,
    22982301              (double)PI_VERSIONNUMBER, (float)PeidaVersion());
     2302info += buff;
    22992303#else
    2300 {
    2301 sprintf(buff, "Version: piapp=%g  PI=%g  SOPHYA=%g \n", (double)PIAPP_VERSIONNUMBER,
    2302               (double)PI_VERSIONNUMBER, glst_piai->Version());
    2303 }
     2304string svers;
     2305SophyaInitiator::GetVersion(svers);
     2306info += svers;
     2307sprintf(buff, "\n Version: PI=%g  --  PIext/piapp= %g \n", (double)PI_VERSIONNUMBER,
     2308        (double)PIAPP_VERSIONNUMBER);
     2309info += buff;
    23042310#endif
    2305 string info = "piapp : Interactive analysis program\n";
    2306 info += buff;
    2307 info += "(C) LAL-IN2P3/CNRS  1996-2003\n";
    2308 info += "(C) SPP-DAPNIA/CEA 1996-2003\n";
     2311info += "(C) LAL-IN2P3/CNRS  1996-2006\n";
     2312info += "(C) SPP-DAPNIA/CEA 1996-2006\n";
    23092313#ifndef SANS_EVOLPLANCK
    23102314 info += "Check http://www.sophya.org for more information";
Note: See TracChangeset for help on using the changeset viewer.