Ignore:
Timestamp:
Dec 27, 2014, 6:55:22 AM (11 years ago)
Author:
Alex Taylor
Message:

Removed debug output on /R option in CUPWIZ, plus a few minor tweaks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/printer/cupswiz/cupswiz.VRX

    r45 r50  
    561561    call VRSet window, "Visible", 0
    562562    drop window
     563
     564    CALL PrintManCheckIn 'CUPSWIZ DONE'
     565
    563566return 0
    564567
     
    11361139            globals.!cupsdir = InitArgs.1
    11371140        ELSE IF InitArgs.i == '/R' THEN DO
    1138 say 'remote'
    11391141            globals.!cupsdir = ''
    11401142            _force_remote = 1
     
    11571159    IF VRFileExists( globals.!log2 ) THEN
    11581160        CALL VRDeleteFile globals.!log2
     1161
     1162    CALL PrintManCheckIn 'CUPSWIZ INIT'
    11591163
    11601164    window = VRWindow()
     
    16261630RETURN
    16271631
     1632/*:VRX         PrintManCheckIn
     1633*/
     1634PrintManCheckIn: PROCEDURE
     1635    PARSE ARG data
     1636
     1637    /* This function attempts to report in to Printer Manager (if it's running)
     1638     * by using a named pipe.
     1639     */
     1640    IF data == '' THEN RETURN 0
     1641
     1642    npipe = '\PIPE\PRINTMAN'
     1643    RC_PIPE_BUSY = '231'
     1644
     1645    PARSE UPPER VALUE STREAM( npipe, 'C', 'OPEN WRITE') WITH state ':' rc .
     1646    IF state <> 'READY' THEN DO
     1647        IF rc == RC_PIPE_BUSY THEN
     1648            rc = SysWaitNamedPipe( npipe, 0 )
     1649        IF rc <> 0 THEN RETURN 0
     1650    END
     1651    CALL CHAROUT npipe, data
     1652    CALL STREAM npipe, 'C', 'CLOSE'
     1653
     1654RETURN 0
     1655
    16281656/*:VRX         PromptForPMName
    16291657*/
     
    19011929    CALL NLSSetText 'DT_ABOUT1', 'Caption', 11                                          /* 11: eCups Printer Install Utility */
    19021930    CALL NLSSetText 'DT_ABOUT2', 'Caption', 12, '1.05'                                  /* 12: Version %1 */
    1903     CALL NLSSetText 'DT_ABOUT3', 'Caption', 13, '2010, 2013'                            /* 13: (C) %1 Alex Taylor */
     1931    CALL NLSSetText 'DT_ABOUT3', 'Caption', 13, '2010-2014'                             /* 13: (C) %1 Alex Taylor */
    19041932    CALL NLSSetText 'PB_ABOUT',  'Caption', 2                                           /* 10: Product Information */
    19051933
Note: See TracChangeset for help on using the changeset viewer.