Changeset 786
- Timestamp:
- Aug 13, 2013, 4:24:43 PM (12 years ago)
- Location:
- trunk/guitools
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/guitools/evfsgui/evfsgui.vrp
r784 r786 8 8 RunParameters: 9 9 RunDirectory: U:\Develop\Samba\trunk\guitools\evfsgui 10 VRXWindow: __VREMainWindow,1,19 51,2361,1012,784111 VRXWindow: __VREFileListWindow,1,2 192,7950,2665,335812 VRXWindow: __VRESectionListWindow,1,11 56,12382,12238,691413 VRXWindow: __VREToolsWindow,0,3 096,8528,5474,166914 VRXWindow: __VREWindListWindow,1, 723,8239,4963,315010 VRXWindow: __VREMainWindow,1,1963,2361,1012,7841 11 VRXWindow: __VREFileListWindow,1,2204,7950,2665,3358 12 VRXWindow: __VRESectionListWindow,1,1168,12382,12238,6914 13 VRXWindow: __VREToolsWindow,0,3108,8528,5474,1669 14 VRXWindow: __VREWindListWindow,1,952,11611,4963,3150 15 15 UserFile: 1 16 16 UserWindow: Main,1 17 UserWindow: SW_SETTINGS,1 17 18 UserWindow: SW_SMBTREE,1 18 19 UserWindow: SW_DIALOG,1 -
trunk/guitools/evfsgui/evfsgui.vrx
r784 r786 215 215 /*:VRX _BrowseBuildPath 216 216 */ 217 _BrowseBuildPath: procedure expose options. icons. s harerh217 _BrowseBuildPath: procedure expose options. icons. samba. sharerh 218 218 if options.!debug == 1 then say time()' _BrowseBuildPath started' 219 219 rh = arg(1) … … 343 343 /*:VRX _BrowseObjectOpen 344 344 */ 345 _BrowseObjectOpen: procedure expose options. cd. icons.345 _BrowseObjectOpen: procedure expose samba. options. cd. icons. 346 346 machine = arg(1) 347 347 sharename = arg(2) … … 529 529 /*:VRX _DelSMBObjectShares 530 530 */ 531 _DelSMBObjectShares: procedure expose options. SMBObj. rh531 _DelSMBObjectShares: procedure expose samba. options. SMBObj. rh 532 532 /* Purpose: Delete shares for a given Object (as handle) */ 533 533 … … 603 603 /*:VRX _GetSMBObjectProperties 604 604 */ 605 _GetSMBObjectProperties: procedure expose options. SMBObj. rh icon resname udatatype udatamsg parentrh icons.605 _GetSMBObjectProperties: procedure expose samba. options. SMBObj. rh icon resname udatatype udatamsg parentrh icons. 606 606 if options.!debug == 1 then say time()' _GetSMBObjectProperties started' 607 607 … … 663 663 /*:VRX _GetSMBObjectShares 664 664 */ 665 _GetSMBObjectShares: procedure expose options. SMBObj. rh665 _GetSMBObjectShares: procedure expose samba. options. SMBObj. rh 666 666 /* Purpose: Return stem with shares for a given Object (as handle) */ 667 667 … … 2084 2084 when SMBObj.udatatype = "SERVER" then do 2085 2085 say "Server dragged!" 2086 p_workgroup = VRMethod("CN_SMBTREE", "GetRecordAttr", SMBObj.parentrh, "Caption") 2086 if SMBObj.parentrh <> "" then do /* detect server without workgroup */ 2087 p_workgroup = VRMethod("CN_SMBTREE", "GetRecordAttr", SMBObj.parentrh, "Caption") 2088 end 2087 2089 p_server = SMBObj.resname 2088 2090 p_share = "" … … 2092 2094 when SMBObj.udatatype = "DISK" then do 2093 2095 say "Shared disk dragged!" 2094 p_workgroup = VRMethod("CN_SMBTREE", "GetRecordAttr", SMBObj.gparentrh, "Caption") 2096 if SMBObj.gparentrh <> "" then do /* detect share on a server without workgroup */ 2097 p_workgroup = VRMethod("CN_SMBTREE", "GetRecordAttr", SMBObj.gparentrh, "Caption") 2098 end 2095 2099 p_server = VRMethod("CN_SMBTREE", "GetRecordAttr", SMBObj.parentrh, "Caption") 2096 2100 parse var p_server p_server '0D0A'x . … … 2638 2642 */ 2639 2643 Main_Create: 2640 options.!debug = 02644 options.!debug = 1 2641 2645 if options.!debug == 1 then do 2642 2646 ok = VRRedirectStdIO("ON") … … 2661 2665 2662 2666 CALL _INILoad 2667 2668 call _TabFix 1 2669 call SW_ADVANCED_Init_Content 2670 call SW_SMBTREE_Init_Content 2671 call SW_CONDET_Init_Content 2672 call SW_SETTINGS_Init_Content 2663 2673 2664 2674 CALL Refresh … … 4520 4530 SW_ABOUT_Init: 4521 4531 window = VRInfo( "Object" ) 4522 if( \VRIsChildOf( window, " Notebook" ) ) then do4532 if( \VRIsChildOf( window, "TabbedDialog" ) ) then do 4523 4533 call VRMethod window, "CenterWindow" 4524 4534 call VRSet window, "Visible", 1 … … 4741 4751 SW_INFO_Init: 4742 4752 window = VRInfo( "Object" ) 4743 if( \VRIsChildOf( window, " Notebook" ) ) then do4753 if( \VRIsChildOf( window, "TabbedDialog" ) ) then do 4744 4754 call VRMethod window, "CenterWindow" 4745 4755 call VRSet window, "Visible", 1 … … 4797 4807 SW_LOGIN_Init: 4798 4808 window = VRInfo( "Object" ) 4799 if( \VRIsChildOf( window, " Notebook" ) ) then do4809 if( \VRIsChildOf( window, "TabbedDialog" ) ) then do 4800 4810 call VRMethod window, "CenterWindow" 4801 4811 call VRSet window, "Visible", 1 … … 4866 4876 SW_MOUNTPOINT_Init: 4867 4877 window = VRInfo( "Object" ) 4868 if( \VRIsChildOf( window, " Notebook" ) ) then do4878 if( \VRIsChildOf( window, "TabbedDialog" ) ) then do 4869 4879 call VRMethod window, "CenterWindow" 4870 4880 call VRSet window, "Visible", 1 … … 4920 4930 SW_PORTCONNECT_Init: 4921 4931 window = VRInfo( "Object" ) 4922 if( \VRIsChildOf( window, " Notebook" ) ) then do4932 if( \VRIsChildOf( window, "TabbedDialog" ) ) then do 4923 4933 call VRMethod window, "CenterWindow" 4924 4934 call VRSet window, "Visible", 1 … … 5119 5129 end 5120 5130 return 5121 5122 5131 /*:VRX TM_AutoClose_Trigger 5123 5132 */ -
trunk/guitools/shared/rxrpclib.vrs
r703 r786 448 448 rpcline = linein(rpcinfo.!msg) 449 449 if pos("creating default valid table",rpcline) <> 0 then iterate 450 if pos("TDB(",translate(rpcline)) <> 0 then iterate 450 451 451 452 if pos("LOGON_FAILURE", rpcline) > 0 then do -
trunk/guitools/shared/smbtree.vrs
r785 r786 83 83 comment = strip(comment) 84 84 if VRGet("CN_smbtree","View") = "IconTree" then parent = smbtree.!workgroup; else parent = "" 85 /* We make any machine as sleeping initially */85 /* We create any machine as sleeping initially */ 86 86 smbtree.!machine = _AddSleepingMachine(machine,comment,parent) 87 87 … … 117 117 end 118 118 when smbtreeline.sl = "" then nop /* skip empty lines */ 119 otherwise do /* possibl y anew workgroup */119 otherwise do /* possible new workgroup */ 120 120 say ' Possible workgroup: "'smbtreeline.sl'"' 121 /* check for eventual error messages */ 122 if pos("RECEIVING",translate(smbtreeline.sl)) > 0 | pos("NT_STATUS",translate(smbtreeline.sl)) > 0 then do 121 ThrowMsg = 0 122 /* Do some checks to be sure */ 123 select 124 when pos("RECEIVING",translate(smbtreeline.sl)) > 0 then ThrowMsg = 1 125 when pos("NT_STATUS",translate(smbtreeline.sl)) > 0 then ThrowMsg = 1 126 when pos(" ", smbtreeline.sl) > 0 then ThrowMsg = 1 127 when pos("=", smbtreeline.sl) > 0 then ThrowMsg = 1 128 when pos(":", smbtreeline.sl) > 0 then ThrowMsg = 1 129 when pos("%", smbtreeline.sl) > 0 then ThrowMsg = 1 130 otherwise do /* it is really a new workgroup */ 131 if VRGet("CN_smbtree","View") = "IconTree" then do 132 say "Checks passed, "smbtreeline.sl" is a workgroup!" 133 smbtree.!workgroup = _AddWorkGroup(smbtreeline.sl) 134 CurWG = smbtreeline.sl 135 end 136 end 137 end 138 if ThrowMsg = 1 then do 139 ThrowMsg = 0 123 140 Msg.Type = "W" 124 141 Msg.Text = smbtreeline.sl 125 142 call _ShowMsg 126 end127 else do /* it is really a new workgroup */128 if VRGet("CN_smbtree","View") = "IconTree" then do129 smbtree.!workgroup = _AddWorkGroup(smbtreeline.sl)130 end131 CurWG = smbtreeline.sl132 143 end 133 144 end … … 265 276 line = linein(smbmachine.I) 266 277 end 278 /* Filter possible debug messages */ 279 do while(pos("TDB(",translate(line)) > 0) | (pos("%",line) > 0) | (pos("=",line) > 0) 280 say ' Skip "'line'"' 281 line = linein(smbmachine.I) 282 end 267 283 say ' Message "'line'"' 284 268 285 ok = VRMethod('CN_smbtree', 'SetRecordAttr', smbtree.!machine, 'UserData', "SERVER|"||strip(line)) 269 286
Note:
See TracChangeset
for help on using the changeset viewer.