Changeset 321 for branches


Ignore:
Timestamp:
Sep 1, 2009, 9:16:39 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

GUI-Tools: More work on EVFSGUI V.next (Retry code added)

Location:
branches/guitools-2.0/evfsgui
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/guitools-2.0/evfsgui/changes

    r320 r321  
    1717- Added: smbtree.vrs: Enhanced guessicon()
    1818- Added: Preliminary context menus for Browse View and Connection details view
     19- Added: "Retry" for passive connections (only manually for now)
    1920- Changed: Several changes in GUI style (as suggested by Alex Taylor)
    2021- Changed: Left align buttons in current connections panel (as suggested by
     
    3233- Create Icon. stem in order to ease maintainance of icons
    3334- Create mechanism to save passive connections across sessions
    34 - Functionality of context menus for Browse View and Connection details view
    3535- Debug on/off option is badly implemented (rework required)
    3636- smbtree.vrs: Sort options
  • branches/guitools-2.0/evfsgui/evfsgui.VRP

    r320 r321  
    44MacroPath: VRM: U:\Develop\Samba\guitools-2.0\smbclgui
    55EXEPath:
    6 RunParameters:
     6RunParameters: y:\test.evp
    77RunDirectory:
    88VRXWindow: __VREMainWindow,1,530,2457,879,4071
    99VRXWindow: __VRESectionListWindow,1,337,11708,11623,3686
    10 VRXWindow: __VREToolsWindow,1,518,530,6993,1669
     10VRXWindow: __VREToolsWindow,1,518,530,6984,1659
    1111VRXWindow: __VREWindListWindow,1,482,7661,2650,3150
    1212UserFile: 1
    1313UserWindow: Main,1
    14 UserWindow: SW_ADVANCED,1
    15 UserWindow: SW_LOGIN,1
    16 UserWindow: SW_MOUNTPOINT,1
  • branches/guitools-2.0/evfsgui/evfsgui.VRX

    r320 r321  
    200200*/
    201201CB_MOUNT_Change:
     202    IF options.!debug == 1 THEN SAY time()' '||"CB_MOUNT_Change started"
    202203
    203204    mount = VRGet("CB_MOUNT", "Selected")
     
    249250        END
    250251    END
     252    IF options.!debug == 1 THEN SAY time()' '||"CB_MOUNT_Change done"
    251253
    252254RETURN
     
    255257*/
    256258CN_CONDET_ContextMenu:
     259    rh = VRInfo('Record')
     260    if VRMethod( 'CN_CONDET', "ValidateRecord", rh) <> 1 then return
     261    if VRMethod( 'CN_CONDET', "GetFieldData", rh, CD.StatusFH) = '#68:PMWP.DLL' then do
     262        ok = VRSet("Menu_Selected_Retry",  "Enabled",1)
     263        ok = VRSet("Menu_Selected_Remove", "Enabled",1)
     264    end
    257265    ok = VRMethod( "Menu_Selected", "Popup", , , "", "" )
    258266return
     
    11051113
    11061114    ok = VRset("DT_STATUSBAR","Top",     8)
    1107     ok = VRset("DT_STATUSBAR","Left",    8)
    1108     ok = VRset("DT_STATUSBAR","Width",   VRGet("GB_CURRENT","Width")+VRGet("GB_SMBTREE","Width")+60-24*2)
     1115    ok = VRset("DT_STATUSBAR","Left",    8+24)
     1116    ok = VRset("DT_STATUSBAR","Width",   VRGet("GB_CURRENT","Width")+VRGet("GB_SMBTREE","Width")+60-24*3)
    11091117
    11101118    ok = VRset("Main","Painting", 1)
     
    11521160    ok = VRSet("CB_MOUNT","Selected",1)
    11531161    ok = VRSet("CB_MOUNT","Value",mtype.1)
    1154 say "Tadaa "p_string
     1162
    11551163    parse var p_string p_domain':\\'p_server'\'p_share
    11561164
     
    12461254
    12471255    do I = 1 to selrec.0
    1248         if VRMethod("CN_CONDET", "GetFieldData", selrec.I, cd.statusfh) = '#68:PMWP.DLL' then do
    1249            /*  CALL VRMethod 'CN_CONDET', 'RemoveRecord', selrec.I */
    1250 
    1251         end
     1256
     1257        p_mpoint    = VRMethod("CN_CONDET", "GetFieldData", selrec.I, CD.MpointFH)
     1258
     1259        p_workgroup = VRMethod("CN_CONDET", "GetFieldData", selrec.I, CD.WorkgroupFH)
     1260        p_server    = VRMethod("CN_CONDET", "GetFieldData", selrec.I, CD.ServerFH)
     1261        p_share     = VRMethod("CN_CONDET", "GetFieldData", selrec.I, CD.ShareFH)
     1262        p_user      = VRMethod("CN_CONDET", "GetFieldData", selrec.I, CD.UserFH)
     1263        p_password  = x2c(VRMethod("CN_CONDET", "GetFieldData", selrec.I, CD.SpasswordFH))
     1264
     1265        ShareLevel = 1
     1266        if p_share     = "" then ShareLevel = 2
     1267        if p_server    = "" then ShareLevel = 3
     1268        if p_workgroup = "" then ShareLevel = 4
     1269
     1270        ok = VRSet( "CB_MOUNT", "Selected", Sharelevel )
     1271        ok = VRset("CB_MOUNT"  , "Value", mtype.sharelevel)
     1272
     1273        ok = VRset("EF_SERVER" ,  "Value", p_server)
     1274        ok = VRset("EF_SHARE"  ,  "Value", p_share)
     1275        ok = VRset("EF_NETWORK",  "Value", p_workgroup)
     1276        ok = VRset("EF_USER"   ,  "Value", p_user)
     1277        ok = VRset("EF_PASSWORD", "Value", p_password)
     1278
     1279        parse var p_mpoint p_drv '\' p_dir
     1280
     1281        p_dir = strip(p_dir,'T','\')
     1282
     1283        ok = VRset("CB_DRIVES"      ,  "Value", p_drv)
     1284        ok = VRset("EF_DIRECTORY"   ,  "Value", p_dir)
     1285
     1286        ok = VRMethod("CN_CONDET", "RemoveRecord", selrec.I)
     1287
     1288        CALL PB_MOUNT_Click
     1289
    12521290    end
    12531291return
     
    14401478            xx = VRMessage('Main', NLVGetMessage( 36,  options.!user||upw'@'options.!workgroup'\\'options.!server'\'options.!share, vfs.!mountpoint )||'0D0A'x||'0D0A'x||SysGetMessage(ok)||'0D0A'x||'0D0A'x||SysGetMessage(ok, 'OSO001H.MSG'), NLVGetMessage(37), 'W')
    14411479        end
    1442         if cd.lastrh <> '' then ok = VRMethod("CN_CONDET", "SetFieldData", cd.lastrh, cd.statusfh, '#68:PMWP.DLL')
     1480        if cd.lastrh <> '' then do
     1481            ok = VRMethod("CN_CONDET", "SetFieldData", cd.lastrh, cd.statusfh, '#68:PMWP.DLL') /* Passive Connection icon */
     1482            ok = VRMethod("CN_CONDET", "SetFieldData", cd.lastrh, cd.passwordfh, '') /* remove pain text password */
     1483        end
    14431484
    14441485        /* In case the mountpoint was created for this failed operation, it is (optionally) removed again */
     
    16151656    CALL NLVSetText 'Menu_File_LOAD',     'Caption', 31
    16161657    CALL NLVSetText 'Menu_File_ADVANCED', 'Caption', 24
     1658
     1659    CALL NLVSetText 'Menu_Selected_Connect', 'Caption', 28
     1660    CALL NLVSetText 'Menu_Selected_Remove',  'Caption', 89
     1661    CALL NLVSetText 'Menu_Selected_Retry',   'Caption', 90
     1662
    16171663    CALL NLVSetText 'Menu_Help_Extended', 'Caption', 4
    16181664
     
    17381784        ok = VRMethod("CN_CONDET", "SetFieldData", cd.lastrh, cd.passwordfh, p_password, cd.spasswordfh, p_spassword, cd.masterfh, p_master, cd.mtypefh, p_mtype)
    17391785        ok = VRMethod("CN_CONDET", "SetFieldData", cd.lastrh, cd.memlenfh, p_memlen, cd.easupportfh, p_easupport, cd.logfilefh, p_logfile, cd.loglevelfh, p_loglevel, cd.rwfh, p_rw)
    1740         ok = VRMethod("CN_CONDET", "SetFieldData", cd.lastrh, cd.statusfh, '#64:PMWP.DLL')
     1786        ok = VRMethod("CN_CONDET", "SetFieldData", cd.lastrh, cd.statusfh, '#64:PMWP.DLL') /* Active */
    17411787
    17421788        hashstr = p_mpoint' 'translate(p_domain)' 'translate(p_server)' 'translate(p_share)' 'p_user' 'p_spassword' 'p_easupport' 'p_rw
  • branches/guitools-2.0/evfsgui/evfsi_de.mkm

    r317 r321  
    9595EVG0087I: ~Knopfleiste
    9696EVG0088I: ~Verbindungsdetailanzeige
    97 EVG0089?:
    98 EVG0090?:
     97EVG0089I: Entfernen
     98EVG0090I: Nochmals versuchen
    9999EVG0091?:
    100100EVG0092?:
  • branches/guitools-2.0/evfsgui/evfsi_en.mkm

    r317 r321  
    9494EVG0086I: ~Tree view
    9595EVG0087I: ~Buttons
    96 EVG0088?: ~Connection details view
    97 EVG0089?:
    98 EVG0090?:
     96EVG0088I: ~Connection details view
     97EVG0089I: Remove
     98EVG0090I: Retry
    9999EVG0091?:
    100100EVG0092?:
Note: See TracChangeset for help on using the changeset viewer.