Changeset 326 for branches


Ignore:
Timestamp:
Sep 6, 2009, 5:13:15 PM (16 years ago)
Author:
Herwig Bauernfeind
Message:

GUI-Tools: More work on EVFSGUI V.next (Fixed several bugs, options added)

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

Legend:

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

    r325 r326  
    2424- Added: Sort smbtree view ascending
    2525- Added: Optionally turn on/off special ($) shares
     26- Added: Optionally use big icons
    2627- Changed: Several changes in GUI style (as suggested by Alex Taylor)
    2728- Changed: Left align buttons in current connections panel (as suggested by
     
    3132- Changed: Main icon is now the one done by Alex Taylor           
    3233- Changed: Use PM_Default_Colors for title sections (as suggested by Alex Taylor)
     34- Changed: German translation of "Retry"
    3335- Fixed: Loading a profile presented the user a half drawn window
    3436- Fixed: CltInit uses smbclient.exe instead of smbd.exe to find Samba binaries
     
    3638- Fixed: Missing NLV aware strings
    3739- Fixed: Don't let user edit network neighbourhood results
     40- Fixed: Claiming a passive connection already exists is nonsense
     41- Fixed: Disallow connecting to printers via context menu
     42- Fixed: Edit and Selected menu easily got out of sync
     43- Fixed: Another missing record validation
     44
    3845ToDo:
    39 - Edit and Selected menu easily got out of sync (partly fixed)
    4046- Major code refactoring
    4147- Create Icon. stem in order to ease maintainance of icons
  • branches/guitools-2.0/evfsgui/evfsgui.VRP

    r325 r326  
    44MacroPath: VRM: U:\Develop\Samba\guitools-2.0\smbclgui
    55EXEPath:
    6 RunParameters: y:\test.evp
     6RunParameters: -ndfs
    77RunDirectory:
    88VRXWindow: __VREMainWindow,1,530,2457,879,4071
    99VRXWindow: __VRESectionListWindow,1,337,11708,11623,3686
    10 VRXWindow: __VREToolsWindow,1,518,530,6987,1669
     10VRXWindow: __VREToolsWindow,1,518,530,6984,1663
    1111VRXWindow: __VREWindListWindow,1,482,7661,2650,3150
    1212UserFile: 1
  • branches/guitools-2.0/evfsgui/evfsgui.VRX

    r325 r326  
    279279    rh = VRInfo('Record')
    280280    if VRMethod( 'CN_CONDET', "ValidateRecord", rh) <> 1 then return
     281
    281282    if VRMethod( 'CN_CONDET', "GetFieldData", rh, CD.StatusFH) = '#68:PMWP.DLL' then do
    282283        ok = VRSet("Menu_Selected_Retry",  "Enabled",1)
     
    285286    ok = VRMethod( "Menu_Selected", "Popup", , , "", "" )
    286287return
    287 
    288288/*:VRX         CN_CONDET_DragStart
    289289*/
     
    588588    window = VRLoadSecondary( "SW_LOGIN", "W" )
    589589    call PB_MOUNT_CLICK
    590     if VRGet(srcCtn,'Name') = "CN_CONDET" &,
    591        VRMethod("CN_CONDET", "GetRecordAttr", srcRec, "Icon") = '#68:PMWP.DLL' then ok = VRMethod( srcCtn, "RemoveRecord", srcRec)
     590
     591    if VRGet(srcCtn,'Name') = "CN_CONDET" & VRMethod( 'CN_CONDET', "ValidateRecord", srcRec) = 1 then do
     592        if VRMethod("CN_CONDET", "GetRecordAttr", srcRec, "Icon") = '#68:PMWP.DLL' then ok = VRMethod( "CN_CONDET", "RemoveRecord", srcRec)
     593    end
    592594return
    593595
     
    595597*/
    596598CN_SMBTREE_ContextMenu:
     599    rh = VRInfo('Record')
     600    if VRMethod( 'CN_SMBTREE', "ValidateRecord", rh) <> 1 then return
     601
     602    Icon = VRMethod("CN_SMBTREE", "GetRecordAttr", rh, "Icon")
     603
     604    if Icon = "#65:PMWP.DLL" then do /* Printers not supported at the moment */
     605        CALL VRMessage 'Main', NLVGetMessage( 62 ), NLVGetMessage( 5 ), 'E'
     606        return
     607    end
     608
    597609    ok = VRMethod( "Menu_Selected", "Popup", , , "", "" )
    598610return
     
    900912        IF advanced.!special == '' THEN advanced.!special = 0
    901913
     914        advanced.!bigicons = VRGetIni('Settings', 'BigIcons', settings.!ini)
     915        IF advanced.!bigicons == '' THEN advanced.!bigicons = 0
     916
    902917        /* Apply the settings
    903918         */
     
    911926        ok = VRSet("DT_SMBTREE","BACKCOLOR", settings.!curbcolor )
    912927        ok = VRSet("DT_SMBTREE","FORECOLOR", settings.!curfcolor )
     928
     929        ok = VRset("CN_CURRENT", "MiniIcons", \advanced.!bigicons)
     930        ok = VRset("CN_SMBTREE", "MiniIcons", \advanced.!bigicons)
     931        ok = VRset("CN_CONDET",  "MiniIcons", \advanced.!bigicons)
     932
     933
    913934
    914935        ok = VRSet("Menu_View_Buttons","Checked", settings.!buttonson)
     
    14991520    DO i = 1 TO records.0
    15001521        hash = VRMethod("CN_CONDET","GetFieldData", records.i, cd.hashfh)
    1501         if hash = md5 then do
     1522        if hash = md5 & VRMethod("CN_CONDET","GetFieldData", records.i, cd.statusfh) = '#64:PMWP.DLL' then do /* Same hash, status active */
    15021523            buttons.0 = 2
    15031524            buttons.1 = NLVGetMessage(9)
     
    18841905        advanced.!alwaysmp  = adv_alwaysmp
    18851906        advanced.!special   = adv_special
    1886     END
    1887 
     1907        advanced.!bigicons  = adv_bigicons
     1908    END
     1909
     1910say 'advanced.!bigicons  = 'advanced.!bigicons
    18881911RETURN
    18891912
     
    19171940    adv_alwaysmp   = VRGet( "CB_ALWAYSMP",   "Set" )
    19181941    adv_special    = VRGet( "CB_SPECIAL",    "Set" )
     1942    adv_bigicons   = VRGet( "CB_BIGICONS",   "Set" )
    19191943
    19201944    adv_changed  = 1
    19211945    if adv_debug == 1 then ok = VRRedirectStdio("ON")
    19221946                      else ok = VRRedirectStdio("OFF")
     1947
     1948    ok = VRset("CN_CURRENT", "MiniIcons", \adv_bigicons)
     1949    ok = VRset("CN_SMBTREE", "MiniIcons", \adv_bigicons)
     1950    ok = VRset("CN_CONDET",  "MiniIcons", \adv_bigicons)
    19231951
    19241952    CALL SW_ADVANCED_Close
     
    21832211*/
    21842212PB_LOAD_Click: PROCEDURE EXPOSE settings. options. advanced. vfs. Profile fs. cd.
    2185 say 'PB_load advanced.!browseimme='advanced.!browseimme
    2186 say 'PB_load advanced.!alwaysmp='advanced.!alwaysmp
    21872213    IF options.!autoload == 1 then filename = Profile
    21882214    else filename = VRFileDialog('Main', NLVGetMessage( 55 ), 'L', '*.'fs.!profileext)
     
    25382564
    25392565/* call _AddTemplates */
    2540     CALL VRSet "PB_DETACH", "Enabled", 0
     2566    CALL VRSet "PB_DETACH",  "Enabled", 0
    25412567    CALL VRSet "PB_UNMOUNT", "Enabled", 0
     2568
     2569    ok = VRSet("Menu_Context_Detach",  "Visible",  0)
     2570    ok = VRSet("Menu_Context_Unmount", "Visible",  0)
     2571    ok = VRSet("Menu_Context_Edit",    "Visible",  0)
    25422572
    25432573    ok = VRSet("Menu_Selected_Remove", "Visible",  0)
     
    26102640    CALL VRSetIni 'Settings', 'AlwaysMP',      advanced.!alwaysmp  , settings.!ini, 'NoClose'
    26112641    CALL VRSetIni 'Settings', 'SpecialShares', advanced.!special   , settings.!ini, 'NoClose'
     2642    CALL VRSetIni 'Settings', 'BigIcons',      advanced.!bigicons  , settings.!ini, 'NoClose'
    26122643
    26132644    /* Save position and size */
     
    26752706    advanced.!alwaysmp  = ''
    26762707    advanced.!special   = ''
     2708    advanced.!bigicons  = ''
    26772709
    26782710    credentials.!username = ""
     
    27192751    CALL NLVSetText 'CB_ALWAYSMP',  'Caption', 65
    27202752    CALL NLVSetText 'CB_SPECIAL',   'Caption', 66
     2753    CALL NLVSetText 'CB_BIGICONS',  'Caption', 70
    27212754
    27222755    CALL VRSet "SW_ADVANCED", "HelpTag", NLVGetMessage(40)
     
    27352768    CALL VRSet 'CB_LOGGING', 'Set', VRFileExists(SysBootDrive()'\ndpsmb.dbg')
    27362769
     2770    IF advanced.!browseauth \= '' THEN
     2771        CALL VRSet 'CB_BROWSEAUTH', 'Set', advanced.!browseauth
     2772
     2773    IF advanced.!browseimme \= '' THEN
     2774        CALL VRSet 'CB_BROWSEimme', 'Set', advanced.!browseimme
     2775
     2776    IF advanced.!debug \= '' THEN
     2777        CALL VRSet 'CB_debug', 'Set', advanced.!debug
     2778
     2779    IF advanced.!alwaysmp \= '' THEN
     2780        CALL VRSet 'CB_alwaysmp', 'Set', advanced.!alwaysmp
     2781
    27372782    IF advanced.!special \= '' THEN
    27382783        CALL VRSet 'CB_SPECIAL', 'Set', advanced.!special
    27392784
    2740     IF advanced.!browseauth \= '' THEN
    2741         CALL VRSet 'CB_BROWSEAUTH', 'Set', advanced.!browseauth
    2742 
    2743     IF advanced.!browseimme \= '' THEN
    2744         CALL VRSet 'CB_BROWSEimme', 'Set', advanced.!browseimme
    2745 
    2746     IF advanced.!debug \= '' THEN
    2747         CALL VRSet 'CB_debug', 'Set', advanced.!debug
    2748 
    2749     IF advanced.!alwaysmp \= '' THEN
    2750         CALL VRSet 'CB_alwaysmp', 'Set', advanced.!alwaysmp
     2785    IF advanced.!bigicons \= '' THEN
     2786        CALL VRSet 'CB_bigicons', 'Set', advanced.!bigicons
    27512787
    27522788    window = VRInfo( "Object" )
  • branches/guitools-2.0/evfsgui/evfsi_de.mkm

    r325 r326  
    6969EVG0062I: Drucker werden im Moment nicht untersttzt!
    7070EVG0063I: Verbindungsdetails
    71 EVG0064I: Diese Verbindung besteht bereits - trotzdem fortfahren?
     71EVG0064I: Diese Verbindung existiert bereits - trotzdem fortfahren?
    7272EVG0065I: Mountpoint auch bei Fehlschlag anlegen
    7373EVG0066I: Alle (auch spezielle) Freigaben zeigen
     
    7575EVG0068I: EA
    7676EVG0069I: R/W
    77 EVG0070?:
     77EVG0070I: Groáe Symbole
    7878EVG0071?:
    7979EVG0072?:
     
    9696EVG0088I: ~Verbindungsdetails
    9797EVG0089I: Entfernen
    98 EVG0090I: Nochmals versuchen
     98EVG0090I: Jetzt verbinden
    9999EVG0091?:
    100100EVG0092?:
  • branches/guitools-2.0/evfsgui/evfsi_en.mkm

    r325 r326  
    7575EVG0068I: EA
    7676EVG0069I: R/W
    77 EVG0070?:
     77EVG0070I: Large icons
    7878EVG0071?:
    7979EVG0072?:
Note: See TracChangeset for help on using the changeset viewer.