Changeset 49 for trunk/gui/printer
- Timestamp:
- Dec 17, 2014, 1:36:21 PM (11 years ago)
- Location:
- trunk/gui/printer/manager
- Files:
-
- 4 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/printer/manager/PRINTOOL.VRP
r39 r49 2 2 VRX: PRINTOOL.VRX 3 3 VXOFile: VROBJEX 4 MacroPath: VRM: G:\netlabs\svn\ecups\trunk\gui\printer\manager5 EXEPath: G:\netlabs\svn\ecups\trunk\gui\printer\manager\PRINTMAN.EXE4 MacroPath: VRM:E:\DEVELOPMENT\VXREXX\Projects\PrintTool 5 EXEPath: E:\Development\VXREXX\Projects\PrintTool\PRINTMAN.EXE 6 6 RunParameters: 7 7 RunDirectory: 8 VRXWindow: __VREMainWindow,1,5 54,4095,6697,80469 VRXWindow: __VRESectionListWindow,1,6 87,16044,4204,405910 VRXWindow: __VREToolsWindow,1,6 87,14309,4963,166911 VRXWindow: __VREWindListWindow,1,4 902,16044,3505,40598 VRXWindow: __VREMainWindow,1,506,4095,6697,8046 9 VRXWindow: __VRESectionListWindow,1,614,16044,4204,4059 10 VRXWindow: __VREToolsWindow,1,638,14309,5472,1659 11 VRXWindow: __VREWindListWindow,1,4854,16044,3505,4059 12 12 UserFile: 1 13 13 UserWindow: WN_MAIN,1 -
trunk/gui/printer/manager/PRINTOOL.VRX
r48 r49 507 507 * possible situations. 508 508 */ 509 ImportPPD: PROCEDURE EXPOSE globals. 509 ImportPPD: PROCEDURE EXPOSE globals. driver_path 510 510 ARG driver, ppdfile 511 511 IF driver == '' THEN driver = 'PSCRIPT' … … 522 522 WHEN status == 1 THEN NOP 523 523 524 /* An installable ( working) copy of the driver could not be located, but525 * we found an installed (in use) version whence we can grab the files.524 /* An installable (distribution) copy of the driver could not be located, 525 * but we found an installed (in use) version whence we can grab the files. 526 526 */ 527 527 WHEN status == 2 THEN DO … … 588 588 */ 589 589 590 /** TODO should move all below this into a new shared function **/ 590 /**** Moved all below this into a shared function 591 591 592 592 CALL LINEOUT globals.!log1, 'Driver source: ' driver_path … … 782 782 IF ok == 1 THEN 783 783 ok = VRCopyFile( workdir'\OUT\AUXPRINT.PAK', target'\AUXPRINT.PAK') 784 784 785 IF ok == 1 THEN DO 785 786 /* Copy the updated files to \OS2\DLL\<driver>, replacing any 786 787 * existing copies. (This prevents problems if the OS/2 driver 787 * installation doesn't/fails to copy them, which can happen under788 * somecircumstances.)788 * installation fails to copy them, which can happen under some 789 * circumstances.) 789 790 */ 790 791 IF VRFileExists( globals.!os2dir'\DLL\'driver'\'driver'.DRV') THEN DO … … 814 815 CALL VRRmDir( workdir ) 815 816 816 RETURN 0 817 ****/ 818 819 ok = PinWrapper( 1, driver, ppdfile ) 820 821 RETURN ok 817 822 818 823 /*:VRX Init … … 890 895 LoadSettings: PROCEDURE EXPOSE globals. 891 896 892 globals.!version = '0. 46'893 globals.!copyright = '2013 '897 globals.!version = '0.50' 898 globals.!copyright = '2013-2014' 894 899 895 900 me = VRGet('Application', 'Program') … … 1194 1199 END 1195 1200 ELSE DO 1196 cupswiz = Stream( globals.!cupsdir'\cups \cupswiz.exe', 'C', 'QUERY EXISTS')1201 cupswiz = Stream( globals.!cupsdir'\cupswiz.exe', 'C', 'QUERY EXISTS') 1197 1202 _workdir = VRParseFilePath( cupswiz, 'DP') 1198 1203 _parms = '' … … 1203 1208 IF ppd_file <> '' & VRFileExists( ppd_file ) THEN 1204 1209 _parms = _parms ppd_file 1210 CALL LINEOUT globals.!log1, 'Launching CUPS wizard with: start' cupswiz _parms 1205 1211 ADDRESS CMD 'start' cupswiz _parms 1206 1212 CALL DIRECTORY od 1207 1213 CALL Quit 1208 1214 END 1215 ELSE DO 1216 CALL LINEOUT globals.!log1, 'Failed to locate CUPS wizard.' 1217 END 1218 1209 1219 1210 1220 RETURN … … 1387 1397 END 1388 1398 driver = VRGet('DDCB_IMPORTDRV', 'Value') 1389 ok = ImportPPD( driver, new_ppd ) 1399 ok = ImportPPD( driver, new_ppd ) /* Also sets driver_path variable */ 1390 1400 1391 1401 SELECT … … 1439 1449 IF message <> '' THEN 1440 1450 CALL VRMessage VRWindow(), _message, _mbtitle, _mbicon 1451 1452 IF ok == 0 THEN DO 1453 /* The PPD was imported into the driver install directory. Now we should 1454 * ask the user if they want to actually install this printer driver so 1455 * that existing printer objects can use it. 1456 */ 1457 _new_model = GetNameFromPPD( new_ppd ) 1458 _btns.0 = 2 1459 _btns.1 = NLSGetMessage( 14 ) 1460 _btns.2 = NLSGetMessage( 15 ) 1461 _create = VRMessage( VRWindow(), NLSGetMessage( 240, _new_model ) || '0d0d0a'x ||, 1462 NLSGetMessage( 241 ), NLSGetMessage( 239 ), 'Q', '_btns.', 1, 2 ) 1463 IF _create == 1 THEN DO 1464 _ipd = InstallPrintDriver( driver, driver_path, _new_model ) 1465 IF _ipd <> 0 THEN 1466 CALL VRMessage VRWindow(), NLSGetMessage( 168, driver'.'_new_model ), NLSGetMessage( 13 ), 'E' 1467 END 1468 END 1441 1469 1442 1470 CALL SW_IMPORT_Close … … 1588 1616 1589 1617 ok = CopyPrinterPak( new_drv, drv_target ) 1618 1619 /* Update any previously-imported PPDs for this driver 1620 */ 1621 IF ok == 1 THEN DO 1622 /* TODO use drv_target and parse it for pmdx directly */ 1623 driver_path = GetDriverSource( drv_stem ) /* Also sets pmdx */ 1624 IF pmdx == '' THEN 1625 driver_repo = 0 1626 ELSE 1627 driver_repo = 1 1628 pwok = PinWrapper( 0, drv_stem, '') 1629 IF pwok <> 0 THEN DO 1630 CALL CHAROUT globals.!log1, 'Encountered error' pwok 'from PIN wrapper:' 1631 SELECT 1632 WHEN ok == 3 THEN CALL LINEOUT globals.!log1, 'Invalid path specified' 1633 WHEN ok == 4 THEN CALL LINEOUT globals.!log1, 'Failed to copy driver files' 1634 WHEN ok == 5 THEN CALL LINEOUT globals.!log1, 'Failed to create directory' 1635 WHEN ok == 6 THEN CALL LINEOUT globals.!log1, 'PPD import failed' 1636 WHEN ok == 7 THEN CALL LINEOUT globals.!log1, 'Error updating PRDESC.LST' 1637 OTHERWISE CALL LINEOUT globals.!log1, 'Unknown error' 1638 END 1639 ok = 0 1640 END 1641 END 1642 1590 1643 IF existing & ok == 1 THEN DO 1591 CALL UpdatePrDesc new_drv, drv_target'\'new_drv1644 CALL UpdatePrDesc drv_name, drv_target'\'drv_name 1592 1645 END 1593 1646 IF ok == 0 THEN DO … … 1597 1650 ELSE 1598 1651 CALL VRMessage VRWindow(), NLSGetMessage( 193 ), NLSGetMessage( 16 ), 'I' 1652 1653 new_drv = drv_target'\'drv_name 1599 1654 END 1600 1655 END -
trunk/gui/printer/manager/printm_en.txt
r39 r49 251 251 PTM0237I: You cannot import a PPD file unless you have either CUPS or at least one legacy PostScript driver installed. 252 252 PTM0238I: The PPD has been imported. 253 PTM0239 ?:254 PTM0240 ?:255 PTM0241 ?:253 PTM0239I: Install Driver? 254 PTM0240I: The driver "%1" is now available. Do you want to install this driver? 255 PTM0241I: (Saying 'Yes' will allow existing printer objects to use this driver.) 256 256 PTM0242?: 257 257 PTM0243?: -
trunk/gui/printer/manager/readme.txt
r48 r49 1 1 PM Printer Manager 2 Version 0. 462 Version 0.50 3 3 4 4 Printer Manager is a new graphical printer management tool designed to 5 5 replace several older, separate programs by integrating their functions 6 in one, centralize utility:6 in one, centralized utility: 7 7 - INSTPDR.EXE (done) 8 8 - ECSPRINT.EXE (done) … … 16 16 - WPTOOLS.DLL (widely available, included with eCS) 17 17 - PR1UTIL.DLL (widely available, included with eCS 2.x) 18 - VROBJEX.DLL (included here, to be included in eCS 2.2) 18 - VROBJEX.DLL (available from http://trac.netlabs.org/vxapps, 19 included in eCS 2.2) 19 20 - RXPRTUTL.DLL (included here) 20 21 … … 71 72 -- 72 73 Alex Taylor 73 May201474 December 2014
Note:
See TracChangeset
for help on using the changeset viewer.