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


Ignore:
Timestamp:
Dec 13, 1999, 12:19:25 AM (26 years ago)
Author:
ercodmgr
Message:

FileChooser multiples ds PIStdImgApp, Correction Ndisp ds PINTuple, Fenetre NObjMgrWind non bloquant desormais ds piapp - Reza 12/12/99

File:
1 edited

Legend:

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

    r600 r685  
    153153if ( (varenv=getenv("PEIDA_WORK")) != NULL )  strncpy(WorkDir, varenv, 256);
    154154
    155 pfc = new PIFileChooser(this,"FileChooser", 5000);
     155pfc_fits = new PIFileChooser(this,"FITS-FileChooser", 10125);
     156pfc_ppf = new PIFileChooser(this,"PPF-FileChooser", 10135);
     157pfc_ps = new PIFileChooser(this,"PS-FileChooser", 10525);
    156158
    157159mObjmgrw = new ObjMgrWind(this);
     
    217219// PrintPeidaVersion();
    218220
     221pfc_fits->SetPath(ImgDir);
     222pfc_ppf->SetPath(WorkDir);
     223pfc_ps->SetPath(WorkDir);
     224
    219225SetReady();
    220226}
     
    243249delete cmapv;
    244250
    245 delete pfc;
     251delete pfc_fits;
     252delete pfc_ppf;
     253delete pfc_ps;
    246254
    247255delete mCons;
     
    907915
    908916    case 10120 :
    909       pfc->SetPath(ImgDir);
    910       pfc->AcceptNewFile(false);
     917      pfc_fits->AcceptNewFile(false);
    911918      mFCMsg = 10125;
    912       pfc->SetMsg(mFCMsg);
     919      pfc_fits->SetMsg(mFCMsg);
    913920      SetBlocked();
    914       pfc->Show();
     921      pfc_fits->Show();
    915922      break;
    916923
     
    919926      if (data)  {
    920927        string nomobj="";
    921         ObjMgr()->ReadFits(pfc->GetFileName(), nomobj);
     928        ObjMgr()->ReadFits(pfc_fits->GetFileName(), nomobj);
    922929        ObjMgr()->DisplayObj(nomobj, "win");
    923930      }
     
    927934
    928935    case 10130 :
    929       pfc->SetPath(WorkDir);
    930       pfc->AcceptNewFile(false);
     936      pfc_ppf->AcceptNewFile(false);
    931937      mFCMsg = 10135;
    932       pfc->SetMsg(mFCMsg);
     938      pfc_ppf->SetMsg(mFCMsg);
    933939      SetBlocked();
    934       pfc->Show();
     940      pfc_ppf->Show();
    935941      break;
    936942
     
    938944      mFCMsg = 0;
    939945      if (data)  {
    940         PPInMgrW()->SetFile(pfc->GetFileName());
     946        PPInMgrW()->SetFile(pfc_ppf->GetFileName());
    941947        PPInMgrW()->Show();
    942948      }
     
    976982
    977983  case 10220 :
    978      pfc->SetPath(WorkDir);
    979      pfc->AcceptNewFile(true);
     984     pfc_ppf->AcceptNewFile(true);
    980985     mFCMsg = 10225;
    981      pfc->SetMsg(mFCMsg);
     986     pfc_ppf->SetMsg(mFCMsg);
    982987     SetBlocked();
    983      pfc->Show();
     988     pfc_ppf->Show();
    984989     break;
    985990
     
    991996         delete mPpfout; 
    992997       }
    993        name_outppf = pfc->GetFileName();
     998       name_outppf = pfc_ppf->GetFileName();
    994999       mPpfout = NULL;
    9951000       printf("PIStdImg/Info: Opening POutPersist-File %s \n", name_outppf.c_str());
     
    11581163  {
    11591164  case 10501 :
    1160      pfc->SetPath(WorkDir);
    1161      pfc->AcceptNewFile(true);
     1165     pfc_ps->AcceptNewFile(true);
    11621166     mFCMsg = 10525;
    1163      pfc->SetMsg(mFCMsg);
     1167     pfc_ps->SetMsg(mFCMsg);
    11641168     SetBlocked();
    1165      pfc->Show();
     1169     pfc_ps->Show();
    11661170     break;
    11671171
     
    11731177         delete mpsfile; 
    11741178         }
    1175         name_ps = pfc->GetFileName();
     1179        name_ps = pfc_ps->GetFileName();
    11761180        printf("PIStdImg/Info: Opening PS-File %s \n", name_ps.c_str());
    11771181        mpsfile = new PSFile(name_ps.c_str(), PI_Portrait, PI_A4, 2., 2.);
Note: See TracChangeset for help on using the changeset viewer.