Changeset 45 for trunk/gui/printer
- Timestamp:
- Sep 18, 2013, 1:08:11 AM (12 years ago)
- Location:
- trunk/gui/printer
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/printer/cupswiz/cupswiz.VRX
r40 r45 286 286 */ 287 287 /* Creates an OS/2 printer port, queue, and desktop object which point to 288 * the just-created CUPS printer. Uses the RINSTPRN utility from IBM.288 * the just-created CUPS printer. 289 289 */ 290 290 CreateOS2Printer: PROCEDURE EXPOSE globals. … … 341 341 ok = CreatePrinterObject( prnt_drv, printer_model,, 342 342 port_name, queue_name, printer_title ) 343 CALL LINEOUT globals.!log1, 'CreatePrinterObject(' prnt_drv',' printer_model ,343 CALL LINEOUT globals.!log1, 'CreatePrinterObject(' prnt_drv',' printer_model ||, 344 344 ',' port_name',' queue_name',' printer_title ') RC =' ok 345 IF ok <> 0THEN DO345 IF ( ok <> 0 ) & ( printer_model <> 'Generic Postscript Printer') THEN DO 346 346 CALL LINEOUT globals.!log1, 'Failed to create printer object; trying again with generic driver.' 347 347 ok = CreatePrinterObject( prnt_drv, 'Generic Postscript Printer',, 348 348 port_name, queue_name, printer_title ) 349 CALL LINEOUT globals.!log1, 'CreatePrinterObject(' prnt_drv', Generic Postscript Printer' ,349 CALL LINEOUT globals.!log1, 'CreatePrinterObject(' prnt_drv', Generic Postscript Printer' ||, 350 350 ',' port_name',' queue_name',' printer_title ') RC =' ok 351 351 END … … 412 412 END 413 413 END 414 ELSE IF PrinterExistsInDRV( globals.!os2driver, globals.!prt_nick ) == 0 THEN DO 415 cups_ppd = globals.!prt_ppd 416 IF cups_ppd == '' THEN 417 cups_ppd = STREAM( globals.!cupsdir'\etc\cups\ppd\'globals.!prt_name'.ppd', 'C', 'QUERY EXISTS') 418 IF cups_ppd == '' THEN 419 CALL PromptForPMName 420 ELSE DO 421 ok = ImportPPD(globals.!os2driver, cups_ppd ) 422 IF ok <> 0 THEN DO 423 CALL LINEOUT globals.!log1, 'PPD import failed:' ok 424 CALL VRMessage VRWindow(), NLSGetMessage( 69 ), NLSGetMessage( 70 ), 'W' 414 ELSE DO 415 drv_model = PrinterExistsInDRV( globals.!os2driver, globals.!prt_nick ) 416 IF drv_model == '' THEN DO 417 cups_ppd = globals.!prt_ppd 418 IF cups_ppd == '' THEN 419 cups_ppd = STREAM( globals.!cupsdir'\etc\cups\ppd\'globals.!prt_name'.ppd', 'C', 'QUERY EXISTS') 420 IF cups_ppd == '' THEN DO 421 CALL LINEOUT globals.!log1, 'CUPS PPD for this printer ('globals.!cupsdir'\etc\cups\ppd\'globals.!prt_name'.ppd) does not exist.' 422 CALL LINEOUT globals.!log1, 'Cannot import PPD. Prompting user for preferred printer model.' 425 423 CALL PromptForPMName 426 /* RETURN 1 RC=1 PPD import failed **/ 424 END 425 ELSE DO 426 ok = ImportPPD(globals.!os2driver, cups_ppd ) 427 IF ok <> 0 THEN DO 428 CALL LINEOUT globals.!log1, 'PPD import failed:' ok 429 CALL VRMessage VRWindow(), NLSGetMessage( 69 ), NLSGetMessage( 70 ), 'W' 430 CALL PromptForPMName 431 /* RETURN 1 RC=1 PPD import failed **/ 432 END 427 433 END 428 434 END 435 ELSE 436 /* Make sure the name matches, including case */ 437 globals.!prt_nick = drv_model 429 438 END 430 439 … … 1121 1130 _force_remote = 0 1122 1131 globals.!prt_ppd = '' 1123 IF InitArgs.0 > 0 THEN 1132 IF InitArgs.0 > 0 THEN 1124 1133 DO i = 1 TO InitArgs.0 1125 1134 InitArgs.i = TRANSLATE( InitArgs.i ) … … 1357 1366 /*:VRX PB_CREATEHELP_Click 1358 1367 */ 1359 PB_CREATEHELP_Click: 1368 PB_CREATEHELP_Click: 1360 1369 CALL VRMethod 'SW_CREATE', 'InvokeHelp' 1361 1370 return … … 1376 1385 /*:VRX PB_HELP_Click 1377 1386 */ 1378 PB_HELP_Click: 1387 PB_HELP_Click: 1379 1388 CALL VRMethod 'WN_MAIN', 'InvokeHelp' 1380 1389 return … … 1402 1411 /*:VRX PB_NETHELP_Click 1403 1412 */ 1404 PB_NETHELP_Click: 1413 PB_NETHELP_Click: 1405 1414 CALL VRMethod 'SW_NETWORK', 'InvokeHelp' 1406 1415 return … … 1891 1900 CALL NLSSetText 'SW_ABOUT', 'Caption', 10 /* 10: Product Information */ 1892 1901 CALL NLSSetText 'DT_ABOUT1', 'Caption', 11 /* 11: eCups Printer Install Utility */ 1893 CALL NLSSetText 'DT_ABOUT2', 'Caption', 12, '1.0 4' /* 12: Version %1 */1902 CALL NLSSetText 'DT_ABOUT2', 'Caption', 12, '1.05' /* 12: Version %1 */ 1894 1903 CALL NLSSetText 'DT_ABOUT3', 'Caption', 13, '2010, 2013' /* 13: (C) %1 Alex Taylor */ 1895 1904 CALL NLSSetText 'PB_ABOUT', 'Caption', 2 /* 10: Product Information */ -
trunk/gui/printer/cupswiz/readme.1st
r40 r45 1 1 CUPSWIZ - CUPS printer-creation wizard 2 Version 1.0 42 Version 1.05 3 3 4 4 This program is simple graphical front-end for creating CUPS-based printers -
trunk/gui/printer/manager/readme.txt
r42 r45 1 1 PM Printer Manager 2 Version 0.4 42 Version 0.45 3 3 4 4 Printer Manager is a new graphical printer management tool designed to
Note:
See TracChangeset
for help on using the changeset viewer.