Changeset 909 for trunk/guitools/evfsgui/evfsgui.vrx
- Timestamp:
- May 26, 2016, 12:51:38 PM (9 years ago)
- File:
-
- 1 edited
-
trunk/guitools/evfsgui/evfsgui.vrx (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/guitools/evfsgui/evfsgui.vrx
r894 r909 4 4 */ 5 5 Main: 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 */ 6 24 /* Process the arguments. 7 25 Get the parent window. … … 724 742 /*:VRX _GetSMBObjectShares 725 743 */ 726 _GetSMBObjectShares: procedure expose samba. options. SMBObj. rh744 _GetSMBObjectShares: procedure expose samba. options. SMBObj. 727 745 /* Purpose: Return stem with shares for a given Object (as handle) */ 728 746 … … 731 749 SmbObj.shares. = '' 732 750 SmbObj.shares.0 = 0 733 751 I = 0 734 752 ok = VRMethod("CN_smbtree", "GetRecordList", "All", rh.) 735 753 … … 742 760 ResName = strip(ResName) 743 761 parse var userdata ResType '|' . 744 I = 0 762 745 763 if ParentRH = rh then do /* we found a share belonging to our server */ 746 764 if ResType = "DISK" then do … … 834 852 CALL NLVSetText 'PB_SMBTREE_CONNECT', "Caption", 28 835 853 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 838 857 /** Use AutoSize property instead 839 858 ok = VRSet("Pict_Throbber","Width", VRMethod( "Screen", "PixelsToTwips", 32 )) … … 1029 1048 ok = VRSet("EF_USER", "Value",Credentials.!username) 1030 1049 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") 1032 1053 1033 1054 /* SambaInit.VRS needs these 2 */ … … 2465 2486 2466 2487 machine = VRGet("EF_SERVER","value") 2488 ok = VRSet("EF_SHARE","Value", "") 2489 ok = VRMethod("EF_SHARE","Reset") 2490 2467 2491 rh = _GetMachineHandle(machine) 2468 2469 2492 if rh <> "" then do 2470 2493 call _GetSMBObjectProperties rh 2471 2472 2494 if SMBObj.parentrh = "" 2473 2495 then ok = VRSet("EF_NETWORK","Value", "") /* The workgroup might be unknown at this moment */ 2474 2496 else ok = VRSet("EF_NETWORK","Value", VRMethod("CN_SMBTREE","GetRecordAttr",SMBObj.parentRH,"Caption")) 2475 2497 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 2480 2503 end 2481 2504 else do … … 5379 5402 parse var pIdx '#' pidx 5380 5403 pidx = pidx + 1 5381 if pidx = 36then pidx = 115404 if pidx = 23 then pidx = 11 5382 5405 ok = VRSet("Pict_Throbber","PicturePath","#"pidx) 5383 5406 return
Note:
See TracChangeset
for help on using the changeset viewer.
