Changeset 319 for branches


Ignore:
Timestamp:
Aug 25, 2009, 9:17:41 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

GUI-Tools: More work on EVFSGUI V.next (several additions)

Location:
branches/guitools-2.0
Files:
5 edited

Legend:

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

    r317 r319  
    1313- Added: Double connection detection using hashes
    1414- Added: New profile saving code
     15- Added: Remove menu option (preliminary for passive connections only)
     16- Added: smbtree.vrs: Optionally do not show hidden shares
     17- Added: smbtree.vrs: Enhanced guessicon()
     18- Fixed: Loading a profile presented the user a half drawn window
    1519- Fixed: CltInit uses smbclient.exe instead of smbd.exe to find Samba binaries
    1620- Fixed: Message queue during resize isn't cleared (no flashing during resize)
  • branches/guitools-2.0/evfsgui/evfsgui.VRP

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

    r317 r319  
    744744/*:VRX         LoadSettings
    745745*/
    746 LoadSettings: PROCEDURE EXPOSE settings. options. fs. advanced. samba.
     746LoadSettings: PROCEDURE EXPOSE settings. options. fs. advanced. samba. ShowHidden
    747747    IF options.!debug == 1 THEN SAY time()' '||'LoadSettings started'
    748748
     
    798798say "Loadsettings" samba.!smbconf
    799799        if \VRFileExists( samba.!smbconf ) then call _CreateSmbConf       
     800
     801        /* Hardcoded for EVFSGUI for now */
     802        ShowHidden = 0
    800803
    801804        /* Load font settings.
     
    873876
    874877    if options.!nogui == 1 then CALL VRLoadSecondary "SW_PROGRESS","W"
    875     else call VRSet 'Main',    'Visible', 1
     878    /* This is too early if a profile was loaded and Main_Resize does it anyway */
     879    /* else call VRSet 'Main',    'Visible', 1 */
    876880
    877881    IF options.!debug == 1 THEN SAY time()' '||'LoadSettings done'
     
    904908    CALL _ContainersInit
    905909
     910    CALL _GUIInit
     911
    906912    CALL ParseCommandLine
    907913
     
    910916    CALL _CltInit
    911917
    912     CALL _GUIInit
    913 
    914918    CALL LoadSettings
    915 say 'advanced.!alwaysmp='advanced.!alwaysmp
    916919
    917920    /* Populate the GUI */
     
    920923    ELSE
    921924        CALL Refresh
    922 say 'advanced.!alwaysmp='advanced.!alwaysmp
     925
    923926    CALL VRSet "CB_MOUNT",  "Selected", 1
    924927    CALL VRSet "CB_DRIVES", "Selected", 1
     
    928931        if advanced.!browseimme == 1 then call PB_REFRESH_Click
    929932    end
    930 say 'advanced.!alwaysmp='advanced.!alwaysmp
     933
    931934    IF options.!debug == 1 THEN SAY time()' '||"Main_Create done"
    932935return
     
    952955
    953956    /* Current Panel */
     957    ok = VRSet("GB_CURRENT","Visible",1)
    954958    ok = VRSet("GB_CURRENT","Top",    FWidth)
    955959    ok = VRSet("GB_CURRENT","Left",   FWidth-24)
     
    10781082    ok = VRset("GB_MPOINT","Width",  VRGet("GB_DIALOG","Width")-FWidth*2)
    10791083
     1084    ok = VRset("SPLIT_Main","Visible", 1)
    10801085    ok = VRset("SPLIT_Main","Top", FWidth)
    10811086    ok = VRset("SPLIT_Main","Height", VRGet("GB_CURRENT","Height"))
     
    11901195return
    11911196
     1197/*:VRX         Menu_Selected_Remove_Click
     1198*/
     1199Menu_Selected_Remove_Click:
     1200    ok = VRMethod( "CN_CONDET", "GetRecordList", "SourceOrSelected", "selrec." )
     1201    if selrec.0 = 0 then return
     1202
     1203    do I = 1 to selrec.0
     1204        if VRMethod("CN_CONDET", "GetFieldData", selrec.I, cd.statusfh) = '#68:PMWP.DLL' then do
     1205            CALL VRMethod 'CN_CONDET', 'RemoveRecord', selrec.I
     1206        end
     1207        else do
     1208            say "Active record, not yet implemented...."
     1209        end
     1210    end
     1211return
     1212
    11921213/*:VRX         Menu_View_Buttons_Click
    11931214*/
     
    12231244    ok = VRSet("Menu_View_Dialog", "Checked",  0)
    12241245    ok = VRSet("Menu_View_ConDet", "Checked",  1)
     1246
     1247    ok = VRSet("Menu_Selected_Remove", "Visible",  1)
     1248    ok = VRMethod( "CN_CONDET", "GetRecordList", "All", "records." )
     1249    ok = VRSet("Menu_Selected_Remove", "Enabled",  (records.0 = 0))
    12251250return
    12261251
     
    12401265    ok = VRSet("Menu_View_ConDet", "Checked", 0)
    12411266    ok = VRSet("Menu_View_Dialog", "Checked", 1)
     1267
     1268    ok = VRSet("Menu_Selected_Remove", "Visible",  0)
    12421269return
    12431270
     
    12571284    ok = VRSet("Menu_View_ConDet","Checked",  0)
    12581285    ok = VRSet("Menu_View_SmbTree","Checked", 1)
     1286
     1287    ok = VRSet("Menu_Selected_Remove", "Visible",  0)
    12591288return
    12601289
  • branches/guitools-2.0/shared/smbtree.vrs

    r315 r319  
    1111        UserCred = '-N'
    1212    end
     13
     14    if ShowHidden = 'SHOWHIDDEN' | ShowHidden = '' then ShowHidden = 1
     15
    1316    say 'detach 'samba.!smbtreeexe' 'debuglevel' 'UserCred' >'samba.!msg
    1417    address cmd 'detach 'samba.!smbtreeexe' 'debuglevel' 'UserCred' >'samba.!msg
     
    6366                    parent = smbtree.!machine
    6467                    smbtree.!share = VRMethod( "CN_smbtree", "AddRecord",parent,, share||'0D0A'x||comment, res)
     68                    if pos("$", share) > 0 then ok = VRMethod( "CN_smbtree", "SetRecordAttr", smbtree.!share, "Visible", ShowHidden)
    6569                end
    6670            end
     
    146150*/
    147151_GuessIcon: procedure
    148     text = arg(1)
     152    text = translate(arg(1))
    149153    select /* Printer guessing */
    150154        when pos('LJ',text)      > 0 then res = '#65:PMWP.DLL'
     
    158162        when pos('LEXMARK',text) > 0 then res = '#65:PMWP.DLL'
    159163        when pos('IPC$',text)    > 0 then res = '#59:PMWP.DLL'
     164        when pos('GHOSTPDF',text)> 0 then res = '#65:PMWP.DLL'
     165        when pos('PDF',text)     > 0 & ,
     166             pos('WRI',text)     > 0 then res = '#65:PMWP.DLL'
    160167        otherwise res = "#34:PMWP.DLL"
    161168    end
Note: See TracChangeset for help on using the changeset viewer.