Changeset 703 for trunk/guitools/evfsgui


Ignore:
Timestamp:
Jun 13, 2012, 12:08:42 PM (13 years ago)
Author:
Herwig Bauernfeind
Message:

GUI-Tools: Updates in EVFSGUI/SMBMON/Shared code

Location:
trunk/guitools/evfsgui
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/guitools/evfsgui/evfsgui.RC

    r697 r703  
    2727BITMAP 36 .\rc\icons\green-on-16.bmp
    2828BITMAP 37 .\rc\icons\green-off-16.bmp
     29icon 50 .\rc\icons\smbwait.ico
    2930icon 68 .\rc\icons\passive.ico
    3031icon 80 .\rc\icons\PDF.ICO
  • trunk/guitools/evfsgui/evfsgui.vrp

    r702 r703  
    1010VRXWindow: __VREMainWindow,1,1951,2361,891,7841
    1111VRXWindow: __VREFileListWindow,1,1253,11033,2665,3358
    12 VRXWindow: __VRESectionListWindow,1,1229,11900,10696,3342
     12VRXWindow: __VRESectionListWindow,1,1156,12382,12238,5095
    1313VRXWindow: __VREToolsWindow,0,3096,8528,6486,1669
    1414VRXWindow: __VREWindListWindow,1,723,11708,3686,3150
     
    1717UserWindow: SW_LOGIN,1
    1818UserWindow: SW_INFO,1
    19 UserWindow: SW_SMBTREE,1
    2019UserWindow: SW_CONDET,1
     20UserWindow: SW_DIALOG,1
  • trunk/guitools/evfsgui/evfsgui.vrx

    r702 r703  
    753753    END
    754754
     755    if (mtype.1 = '' & mtype.2 = '' & mtype.3 = '' & mtype.4 = '') THEN DO /* we do not seem to have an NLV file */
     756        /* we fill the array with the list predefined directly in the GUI control */
     757        ok = VRMethod( "CB_MOUNT", "GetStringList", "mtype." )
     758    end
     759
    755760    /* SMBTree */
    756761    CALL NLVSetText 'PB_SMBTREE_CONNECT',             "Caption", 28
     
    770775    /* Common margin around controls */
    771776    margin = ((VRGet("Main", "InteriorLeft") / 3) * 2) + 2
     777
     778    smbwait = "#50"
    772779
    773780    if options.!debug == 1 then say time()' _GUIInit done'
     
    792799
    793800    say _ucInitObj()
    794 
    795     options.!storecreds = _ucChkObj()
     801    say _ucChkObj()
    796802
    797803    IF STREAM( settings.!ini, 'C', 'QUERY EXISTS') == '' THEN DO
     
    878884        IF advanced.!lmhosts    == '' THEN advanced.!lmhosts    = 1
    879885
     886        options.!storecreds = VRGetIni('Settings', 'StoreCreds', settings.!ini)
     887say "options.!storecreds = "options.!storecreds
     888        IF options.!storecreds == '' then options.!storecreds = 1
     889                                     
     890say "options.!storecreds = "options.!storecreds
     891        IF _ucChkObj() = 0 then options.!storecreds = 0           
     892say "options.!storecreds = "options.!storecreds
     893
    880894        options.!debug = VRGetIni('Settings', 'Debug', settings.!ini)
    881895        IF options.!debug == '' THEN options.!debug = 0       /* Turn off debug by default for release builds */
     
    983997    CALL VRSetIni 'Settings', 'LMHosts',       advanced.!lmhosts    , settings.!ini, 'NoClose'
    984998
     999    CALL VRSetIni 'Settings', 'StoreCreds',    options.!storecreds  , settings.!ini, 'NoClose'
    9851000    CALL VRSetIni 'Settings', 'Debug',         options.!debug       , settings.!ini, 'NoClose'
    9861001    CALL VRSetIni 'Settings', 'MiniIcons',     advanced.!miniicons  , settings.!ini, 'NoClose'
     
    10611076            if datatype(T1) = "NUM" & datatype(T2) = "NUM" & datatype(T3) = "NUM" & datatype(T4) = "NUM" then do
    10621077                FoundName = 0
     1078                /* Don't add a local link IP to LMHosts - workaround only */
     1079                if T1 = '169' & T2 = '254' then iterate
    10631080                do J = 1 to lmname.0 /* machine already in LMHosts? */
    10641081                    if lmname.J = SmbObj.resname then do /* Yes? then update IP */
     
    13871404_ShowMsg:
    13881405    /* preliminary implementation - we just do not ignore it anymore -
    1389        - ShowMsg from smbmon/smbusers shoule become a shared library */
     1406       - ShowMsg from smbmon/smbusers should become a shared library */
    13901407    ok = VRSet("DT_StatusBar", "Caption", Msg.Text)
    13911408return
     
    16231640
    16241641    mount = VRGet("CB_MOUNT", "Value")
     1642
     1643    /* Catch empty mount type error */
     1644    if mount = "" then do
     1645        if mtype.1 <> "" then ok = VRSet("CB_MOUNT", "Value", mtype.1)
     1646        if options.!debug == 1 then say time()' '||"CB_MOUNT_Change aborted"
     1647        return
     1648    end
    16251649
    16261650    SELECT
     
    16571681            CALL NLVSetText "DT_NETWORK", "Caption", 22
    16581682        END
     1683        OTHERWISE DO
     1684            id = VRMessage( "", 'unknown mount type here >>'mount'<< mtype1=>>'mtype.1'<<', "Mount change error", "E", )
     1685        END       
    16591686    END
    16601687    if options.!debug == 1 then say time()' '||"CB_MOUNT_Change done"
     
    25652592*/
    25662593Main_Create:
    2567     options.!debug    = 0
     2594    options.!debug    = 1
    25682595    if options.!debug == 1 then do
    25692596        ok = VRRedirectStdIO("ON")
     
    32053232*/
    32063233Menu_File_ucCred_Reset_Click:
    3207     ok = _ucDelUc()
     3234    if _ucChkUc() then ok = _ucDelUc()
    32083235    ok = VRSet("Pict_PWINMEM","PicturePath","#37")
    3209     ok = VRSet("EF_USER","Value","")
     3236    ok = VRSet("EF_USER",    "Value","")
    32103237    ok = VRSet("EF_PASSWORD","Value","")
    3211     /* FIXME: Add a message box here */
     3238    call _UserCredUpdate
    32123239return
    32133240
     
    36863713    CALL SW_ADVANCED_Init_Content
    36873714RETURN
     3715
     3716/*:VRX         PB_ClearCred_Click
     3717*/
     3718PB_ClearCred_Click:
     3719    call Menu_File_ucCred_Reset_Click
     3720return
    36883721
    36893722/*:VRX         PB_CONDET_HELP_Click
     
    40924125        ok = VRSet("PB_SETTINGS_UNDO","Enabled", 0)
    40934126    end
     4127    if options.!storecreds = 0 then call Menu_File_ucCred_Reset_Click
    40944128return
    40954129
     
    41084142/*:VRX         PB_SMBTREE_CONNECT_Click
    41094143*/
    4110 PB_SMBTREE_CONNECT_Click: PROCEDURE EXPOSE settings. options. icons. fs. advanced. cd. samba.
     4144PB_SMBTREE_CONNECT_Click: PROCEDURE EXPOSE settings. options. icons. fs. advanced. cd. samba. mtype.
    41114145    if options.!debug == 1 then say time()' '||"PB_CONNECT_Click started"
    41124146
     
    45944628        say '  Icon:     "'SMBObj.icon'"'
    45954629    end
    4596 
     4630say "Vorher:"rpc.srvinfo.OS_VERSION
     4631    drop rpc.
     4632say "Vorher:"rpc.srvinfo.OS_VERSION
    45974633    rpc_success = _rpcsrvinfo(SMBObj.resname,credentials.!username,credentials.!password)
    45984634
     
    46164652        ok = VRMethod( "CN_INFO", "SetFieldData", Info.!version,Info.TypeFH, strip(NLVGetMessage(139),'T',':'),Info.ValueFH, rpc.srvinfo.OS_VERSION)
    46174653        ok = VRMethod( "CN_INFO", "SetFieldData", Info.!status, Info.TypeFH, strip(NLVGetMessage(67),'T',':'),Info.ValueFH, rpc.srvinfo.LOGONSTATUS )
     4654        /* we did not get these, but we know them anyway */
     4655        if rpc.srvinfo.NETBIOSNAME  = "" then ok = VRMethod( "CN_INFO", "SetFieldData", Info.!nbname, Info.TypeFH, strip(NLVGetMessage(137),'T',':'),Info.ValueFH, SMBObj.resname'ø')
     4656        if rpc.srvinfo.SERVERSTRING = "" then ok = VRMethod( "CN_INFO", "SetFieldData", Info.!comment,Info.TypeFH, strip(NLVGetMessage(125),'T',':'),Info.ValueFH, SMBObj.comment'ø')
    46184657    end
    46194658    else do
Note: See TracChangeset for help on using the changeset viewer.