Changeset 327 for branches


Ignore:
Timestamp:
Sep 7, 2009, 3:05:52 PM (16 years ago)
Author:
Herwig Bauernfeind
Message:

GUI-Tools: More work on EVFSGUI V.next (More bugs fixed)

Location:
branches/guitools-2.0
Files:
6 edited

Legend:

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

    r326 r327  
    2525- Added: Optionally turn on/off special ($) shares
    2626- Added: Optionally use big icons
     27- Added: Profile files may be dropped onto the current connections container
    2728- Changed: Several changes in GUI style (as suggested by Alex Taylor)
    2829- Changed: Left align buttons in current connections panel (as suggested by
     
    3334- Changed: Use PM_Default_Colors for title sections (as suggested by Alex Taylor)
    3435- Changed: German translation of "Retry"
     36- Changed: Profile behaviour: In 1.3 a new profile replaced older connections
     37           on the same volume only, in 2.x a new profile is merged with the
     38           old connections one.
    3539- Fixed: Loading a profile presented the user a half drawn window
     40- Fixed: Startup code if no evfsgui.ini is present
    3641- Fixed: CltInit uses smbclient.exe instead of smbd.exe to find Samba binaries
    3742- Fixed: Message queue during resize isn't cleared (no flashing during resize)
     
    4247- Fixed: Edit and Selected menu easily got out of sync
    4348- Fixed: Another missing record validation
     49- Fixed: Password display broken on double connection warning
    4450
    4551ToDo:
  • branches/guitools-2.0/evfsgui/evfsgui.RC

    r316 r327  
    2626BITMAP 34  eBall_24.bmp
    2727BITMAP 35  eBall_25.bmp
     28icon 68 passive.ico
  • branches/guitools-2.0/evfsgui/evfsgui.VRP

    r326 r327  
    44MacroPath: VRM: U:\Develop\Samba\guitools-2.0\smbclgui
    55EXEPath:
    6 RunParameters: -ndfs
     6RunParameters:
    77RunDirectory:
    88VRXWindow: __VREMainWindow,1,530,2457,879,4071
    99VRXWindow: __VRESectionListWindow,1,337,11708,11623,3686
    10 VRXWindow: __VREToolsWindow,1,518,530,6984,1663
     10VRXWindow: __VREToolsWindow,1,518,530,6993,1665
    1111VRXWindow: __VREWindListWindow,1,482,7661,2650,3150
    1212UserFile: 1
    1313UserWindow: Main,1
    14 UserWindow: SW_ADVANCED,1
  • branches/guitools-2.0/evfsgui/evfsgui.VRX

    r326 r327  
    280280    if VRMethod( 'CN_CONDET', "ValidateRecord", rh) <> 1 then return
    281281
     282    /* This is the place to enable specific context menu entries */
     283    ok = VRMethod( "CN_CONDET", "GetRecordList", "All", "records." )
     284    ok = VRSet("Menu_Selected_Remove", "Visible",  (records.0 <> 0))
     285    ok = VRSet("Menu_Selected_Retry",  "Visible",  (records.0 <> 0))
     286
    282287    if VRMethod( 'CN_CONDET', "GetFieldData", rh, CD.StatusFH) = '#68:PMWP.DLL' then do
    283288        ok = VRSet("Menu_Selected_Retry",  "Enabled",1)
     
    291296   
    292297    obj = VRInfo( "object" )
    293     ok = VRMethod( "CN_SMBTREE", "GetRecordList", "SourceOrSelected", "selrec." )
     298    ok = VRMethod( "CN_CONDET", "GetRecordList", "SourceOrSelected", "selrec." )
    294299    if selrec.0 = 0 then return
    295300
    296     Icon = VRMethod("CN_SMBTREE", "GetRecordAttr", selrec.1, "Icon")
     301    Icon = VRMethod("CN_CONDET", "GetRecordAttr", selrec.1, "Icon")
    297302
    298303    if Icon = "#65:PMWP.DLL" then do /* Printers not supported at the moment */
     
    460465    p_share = ''
    461466
    462     srcCtn = VRInfo( "SourceObject" )
    463     srcRec = VRInfo( "SourceRecord" )
    464     trgCtn = VRInfo( "TargetObject" )
    465     trgRec = VRInfo( "TargetRecord" )
     467    srcFile = VRInfo( "SourceFile" )
     468    srcCtn  = VRInfo( "SourceObject" )
     469    srcRec  = VRInfo( "SourceRecord" )
     470    trgCtn  = VRInfo( "TargetObject" )
     471    trgRec  = VRInfo( "TargetRecord" )
     472
     473say "srcFile = '"srcFile"'"
     474say "srcCtn  = '"srcCtn"'"
     475say "srcRec  = '"srcRec"'"
     476say "TrgCtn  = '"trgCtn"'"
     477say "TrgRec  = '"trgRec"'"
     478
     479    if srcFile <> "" then do /* A file was dropped onto the conatainer - load it */
     480        if translate(VRParseFileName(srcFile,'E')) <> translate(fs.!profileext) then do
     481            buttons.0 = 1
     482            buttons.1 = NLVGetMessage(9)
     483            ok = VRMessage('Main', "TITEL" , "TEXT", 'E','buttons.')
     484        end
     485        else do
     486            options.!autoload = 1
     487            Profile = srcFile
     488            call PB_LOAD_Click
     489        end
     490        return
     491    end
     492
     493    say VRGet(srcCtn,'Name')
    466494
    467495    ok = VRMethod("CB_MOUNT", "GetStringList", "ShareLevels." )
    468 
    469     say VRGet(srcCtn,'Name')
    470     say "TargetRecord = '"trgRec"'"
    471496
    472497    if VRGet(srcCtn,'Name') = "CN_CONDET" then do
     
    606631        return
    607632    end
     633
     634    /* This is the place to enable specific context menu entries */
    608635
    609636    ok = VRMethod( "Menu_Selected", "Popup", , , "", "" )
     
    831858/*:VRX         LoadSettings
    832859*/
    833 LoadSettings: PROCEDURE EXPOSE settings. options. fs. advanced. samba. ShowHidden
     860LoadSettings: PROCEDURE EXPOSE settings. options. fs. advanced. samba. ShowHidden FWidth
    834861    IF options.!debug == 1 THEN SAY time()' '||'LoadSettings started'
    835862
     
    842869    settings.!ini = inipath'\evfsgui.ini'
    843870    IF STREAM( settings.!ini, 'C', 'QUERY EXISTS') == '' THEN DO
     871        say "First start!"
     872        settings.!network = ""
     873        settings.!buttonson = 1
     874        settings.!smbtreeon = 1
     875        advanced.!browseimme = 1
     876
     877        ShowHidden = 0
     878
     879        CALL VRSet VRWindow(), 'Height', 7576
     880        CALL VRSet VRWindow(), 'Width',  8200
     881        CALL VRSet "SPLIT_MAIN", 'Left',  2915
    844882        CALL VRMethod VRWindow(), 'CenterWindow'
    845         settings.!network = ""
     883        call Menu_View_Buttons_Click
     884        call Menu_View_SmbTree_Click
     885        ok = VRset("GB_SMBTREE","Painting", 1)
     886        ok = VRset("GB_SMBTREE","Visible", 1)
     887
     888        call VRSet 'Main',    'Visible', 1
     889        call Main_Resize
    846890    END
    847891    ELSE DO
     
    883927        settings.!network = VRGetIni('Settings', 'Network', settings.!ini, 'NoClose')
    884928        IF settings.!network == '' THEN settings.!network = '' */
     929        settings.!network = ''
    885930
    886931        if \VRFileExists( samba.!smbconf ) then call _CreateSmbConf       
     
    897942
    898943        advanced.!browseimme = VRGetIni('Settings', 'BrowseImme', settings.!ini)
    899         IF advanced.!browseimme == '' THEN advanced.!browseimme = 0
     944        IF advanced.!browseimme == '' THEN advanced.!browseimme = 1
    900945
    901946        advanced.!debug = VRGetIni('Settings', 'Debug', settings.!ini)
     
    922967        ok = VRSet("DT_CURRENT","BACKCOLOR", settings.!curbcolor )
    923968        ok = VRSet("DT_CURRENT","FORECOLOR", settings.!curfcolor )
    924         ok = VRSet("DT_DIALOG","BACKCOLOR", settings.!curbcolor )
    925         ok = VRSet("DT_DIALOG","FORECOLOR", settings.!curfcolor )
     969        ok = VRSet("DT_DIALOG","BACKCOLOR",  settings.!curbcolor )
     970        ok = VRSet("DT_DIALOG","FORECOLOR",  settings.!curfcolor )
    926971        ok = VRSet("DT_SMBTREE","BACKCOLOR", settings.!curbcolor )
    927972        ok = VRSet("DT_SMBTREE","FORECOLOR", settings.!curfcolor )
     
    13821427        settings.!buttonson = 1
    13831428    end
     1429
    13841430    ok = VRSet("Main","Height", VRGet("GB_CURRENT", "Height") +920 +FWidth +options.!buttondelta)
    13851431return
     
    14011447    ok = VRSet("Menu_View_ConDet", "Checked",  1)
    14021448
    1403     ok = VRMethod( "CN_CONDET", "GetRecordList", "All", "records." )
    1404     ok = VRSet("Menu_Selected_Remove", "Visible",  (records.0 <> 0))
    1405     ok = VRSet("Menu_Selected_Retry", "Visible",  (records.0 <> 0))
    1406     ok = VRSet("Menu_Selected_Connect", "Visible",  0)
     1449    /* Hide any "foreign" menu entries */
     1450    ok = VRSet("Menu_Selected_Connect", "Visible", 0)
    14071451return
    14081452
     
    14451489    ok = VRSet("Menu_View_SmbTree","Checked", 1)
    14461490
    1447     ok = VRSet("Menu_Selected_Remove", "Visible",  0)
    1448     ok = VRSet("Menu_Selected_Retry", "Visible",  0)
    1449 
    1450     ok = VRSet("Menu_Selected_Connect", "Visible",  1)
     1491    /* Hide any "foreign" menu entries */
     1492    ok = VRSet("Menu_Selected_Remove", "Visible", 0)
     1493    ok = VRSet("Menu_Selected_Retry",  "Visible", 0)
    14511494return
    14521495
     
    14581501    call VRSet VRWindow(), 'Pointer', 'Wait'
    14591502
    1460     /* Attach the virtual drive */
     1503/*  Disabled because we merge profile now - in earlier revisions
     1504    we replaced it but only for preexisting drives - this made only
     1505    as long as we were unabled to detect double connections - this could be made an option!
    14611506    IF options.!autoload then do
    14621507        dyn = "ok = "fs.!prefix"RxDetach(vfs.!drive)"
     
    14651510       
    14661511        IF options.!debug == 1 THEN SAY time()' '||'Autoload Detach "'vfs.!drive'" =' ok
    1467     end
    1468     /* Only if drive is not already attached */
     1512    end */
     1513
     1514    /* Attach the virtual drive - only if drive is not already attached */
    14691515    if pos(vfs.!drive,MyFreeDriveMap("C:","FREE")) > 0 then do
    14701516        dyn = "ok = "fs.!prefix"RxAttach( vfs.!drive )"
    14711517        IF options.!debug == 1 THEN SAY time()' '||dyn
    1472             interpret dyn; drop dyn
     1518
     1519        interpret dyn; drop dyn
    14731520       
    14741521        IF options.!debug == 1 THEN SAY time()' '||'Attach "'vfs.!drive'" =' ok
     
    15211568        hash = VRMethod("CN_CONDET","GetFieldData", records.i, cd.hashfh)
    15221569        if hash = md5 & VRMethod("CN_CONDET","GetFieldData", records.i, cd.statusfh) = '#64:PMWP.DLL' then do /* Same hash, status active */
     1570            say "Double connection deteced!!"
     1571            if options.!spassword <> "" then upw = ":********"
     1572            else upw = ""
    15231573            buttons.0 = 2
    15241574            buttons.1 = NLVGetMessage(9)
    15251575            buttons.2 = NLVGetMessage(3)
    1526             Answer = VRMessage('Main',NLVGetMessage(64) , NLVGetMessage( 36,  options.!user||upw'@'options.!workgroup'\\'options.!server'\'options.!share, vfs.!mountpoint ), 'W','buttons.')
     1576            Answer = VRMessage('Main',NLVGetMessage(64) , NLVGetMessage( 36,options.!user||upw'@'options.!workgroup'\\'options.!server'\'options.!share, vfs.!mountpoint ), 'W','buttons.')
    15271577            if Answer = 2 then do
    15281578                call VRSet VRWindow(), 'Pointer', '<default>'
     1579                say "Double connection - do not mount!!"
    15291580                return
    15301581            end
     
    24392490    call _UserCredUpdate
    24402491    ok = VRset("Pict_Throbber", "Visible", 1)
     2492    ok = VRset("Menu_Selected_Connect", "Visible", 0)
    24412493    ok = VRset("TM_Throbber", "Enabled", 1)
    24422494    ShowHidden = advanced.!special
     
    29212973    ShowHidden = advanced.!special
    29222974    call _RefreshTreeDisplay
     2975    if VRget("Menu_View_SmbTree", "Checked") then do
     2976        if smbtree.!workgroup <> 'SMBTREE.!WORKGROUP' then do
     2977            ok = VRset("Menu_Selected_Connect", "Visible", VRMethod("CN_SmbTree", "ValidateRecord", smbtree.!workgroup ) )
     2978        end
     2979    end
    29232980return
    29242981
  • branches/guitools-2.0/shared/smbtree.vrs

    r325 r327  
    1212    end
    1313
    14     if ShowHidden = 'SHOWHIDDEN' | ShowHidden = '' then ShowHidden = 1
     14    if ShowHidden = 'SHOWHIDDEN' | ShowHidden = '' then ShowHidden = 0
    1515
    1616    say 'detach 'samba.!smbtreeexe' 'debuglevel' 'UserCred' >'samba.!msg
     
    3131    stat = stream(samba.!msg,'c','open read')
    3232    if stat <> "READY:" then return
     33
     34    if ShowHidden = 'SHOWHIDDEN' | ShowHidden = '' then ShowHidden = 0
    3335
    3436    ok = VRset("TM_RefreshTreeDisplay","Enabled",0)
Note: See TracChangeset for help on using the changeset viewer.