289,7 → 289,7 |
// (e.g., on a 1GB WinXP system, PS CS2 reports 520MB maxSpace, so this will let us |
// preview about 50MB of image data.) |
|
zoomfactor = sqrt(maxSpace/(10.*preview_w*preview_h*nplanes)); |
zoomfactor = sqrt(gpb->maxSpace/(10.*preview_w*preview_h*nplanes)); |
if(zoomfactor > fitzoom) |
zoomfactor = fitzoom; |
if(zoomfactor < 1.) |
332,7 → 332,11 |
return false; // end dialog |
case OPENITEM: |
if(!gdata->standalone && choosefiletypes("\pChoose filter settings",&sfr,&reply,types,2, |
"All supported files (.afs, .8bf, .txt)\0*.afs;*.8bf;*.txt\0All files (*.*)\0*.*\0\0")){ |
"All supported files (.afs, .8bf, .txt)\0*.afs;*.8bf;*.txt\0All files (*.*)\0*.*\0\0" |
#ifdef _WIN32 |
,gdata->hWndMainDlg |
#endif /* _WIN32 */ |
)){ |
if(loadfile(&sfr,&reason)){ |
updatedialog(dp); |
maindlgupdate(dp); |
343,7 → 347,11 |
case SAVEITEM: |
if(!gdata->standalone && putfile("\pSave filter settings",(StringPtr)"", |
TEXT_FILETYPE,SIG_SIMPLETEXT,&reply,&sfr, |
"afs","Settings file (.afs, .txt)\0*.afs;*.txt\0\0",1)){ |
"afs","Settings file (.afs, .txt)\0*.afs;*.txt\0\0",1 |
#ifdef _WIN32 |
,gdata->hWndMainDlg |
#endif /* _WIN32 */ |
)){ |
if(savefile(&sfr)) |
completesave(&reply); |
} |
356,7 → 364,11 |
#endif |
if( putfile("\pMake standalone filter",fname, |
PS_FILTER_FILETYPE,kPhotoshopSignature,&reply,&sfr, |
"8bf","Filter plugin file (.8bf)\0*.8bf\0\0",1) ) |
"8bf","Filter plugin file (.8bf)\0*.8bf\0\0",1 |
#ifdef _WIN32 |
,gdata->hWndMainDlg |
#endif /* _WIN32 */ |
)) |
make_standalone(&sfr); |
} |
break; |