Changeset 50 for trunk/gui


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.

Location:
trunk/gui/printer/cupswiz
Files:
2 edited

Legend:

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

    r24 r50  
    11VX-REXX OS/2 V2.14 Build B3
    22VRX: cupswiz.VRX
    3 MacroPath: VRM:G:\netlabs\svn\ecups\trunk\gui\printer\cupswiz
     3MacroPath: VRM:E:\DEVELOPMENT\VXREXX\Projects\cupswiz
    44EXEPath:
    55RunParameters:
    66RunDirectory:
    77VRXWindow: __VREMainWindow,1,614,2554,5770,9106
    8 VRXWindow: __VRESectionListWindow,1,675,11804,4529,3891
    9 VRXWindow: __VREToolsWindow,1,1686,9877,4968,1669
     8VRXWindow: __VRESectionListWindow,1,687,11804,4529,3891
     9VRXWindow: __VREToolsWindow,1,1686,9877,5471,1659
    1010VRXWindow: __VREWindListWindow,1,5228,11804,2650,3891
    1111UserFile: 1
  • 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.