Rev 206 | Rev 221 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 206 | Rev 210 | ||
---|---|---|---|
Line 327... | Line 327... | ||
327 | StandardFileReply sfr; |
327 | StandardFileReply sfr; |
328 | NavReplyRecord reply; |
328 | NavReplyRecord reply; |
329 | static OSType types[] = {TEXT_FILETYPE,PS_FILTER_FILETYPE}; |
329 | static OSType types[] = {TEXT_FILETYPE,PS_FILTER_FILETYPE}; |
330 | char *reason; |
330 | char *reason; |
331 | Str255 fname; |
331 | Str255 fname; |
- | 332 | Boolean bak_obfusc, bak_standalone, bak_parmloaded; |
|
- | 333 | PARM_T bak_parm; |
|
332 | 334 | ||
333 | switch(item){ |
335 | switch(item){ |
334 | case IDOK: |
336 | case IDOK: |
335 | case IDCANCEL: |
337 | case IDCANCEL: |
336 | dispose_preview(); |
338 | dispose_preview(); |
Line 372... | Line 374... | ||
372 | if(savefile(&sfr)) |
374 | if(savefile(&sfr)) |
373 | completesave(&reply); |
375 | completesave(&reply); |
374 | } |
376 | } |
375 | break; |
377 | break; |
376 | case MAKEITEM: |
378 | case MAKEITEM: |
- | 379 | bak_obfusc = gdata->obfusc; |
|
- | 380 | bak_standalone = gdata->standalone; |
|
- | 381 | bak_parmloaded = gdata->parmloaded; |
|
- | 382 | memcpy(&bak_parm,&gdata->parm,sizeof(PARM_T)); |
|
- | 383 | ||
377 | if( !gdata->standalone && builddialog(gpb) ){ |
384 | if( !gdata->standalone && builddialog(gpb) ){ |
378 | PLstrcpy(fname,gdata->parm.title); |
385 | PLstrcpy(fname,gdata->parm.title); |
379 | #ifdef MACMACHO |
386 | #ifdef MACMACHO |
380 | PLstrcat(fname,(StringPtr)"\p.plugin"); |
387 | PLstrcat(fname,(StringPtr)"\p.plugin"); |
381 | #endif |
388 | #endif |
Line 392... | Line 399... | ||
392 | ,gdata->hWndMainDlg |
399 | ,gdata->hWndMainDlg |
393 | #endif /* _WIN32 */ |
400 | #endif /* _WIN32 */ |
394 | )) |
401 | )) |
395 | make_standalone(&sfr); |
402 | make_standalone(&sfr); |
396 | } |
403 | } |
- | 404 | ||
- | 405 | gdata->obfusc = bak_obfusc; |
|
- | 406 | gdata->standalone = bak_standalone; |
|
- | 407 | gdata->parmloaded = bak_parmloaded; |
|
- | 408 | memcpy(&gdata->parm, &bak_parm, sizeof(PARM_T)); |
|
- | 409 | ||
397 | break; |
410 | break; |
398 | case ZOOMINITEM: |
411 | case ZOOMINITEM: |
399 | zoomfactor = zoomfactor > 2. ? zoomfactor/2. : 1.; |
412 | zoomfactor = zoomfactor > 2. ? zoomfactor/2. : 1.; |
400 | updatezoom(dp); |
413 | updatezoom(dp); |
401 | previewerr = false; |
414 | previewerr = false; |