Changeset 685 in Sophya for trunk/SophyaPI/PIext/pistdimgapp.cc
- Timestamp:
- Dec 13, 1999, 12:19:25 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/pistdimgapp.cc
r600 r685 153 153 if ( (varenv=getenv("PEIDA_WORK")) != NULL ) strncpy(WorkDir, varenv, 256); 154 154 155 pfc = new PIFileChooser(this,"FileChooser", 5000); 155 pfc_fits = new PIFileChooser(this,"FITS-FileChooser", 10125); 156 pfc_ppf = new PIFileChooser(this,"PPF-FileChooser", 10135); 157 pfc_ps = new PIFileChooser(this,"PS-FileChooser", 10525); 156 158 157 159 mObjmgrw = new ObjMgrWind(this); … … 217 219 // PrintPeidaVersion(); 218 220 221 pfc_fits->SetPath(ImgDir); 222 pfc_ppf->SetPath(WorkDir); 223 pfc_ps->SetPath(WorkDir); 224 219 225 SetReady(); 220 226 } … … 243 249 delete cmapv; 244 250 245 delete pfc; 251 delete pfc_fits; 252 delete pfc_ppf; 253 delete pfc_ps; 246 254 247 255 delete mCons; … … 907 915 908 916 case 10120 : 909 pfc->SetPath(ImgDir); 910 pfc->AcceptNewFile(false); 917 pfc_fits->AcceptNewFile(false); 911 918 mFCMsg = 10125; 912 pfc ->SetMsg(mFCMsg);919 pfc_fits->SetMsg(mFCMsg); 913 920 SetBlocked(); 914 pfc ->Show();921 pfc_fits->Show(); 915 922 break; 916 923 … … 919 926 if (data) { 920 927 string nomobj=""; 921 ObjMgr()->ReadFits(pfc ->GetFileName(), nomobj);928 ObjMgr()->ReadFits(pfc_fits->GetFileName(), nomobj); 922 929 ObjMgr()->DisplayObj(nomobj, "win"); 923 930 } … … 927 934 928 935 case 10130 : 929 pfc->SetPath(WorkDir); 930 pfc->AcceptNewFile(false); 936 pfc_ppf->AcceptNewFile(false); 931 937 mFCMsg = 10135; 932 pfc ->SetMsg(mFCMsg);938 pfc_ppf->SetMsg(mFCMsg); 933 939 SetBlocked(); 934 pfc ->Show();940 pfc_ppf->Show(); 935 941 break; 936 942 … … 938 944 mFCMsg = 0; 939 945 if (data) { 940 PPInMgrW()->SetFile(pfc ->GetFileName());946 PPInMgrW()->SetFile(pfc_ppf->GetFileName()); 941 947 PPInMgrW()->Show(); 942 948 } … … 976 982 977 983 case 10220 : 978 pfc->SetPath(WorkDir); 979 pfc->AcceptNewFile(true); 984 pfc_ppf->AcceptNewFile(true); 980 985 mFCMsg = 10225; 981 pfc ->SetMsg(mFCMsg);986 pfc_ppf->SetMsg(mFCMsg); 982 987 SetBlocked(); 983 pfc ->Show();988 pfc_ppf->Show(); 984 989 break; 985 990 … … 991 996 delete mPpfout; 992 997 } 993 name_outppf = pfc ->GetFileName();998 name_outppf = pfc_ppf->GetFileName(); 994 999 mPpfout = NULL; 995 1000 printf("PIStdImg/Info: Opening POutPersist-File %s \n", name_outppf.c_str()); … … 1158 1163 { 1159 1164 case 10501 : 1160 pfc->SetPath(WorkDir); 1161 pfc->AcceptNewFile(true); 1165 pfc_ps->AcceptNewFile(true); 1162 1166 mFCMsg = 10525; 1163 pfc ->SetMsg(mFCMsg);1167 pfc_ps->SetMsg(mFCMsg); 1164 1168 SetBlocked(); 1165 pfc ->Show();1169 pfc_ps->Show(); 1166 1170 break; 1167 1171 … … 1173 1177 delete mpsfile; 1174 1178 } 1175 name_ps = pfc ->GetFileName();1179 name_ps = pfc_ps->GetFileName(); 1176 1180 printf("PIStdImg/Info: Opening PS-File %s \n", name_ps.c_str()); 1177 1181 mpsfile = new PSFile(name_ps.c_str(), PI_Portrait, PI_A4, 2., 2.);
Note:
See TracChangeset
for help on using the changeset viewer.