Changeset 643 for trunk/guitools
- Timestamp:
- Oct 16, 2011, 6:14:07 PM (14 years ago)
- Location:
- trunk/guitools
- Files:
-
- 4 edited
-
evfsgui/evfsgui.vrp (modified) (1 diff)
-
evfsgui/evfsgui.vrx (modified) (3 diffs)
-
evfsgui/evfsgui.vry (modified) ( previous)
-
shared/smbtree.vrs (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/guitools/evfsgui/evfsgui.vrp
r641 r643 4 4 VXOFile: VROBJEX 5 5 VXOFile: VRSPLIT 6 MacroPath: VRM: U:\Develop\Samba\trunk\guitools\evfsgui6 MacroPath: VRM: 7 7 EXEPath: 8 8 RunParameters: 9 9 RunDirectory: U:\Develop\Samba\trunk\guitools\evfsgui 10 VRXWindow: __VREMainWindow,1,1482,915,891,8034 11 VRXWindow: __VREFileListWindow,1,807,11033,1590,3358 12 VRXWindow: __VRESectionListWindow,1,2674,10648,8696,4782 13 VRXWindow: __VREToolsWindow,1,2529,723,6480,1661 14 VRXWindow: __VREWindListWindow,1,542,8721,3770,3150 10 VRXWindow: __VREMainWindow,1,1951,2361,891,7841 11 VRXWindow: __VREFileListWindow,1,2987,5155,2665,3358 12 VRXWindow: __VREToolsWindow,0,2987,9010,6486,1669 13 VRXWindow: __VREWindListWindow,1,1168,10841,2650,3150 15 14 UserFile: 1 16 15 UserWindow: Main,1 17 UserWindow: SW_INFO,1 18 UserWindow: SW_DIALOG,1 16 UserWindow: SW_SMBTREE,1 -
trunk/guitools/evfsgui/evfsgui.vrx
r641 r643 99 99 */ 100 100 return 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 101 195 /*:VRX _AddTemplates 102 196 */ … … 3799 3893 /*:VRX PB_SMBTREE_REFRESH_Click 3800 3894 */ 3801 PB_SMBTREE_REFRESH_Click: PROCEDURE EXPOSE settings. options. icons. fs. samba. debuglevel advanced. UserCred Refreshmode 3895 PB_SMBTREE_REFRESH_Click: PROCEDURE EXPOSE settings. options. icons. fs. samba. debuglevel advanced. UserCred Refreshmode 3802 3896 IF options.!debug == 1 THEN SAY time()' '||"PB_REFRESH_Click started" 3803 3897 … … 3948 4042 CALL NLVSetText 'PB_ABOUT_COPY', "Caption", 121 3949 4043 3950 ok = VRSEt("DT_About","Caption", 'EVFSGUI (c) 2007-2011 Alexander Taylor and Herwig Bauernfeind') 3951 ABoutStr = "Samba Client Versions:" 4044 ok = VRSet("DT_About","Caption", 'EVFSGUI (c) 2007-2011 Alexander Taylor and Herwig Bauernfeind') 3952 4045 3953 4046 About.DscFH = VRMethod( "CN_ABOUT", "AddField", "String", "Component" ) 3954 4047 About.ValFH = VRMethod( "CN_ABOUT", "AddField", "String", "Version" ) 3955 4048 3956 call VRSet "SW_ABOUT", "Painting", 0 3957 /* Filesystem version */ 3958 DummyRH = VRMethod('CN_About', 'AddRecord') 3959 ok = VRMethod("CN_ABOUT", "SetFieldData", DummyRH, About.DscFH, "File system", About.ValFH, fs.!name' Version 'fs.!version) 3960 3961 AboutStr = AboutStr||'0D0A'x||"File system "||fs.!name' Version 'fs.!version 3962 3963 /* Plugin */ 3964 NDFSDir = value("NDFSDIR",,"OS2ENVIRONMENT") 3965 plugindll. ="" 3966 3967 if NDFSDir = "" then NDFSDir = SysBootDrive()'\ecs\dll' 3968 3969 ok = SysFileTree(NDFSDir'\ndpsmb.dll', "plugindll.", 'FOS') 3970 3971 if plugindll.0 > 0 then do 3972 DummyRH = VRMethod('CN_About', 'AddRecord') 3973 ok = VRMethod("CN_ABOUT", "SetFieldData", DummyRH, About.DscFH, "Plugin file", About.ValFH, plugindll.1) 3974 AboutStr = AboutStr||'0D0A'x||"Plugin file "plugindll.1 3975 3976 address cmd 'bldlevel.exe 'plugindll.1' >'samba.!msg 3977 3978 I = 0 3979 Dummy = linein(samba.!msg) 3980 say Dummy 3981 Dummy = linein(samba.!msg) 3982 say Dummy 3983 Dummy = linein(samba.!msg) 3984 say Dummy 3985 do until lines(samba.!msg) = 0 3986 I = I + 1 3987 line.I = linein(samba.!msg) 3988 if pos('has no LAN component-style version string', line.I) > 0 then do 3989 DummyRH = VRMethod('CN_About', 'AddRecord') 3990 ok = VRMethod("CN_ABOUT", "SetFieldData", DummyRH, About.DscFH, "Error", About.ValFH, "Plugin has no LAN component-style version string") 3991 leave 3992 end 3993 else do 3994 parse var line.I desc':'vers 3995 DummyRH = VRMethod('CN_About', 'AddRecord') 3996 ok = VRMethod("CN_ABOUT", "SetFieldData", DummyRH, About.DscFH, "Plugin "Desc, About.ValFH, strip(Vers)) 3997 AboutStr = AboutStr||'0D0A'x||"Plugin "Desc" "strip(Vers) 3998 end 3999 end 4000 line.0 = I 4001 ok = stream(samba.!msg,'c','close') 4002 ok = SysFileDelete(samba.!msg) 4003 end 4004 else do 4005 DummyRH = VRMethod('CN_About', 'AddRecord') 4006 ok = VRMethod("CN_ABOUT", "SetFieldData", DummyRH, About.DscFH, "Plugin", About.ValFH, "Not found!") 4007 AboutStr = AboutStr||'0D0A'x||"Plugin not found!" 4008 end 4009 4010 /* Commandline utilities */ 4011 address cmd samba.!smbclientexe' -V >'samba.!msg 4012 ClutVer = linein(samba.!msg) 4013 ok = stream(samba.!msg,'c','close') 4014 ok = SysFileDelete(samba.!msg) 4015 4016 DummyRH = VRMethod('CN_About', 'AddRecord') 4017 ok = VRMethod("CN_ABOUT", "SetFieldData", DummyRH, About.DscFH, "Commandline utility path", About.ValFH, VRParseFileName(samba.!smbclientexe,"DP")) 4018 4019 DummyRH = VRMethod('CN_About', 'AddRecord') 4020 ok = VRMethod("CN_ABOUT", "SetFieldData", DummyRH, About.DscFH, "Commandline utilities", About.ValFH, ClutVer) 4021 AboutStr = AboutStr||'0D0A'x||"Commandline utilities "||ClutVer 4022 4023 /* GUI Version */ 4024 DummyRH = VRMethod('CN_About', 'AddRecord') 4025 ok = VRMethod("CN_ABOUT", "SetFieldData", DummyRH, About.DscFH, "EVFSGUI", About.ValFH, VRGet("Main", "HintText")) 4026 AboutStr = AboutStr||'0D0A'x||"EVFSGUI"||VRGet("Main", "HintText") 4027 call VRSet "SW_ABOUT", "Painting", 1 4049 call _AboutSambaClientGetInfo 4050 4028 4051 return 4029 4052 /*:VRX SW_ABOUT_Fini -
trunk/guitools/shared/smbtree.vrs
r641 r643 13 13 14 14 say " UserCred="UserCred 15 15 16 16 17 /* smbtree -S = List workgroups (domains) and servers of tree */ 17 say ' detach 'samba.!smbtreeexe' 'BroadCast' -S 'UserCred' 'debuglevel' >'samba.! msg18 address cmd 'detach 'samba.!smbtreeexe' 'BroadCast' -S 'UserCred' 'debuglevel' >'samba.! msg18 say ' detach 'samba.!smbtreeexe' 'BroadCast' -S 'UserCred' 'debuglevel' >'samba.! 19 address cmd 'detach 'samba.!smbtreeexe' 'BroadCast' -S 'UserCred' 'debuglevel' >'samba.! 19 20 20 21 if BroadCast = '-b' then BroadCast = 1; else BroadCast = 0 … … 34 35 say time()' _RefreshTreeDisplay() started' 35 36 36 stat = stream(samba.! msg,'c','open read')37 stat = stream(samba.!,'c','open read') 37 38 if stat <> "READY:" then return 38 39 … … 49 50 drop smbtree. 50 51 51 ok = file2stem(samba.! msg,"smbtreeline.")52 ok = file2stem(samba.!,"smbtreeline.") 52 53 53 54 do sl = 1 to smbtreeline.0
Note:
See TracChangeset
for help on using the changeset viewer.
