Ignore:
Timestamp:
May 26, 2016, 12:51:38 PM (9 years ago)
Author:
Herwig Bauernfeind
Message:

GUITools: EVFSGUI bugfixes, license, new throbber, shared library updates

File:
1 edited

Legend:

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

    r894 r909  
    44*/
    55Main:
     6/*
     7    Samba Connections GUI for OS/2 based systems
     8    Copyright (C) 2007-2016 by Alexander Taylor and Herwig Bauernfeind
     9    Derived works must contain this copyright notice.
     10
     11    This program is free software: you can redistribute it and/or modify
     12    it under the terms of the GNU General Public License as published by
     13    the Free Software Foundation, either version 3 of the License, or
     14    (at your option) any later version.
     15
     16    This program is distributed in the hope that it will be useful,
     17    but WITHOUT ANY WARRANTY; without even the implied warranty of
     18    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     19    GNU General Public License for more details.
     20
     21    You should have received a copy of the GNU General Public License
     22    along with this program.  If not, see <http://www.gnu.org/licenses/>.
     23*/
    624/*  Process the arguments.
    725    Get the parent window.
     
    724742/*:VRX         _GetSMBObjectShares
    725743*/
    726 _GetSMBObjectShares: procedure expose samba. options. SMBObj. rh
     744_GetSMBObjectShares: procedure expose samba. options. SMBObj.
    727745    /* Purpose: Return stem with shares for a given Object (as handle) */
    728746
     
    731749    SmbObj.shares. = ''
    732750    SmbObj.shares.0 = 0
    733 
     751    I = 0
    734752    ok = VRMethod("CN_smbtree", "GetRecordList", "All", rh.)
    735753
     
    742760        ResName = strip(ResName)
    743761        parse var userdata ResType  '|' .
    744         I = 0
     762
    745763        if ParentRH = rh then do /* we found a share belonging to our server */
    746764            if ResType = "DISK" then do
     
    834852    CALL NLVSetText 'PB_SMBTREE_CONNECT',             "Caption", 28
    835853    CALL NLVSetText 'PB_SMBTREE_REFRESH',             "Caption", 38
    836     CALL NLVSetText 'PB_SMBTREE_HELP',                "Caption", 4
    837     CALL NLVSetText 'CN_SMBTREE',                     "Caption", 140
     854    CALL NLVSetText 'PB_SMBTREE_HELP',                "Caption",  4
     855    CALL NLVSetText 'CN_SMBTREE',                     "Caption",140
     856
    838857/** Use AutoSize property instead
    839858    ok = VRSet("Pict_Throbber","Width",  VRMethod( "Screen", "PixelsToTwips", 32 ))
     
    10291048        ok = VRSet("EF_USER",    "Value",Credentials.!username)
    10301049        ok = VRSet("EF_PASSWORD","Value",Credentials.!password)
    1031     end
     1050        ok = VRSet("CN_SMBTREE","Caption",VRGet("CN_SMBTREE","Caption")||": "Credentials.!username)
     1051    end
     1052    else ok = VRSet("CN_SMBTREE","Caption",VRGet("CN_SMBTREE","Caption")||": Guest")
    10321053
    10331054    /* SambaInit.VRS needs these 2 */
     
    24652486
    24662487    machine = VRGet("EF_SERVER","value")
     2488    ok = VRSet("EF_SHARE","Value", "")
     2489    ok = VRMethod("EF_SHARE","Reset")
     2490
    24672491    rh = _GetMachineHandle(machine)
    2468 
    24692492    if rh <> "" then do
    24702493        call _GetSMBObjectProperties rh
    2471 
    24722494        if SMBObj.parentrh = ""
    24732495            then ok = VRSet("EF_NETWORK","Value", "") /* The workgroup might be unknown at this moment */
    24742496            else ok = VRSet("EF_NETWORK","Value", VRMethod("CN_SMBTREE","GetRecordAttr",SMBObj.parentRH,"Caption"))
    24752497
    2476         call _GetSMBObjectShares rh
    2477 
    2478         ok = VRMethod("EF_SHARE",   "Reset")
    2479         if SMBObj.shares.0 > 0 then ok = VRMethod("EF_SHARE",   "AddRecordList", "SMBObj.shares.")
     2498        call _GetSMBObjectShares SMBObj.rh
     2499
     2500        if SMBObj.shares.0 > 0 then do
     2501            ok = VRMethod("EF_SHARE",   "AddStringList", "SMBObj.shares.")
     2502        end
    24802503    end
    24812504    else do
     
    53795402    parse var pIdx '#' pidx
    53805403    pidx = pidx + 1
    5381     if pidx = 36 then pidx = 11
     5404    if pidx = 23 then pidx = 11
    53825405    ok = VRSet("Pict_Throbber","PicturePath","#"pidx)
    53835406return
Note: See TracChangeset for help on using the changeset viewer.