Changeset 3572 in Sophya for trunk/SophyaPI/PIext/pistdimgapp.cc
- Timestamp:
- Feb 7, 2009, 10:50:34 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/pistdimgapp.cc
r3431 r3572 102 102 m[0]->AppendItem("Open-Fits", 10120); 103 103 m[0]->AppendItem("Open-PPF", 10130); 104 #ifndef SANS_EVOLPLANCK105 104 m[0]->AppendItem("Open-ASCII", 10140); 106 #endif107 105 // m[0]->AppendItem("Options", 10101); 108 106 m[0]->AppendItem("Help", 10100); … … 316 314 glst_piai = new PIAppInitiator(this); 317 315 318 char buff[128];319 316 mCons->AddStr(" ............ starting piapp .............\n", PIVA_Blue ); 320 #ifdef SANS_EVOLPLANCK321 sprintf(buff, "Version: piapp=%g PI=%g PEIDA=%g \n", (double)PIAPP_VERSIONNUMBER,322 (double)PI_VERSIONNUMBER, (float)PeidaVersion());323 mCons->AddStr(buff, PIVA_Blue );324 #else325 317 string svers; 326 318 SophyaInitiator::GetVersion(svers); 327 319 mCons->AddStr(svers.c_str(), PIVA_Blue ); 328 #endif329 320 mCons->AddStr(" ..........................................\n", PIVA_Blue ); 330 321 // PrintPeidaVersion(); … … 539 530 if ((GetState()) && (msg != mFCMsg)) { PIBeep(); return; } 540 531 541 #ifdef SANS_EVOLPLANCK 542 TRY { 543 #else 544 try { 545 #endif 532 try { 546 533 547 534 // Messages active-window … … 628 615 mCons->AddChar('\n', PIVA_Def, true); 629 616 SetBusy(); 630 #ifdef SANS_EVOLPLANCK631 TRY {632 mCmd->Interpret(s);633 } CATCH(merr) {634 fflush(stdout);635 cout << endl;636 cerr << endl;637 string es = PeidaExc(merr);638 cerr << "PIStdImgApp::Process()/ Cmd->Do() Exception :" << es << " (" << merr << ")" << endl ;639 }640 #else641 617 try { 642 618 // mCmd->Interpret(s); … … 655 631 } 656 632 657 #endif658 633 SetReady(); 659 634 } … … 662 637 (int)tmsg,(int)msg,(int)smm); 663 638 664 #ifdef SANS_EVOLPLANCK665 } CATCH(merr) {666 fflush(stdout);667 cout << endl;668 cerr << endl;669 string es = PeidaExc(merr);670 cerr << "PIStdImgApp::Process()/ Exception :" << es << " (" << merr << ")" << endl ;671 SetReady();672 }673 #else674 639 } 675 640 catch ( PThrowable & exc ) { … … 690 655 } 691 656 692 #endif693 657 694 658 return; … … 1781 1745 void PIStdImgApp::CatchSignals(bool fgfpe, bool fgsegv) 1782 1746 { 1783 #ifdef SANS_EVOLPLANCK1784 PeidaConfigureSignalhandling(fgfpe, fgsegv, true, true);1785 #else1786 1747 // On active aussi SIGUSR1 pour stopthr 1787 1748 SophyaConfigureSignalhandling(fgfpe, fgsegv, true, true); 1788 #endif1789 1749 m[5]->SetStateMsg(10603, fgfpe); 1790 1750 m[5]->SetStateMsg(10604, fgsegv); … … 1953 1913 break; 1954 1914 1955 #ifndef SANS_EVOLPLANCK1956 1915 case 10140 : 1957 1916 pfc_ascii->AcceptNewFile(false); … … 1988 1947 SetReady(); 1989 1948 break; 1990 #endif1991 1949 1992 1950 case 10105: … … 2396 2354 string info = "piapp : Interactive analysis program\n"; 2397 2355 char buff[128]; 2398 #ifdef SANS_EVOLPLANCK 2399 sprintf(buff, "Version: piapp=%g PI=%g PEIDA=%g \n", (double)PIAPP_VERSIONNUMBER, 2400 (double)PI_VERSIONNUMBER, (float)PeidaVersion()); 2401 info += buff; 2402 #else 2356 2403 2357 string svers; 2404 2358 SophyaInitiator::GetVersion(svers); … … 2407 2361 (double)PIAPP_VERSIONNUMBER); 2408 2362 info += buff; 2409 #endif 2410 info += "(C) LAL-IN2P3/CNRS 1996-2006\n"; 2411 info += "(C) SPP-DAPNIA/CEA 1996-2006\n"; 2412 #ifndef SANS_EVOLPLANCK 2413 info += "Check http://www.sophya.org for more information"; 2414 #endif 2363 2364 info += "(C) LAL-IN2P3/CNRS 1996-2009\n"; 2365 info += "(C) SPP-DAPNIA/CEA 1996-2009\n"; 2366 info += "Check http://www.sophya.org for more information"; 2367 2415 2368 infow_txt->SetText(info); 2416 2369 }
Note:
See TracChangeset
for help on using the changeset viewer.