Rev 221 | Rev 259 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 221 | Rev 239 | ||
---|---|---|---|
Line 341... | Line 341... | ||
341 | dispose_preview(); |
341 | dispose_preview(); |
342 | return false; // end dialog |
342 | return false; // end dialog |
343 | case OPENITEM: |
343 | case OPENITEM: |
344 | if(!gdata->standalone && choosefiletypes( |
344 | if(!gdata->standalone && choosefiletypes( |
345 | #ifdef MAC_ENV |
345 | #ifdef MAC_ENV |
346 | (StringPtr)_strdup("\pChoose filter settings"), |
346 | (StringPtr)_strdup("\pChoose filter settings"), // "\p" means "Pascal string" |
347 | #else |
347 | #else |
348 | (StringPtr)_strdup("Choose filter settings"), |
348 | (StringPtr)_strdup("\026Choose filter settings"), |
349 | #endif |
349 | #endif |
350 | &sfr,&reply,types,2, |
350 | &sfr,&reply,types,2, |
351 | "All supported files (*.afs, *.8bf, *.pff, *.prm, *.bin, *.txt)\0*.afs;*.8bf;*.pff;*.prm;*.bin;*.txt\0Filter Factory Settings (*.afs, *.txt)\0*.afs;*.txt\0Filter Factory for Windows, Standalone Filter (*.8bf)\0*.8bf\0Premiere TF/FF Settings (*.pff, *.txt)\0*.pff;*.txt\0Premiere TT/FF for Windows, Standalone Filter (*.prm)\0*.prm\0FilterFactory for MacOS, Standalone Filter (*.bin)\0*.bin\0All files (*.*)\0*.*\0\0" |
351 | "All supported files (*.afs, *.8bf, *.pff, *.prm, *.bin, *.txt)\0*.afs;*.8bf;*.pff;*.prm;*.bin;*.txt\0Filter Factory Settings (*.afs, *.txt)\0*.afs;*.txt\0Filter Factory for Windows, Standalone Filter (*.8bf)\0*.8bf\0Premiere TF/FF Settings (*.pff, *.txt)\0*.pff;*.txt\0Premiere TT/FF for Windows, Standalone Filter (*.prm)\0*.prm\0FilterFactory for MacOS, Standalone Filter (*.bin)\0*.bin\0All files (*.*)\0*.*\0\0" |
352 | #ifdef _WIN32 |
352 | #ifdef _WIN32 |
353 | ,gdata->hWndMainDlg |
353 | ,gdata->hWndMainDlg |
Line 361... | Line 361... | ||
361 | } |
361 | } |
362 | break; |
362 | break; |
363 | case SAVEITEM: |
363 | case SAVEITEM: |
364 | if(!gdata->standalone && putfile( |
364 | if(!gdata->standalone && putfile( |
365 | #ifdef MAC_ENV |
365 | #ifdef MAC_ENV |
366 | (StringPtr)_strdup("\pSave filter settings"), |
366 | (StringPtr)_strdup("\pSave filter settings"), // "\p" means "Pascal string" |
367 | #else |
367 | #else |
368 | (StringPtr)_strdup("Save filter settings"), |
368 | (StringPtr)_strdup("\024Save filter settings"), |
369 | #endif |
369 | #endif |
370 | (StringPtr)"", |
370 | (StringPtr)_strdup("\0"), |
371 | TEXT_FILETYPE,SIG_SIMPLETEXT,&reply,&sfr, |
371 | TEXT_FILETYPE,SIG_SIMPLETEXT,&reply,&sfr, |
372 | _strdup("afs"),"Settings file (.afs, .txt)\0*.afs;*.txt\0\0",1 |
372 | "afs","Settings file (.afs, .txt)\0*.afs;*.txt\0\0",1 |
373 | #ifdef _WIN32 |
373 | #ifdef _WIN32 |
374 | ,gdata->hWndMainDlg |
374 | ,gdata->hWndMainDlg |
375 | #endif /* _WIN32 */ |
375 | #endif /* _WIN32 */ |
376 | )){ |
376 | )){ |
377 | if(savefile(&sfr)) |
377 | if(savefile(&sfr)) |
Line 385... | Line 385... | ||
385 | memcpy(&bak_parm,&gdata->parm,sizeof(PARM_T)); |
385 | memcpy(&bak_parm,&gdata->parm,sizeof(PARM_T)); |
386 | 386 | ||
387 | if( !gdata->standalone && builddialog(gpb) ){ |
387 | if( !gdata->standalone && builddialog(gpb) ){ |
388 | PLstrcpy(fname,gdata->parm.title); |
388 | PLstrcpy(fname,gdata->parm.title); |
389 | #ifdef MACMACHO |
389 | #ifdef MACMACHO |
390 | PLstrcat(fname,(StringPtr)"\p.plugin"); |
390 | PLstrcat(fname,(StringPtr)"\p.plugin"); // "\p" means "Pascal string" |
391 | #endif |
391 | #endif |
392 | if( putfile( |
392 | if( putfile( |
393 | #ifdef MAC_ENV |
393 | #ifdef MAC_ENV |
394 | (StringPtr)_strdup("\pMake standalone filter"), |
394 | (StringPtr)_strdup("\pMake standalone filter"), // "\p" means "Pascal string" |
395 | #else |
395 | #else |
396 | (StringPtr)_strdup("Make standalone filter"), |
396 | (StringPtr)_strdup("\026Make standalone filter"), |
397 | #endif |
397 | #endif |
398 | fname, |
398 | fname, |
399 | PS_FILTER_FILETYPE,kPhotoshopSignature,&reply,&sfr, |
399 | PS_FILTER_FILETYPE,kPhotoshopSignature,&reply,&sfr, |
400 | _strdup("8bf"),"Filter plugin file (.8bf)\0*.8bf\0\0",1 |
400 | "8bf","Filter plugin file (.8bf)\0*.8bf\0\0",1 |
401 | #ifdef _WIN32 |
401 | #ifdef _WIN32 |
402 | ,gdata->hWndMainDlg |
402 | ,gdata->hWndMainDlg |
403 | #endif /* _WIN32 */ |
403 | #endif /* _WIN32 */ |
404 | )) |
404 | )) |
405 | make_standalone(&sfr); |
405 | make_standalone(&sfr); |