Ignore:
Timestamp:
Nov 11, 2011, 9:45:52 AM (14 years ago)
Author:
Herwig Bauernfeind
Message:

GUI-Tools: EVFSGUI 2.5.x: Several fixes, smaller additions

File:
1 edited

Legend:

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

    r660 r661  
    692692    CALL NLVSetText 'Menu_File_SAVE',                 "Caption", 30
    693693    CALL NLVSetText 'Menu_File_LMHosts_Reset',        "Caption", 127
     694    CALL NLVSetText 'Menu_File_ucCred_Reset',         "Caption", 128
    694695    CALL NLVSetText 'Menu_File_Autostart',            "Caption", 35
    695696    CALL NLVSetText 'Menu_File_Autostart_Activate',   "Caption", 76
     
    13561357*/
    13571358_SmbConfCreateShadowCopy:
     1359    IF options.!debug == 1 THEN SAY time()' _SmbConfCreateShadowCopy started'
    13581360    /* we create a complete version of smb.conf in temporary directory for reading purposes */
    13591361    /* as we can only determine a default value from this complete version of the file */
    13601362    /* however it is not desirable to always have a complete copy normally */
    13611363    ok = SysFileDelete(samba.!shadowsmbconf)
    1362     say         samba.!testparmexe' -v -s 1>'samba.!shadowsmbconf' 2>'TempDir'testparm.stderr'
     1364    say     '  'samba.!testparmexe' -v -s 1>'samba.!shadowsmbconf' 2>'TempDir'testparm.stderr'
    13631365    address cmd samba.!testparmexe' -v -s 1>'samba.!shadowsmbconf' 2>'TempDir'testparm.stderr'
     1366    IF options.!debug == 1 THEN SAY time()' _SmbConfCreateShadowCopy done'
    13641367return
    13651368
     
    14481451    icons.!folder           = '#26:PMWP.DLL'
    14491452    icons.!folder_open      = '#34:PMWP.DLL'
     1453    icons.!machine_awake    = '#35:PMWP.DLL'
    14501454    icons.!machine_sleeping = '#61:PMWP.DLL'
     1455    icons.!workgroup        = '#62:PMWP.DLL'
     1456    icons.!pdc              = '#63:PMWP.DLL'
    14511457    icons.!active           = '#64:PMWP.DLL'
    14521458    icons.!passive          = '#68:PMWP.DLL'
     
    15141520*/
    15151521_UserCredUpdate:
     1522    IF options.!debug == 1 THEN SAY time()' _UserCredUpdate started'
    15161523    credentials.!username = VRGet("EF_USER","Value")
    15171524    credentials.!password = VRGet("EF_PASSWORD","Value")
     
    15261533    end
    15271534    else call beep 200, 20
     1535    IF options.!debug == 1 THEN SAY time()' _UserCredUpdate done'
    15281536return
    15291537
     
    30523060Menu_File_LMHosts_Reset_Click:
    30533061    ok = SysFileDelete(samba.!lmhosts)
     3062    /* FIXME: Add a message box here */
    30543063return
    30553064
     
    31103119Menu_File_Save_Click:
    31113120    call PB_CONDET_SAVE_Click
     3121return
     3122
     3123/*:VRX         Menu_File_ucCred_Reset_Click
     3124*/
     3125Menu_File_ucCred_Reset_Click:
     3126    ok = _ucDelUc()
     3127    /* FIXME: Add a message box here */
    31123128return
    31133129
     
    44974513SW_LOGIN_Create:
    44984514    call SW_LOGIN_Init
     4515    ok = VRSet("SW_LOGIN","Caption",NLVGetMessage(136)' 'strip(p_workgroup' \\'p_server'\'p_share,'T','\'))
    44994516    CALL NLVSetText 'DT_USER1',       "Caption", 25
    45004517    CALL NLVSetText 'DT_PASSWORD1',   "Caption", 26
     
    45034520    CALL NLVSetText 'PB_LOGIN_CANCEL',"Caption", 3
    45044521
    4505     /* ok = VRSet("Pict_Login","PicturePath", SMBObj.icon) */
     4522    select
     4523        when pos("PDC",VRMethod("CN_smbtree", "GetFieldData", SMBObj.rh, MBFH)) > 0 then LoginIcon = "#63:PMWP.DLL" /* icons.!pdc */
     4524        when SMBObj.udatatype = "WORKGROUP" then LoginIcon = SMBObj.Icon
     4525        when SMBObj.udatatype = "SERVER" then LoginIcon = SMBObj.Icon
     4526        otherwise LoginIcon = "#35:PMWP.DLL" /* icons.!machine_awake */
     4527    end
     4528say loginicon
     4529    ok = VRSet("Pict_Login","PicturePath", LoginIcon)
    45064530    ok = VRSet("EF_USER1","Value",VRGet("EF_USER","Value"))
    45074531    ok = VRSet("EF_PASSWORD1","Value",VRGet("EF_PASSWORD","Value"))
Note: See TracChangeset for help on using the changeset viewer.