- Timestamp:
- Apr 26, 2010, 4:51:52 PM (15 years ago)
- Location:
- branches/guitools-2.0
- Files:
-
- 1 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/guitools-2.0/evfsgui/changes
r410 r450 7 7 - Enable WPS integration code (partly done) 8 8 - Enable and complete printer support code 9 - Eventually support on-the-fly browsing of directories/files in EVFSGUI10 9 - Eventually support server based logon scripts (requires REXX rpc library, 11 10 partly done) 12 - Opening WPS folders should be done in a separate Thread (in order not to 13 block EVFSGUI while waiting for a slow WPS folder...) 14 15 Version 2.0.3 2010-02-20 16 - Fixed: The NLV subroutine now properly falls back to the builtin (bracketed) 17 message files in case NO (not even an english message file) can be 18 found. 11 - Passive connections/double connection detection does not seem to work 12 properly (it does, it is Turbofolder that is creating the 100% CPU load) 13 14 Version 2.1-beta 15 - Added: On-the-fly browsing on remote servers 16 - Added: Filed can be "opened" during on-the-fly browsing (a mountpoint 17 is created first) 18 - Added: Set icons of browsed files according to extender types (only most 19 often used types (EXE, OOO, PDF, generic multimedia icons - no WPS 20 mechanism for that) 21 22 Version 2.0.5 2010-04-23 23 - Fixed: Passive connections were not removed when the same connection was 24 loaded using a profile 25 - Fixed: Missing NLV message if wrong file was dropped onto the left pane 26 27 Version 2.0.4 2010-04-09 28 - Fixed: Connection details doubled since MEMLEN etc removal. 29 - Changed: Some parts of the code were refactored 30 31 Version 2.0.3 2010-02-23 32 - Added: Open mountpoint as WPS object moved to a separate thread in order 33 not to block the EVFSGUI main window while waiting for a folder 34 on a slow connection to open. 35 - Added: Double-click also opens a mountpoint as WPS folder 36 - Added: Debug ON also makes hidden columns in connections details visible 37 - Fixed: "Abort" button on progress window was not NLV enabled 38 - Fixed: The NLV subroutine now properly falls back to the builtin 39 (bracketed) message files in case NO (not even an english 40 message file) can be found. 41 - Fixed: Do not crash in Autostart dialog when no NLV file was found. 19 42 - Fixed: Open mountpoint as WPS object fully workable 20 43 - Fixed: Open mountpint now has a consistent behaviour with other actions -
branches/guitools-2.0/evfsgui/evfsgui.RC
r327 r450 27 27 BITMAP 35 eBall_25.bmp 28 28 icon 68 passive.ico 29 icon 80 PDF.ICO 30 icon 81 ooo-base-doc.ico 31 icon 82 ooo-calc-doc.ico 32 icon 83 ooo-draw-doc.ico 33 icon 84 ooo-impress-doc.ico 34 icon 85 ooo-math-doc.ico 35 icon 86 ooo-writer-doc.ico 36 icon 87 fw.ico 37 icon 88 image.ico 38 icon 89 movie.ico 39 icon 90 snd.ico 40 icon 91 wpi.ico 41 icon 92 zip.ico 42 icon 93 inf.ico 43 icon 94 txt.ico -
branches/guitools-2.0/evfsgui/evfsgui.VRP
r410 r450 1 1 VX-REXX OS/2 V2.14 Build B3 2 2 VRX: evfsgui.VRX 3 VRX: wps_open.VRX 3 4 VXOFile: VRSPLIT 4 5 MacroPath: VRM:U:\Develop\Samba\guitools-2.0\evfsgui … … 7 8 RunDirectory: U:\Develop\Samba\guitools-2.0\evfsgui 8 9 VRXWindow: __VREMainWindow,1,1482,915,891,8034 9 VRXWindow: __VRESectionListWindow,1,1469,10551,8696,4794 10 VRXWindow: __VREFileListWindow,1,807,11033,1506,3358 11 VRXWindow: __VRESectionListWindow,1,2361,10648,8696,4794 10 12 VRXWindow: __VREToolsWindow,0,2517,7082,6992,1669 13 VRXWindow: __VREWindListWindow,1,542,8721,2650,3150 11 14 UserFile: 1 12 15 UserWindow: Main,1 -
branches/guitools-2.0/evfsgui/evfsgui.VRX
r410 r450 104 104 VolTplRH = VRMethod('CN_CURRENT', 'AddRecord', , 'First', 'Volume template', '#10:PMWP.DLL' ) 105 105 MpTplRH = VRMethod('CN_CURRENT', 'AddRecord', VolTplRH, 'First', 'Mountpoint template', '#10:PMWP.DLL' ) 106 return 107 108 /*:VRX _BrowseBuildPath 109 */ 110 _BrowseBuildPath: procedure expose options. sharerh 111 IF options.!debug == 1 THEN SAY time()' _BrowseBuildPath started' 112 rh = arg(1) 113 114 finished = 0 115 BrowsePathStr = '' 116 117 do while \finished 118 parentrh = VRMethod("CN_smbtree","GetRecordAttr",rh,"Parent") 119 resname = VRMethod("CN_smbtree","GetRecordAttr",rh,"caption") 120 userdata = VRMethod("CN_smbtree","GetRecordAttr",rh,"userdata") 121 parse var userdata udatatype '|' udatamsg 122 parse var resname resname '0D0A'x . 123 resname = strip(resname) 124 /* say " Not connected - cannot open!" */ 125 select 126 when udatatype = "SERVER" then do 127 BrowsePathStr = '\\'resname'\'BrowsePathStr 128 finished = 1 129 end 130 when udatatype = "DISK" then do 131 BrowsePathStr = resname'\'BrowsePathStr 132 sharerh =rh 133 rh = parentrh 134 end 135 otherwise do 136 BrowsePathStr = resname'\'BrowsePathStr 137 rh = parentrh 138 end 139 end 140 /* say ' BrowsePathStr = "'BrowsePathStr'"' */ 141 end 142 BrowsePathStr = strip(BrowsePathStr,'T','\') 143 IF options.!debug == 1 THEN SAY time()' _BrowseBuildPath done, returning "'BrowsePathStr'"' 144 return BrowsePathStr 145 146 /*:VRX _BrowseDirectory 147 */ 148 _BrowseDirectory: /* This must not be a procedure */ 149 IF options.!debug == 1 THEN SAY time()' _BrowseDirectory started' 150 151 /* Turn off painting */ 152 ok = VRSet("CN_SMBTREE","Painting", 0 ) 153 call VRSet VRWindow(), 'Pointer', 'Wait' 154 155 /* Make sure credentials are usable */ 156 if UserCred = 'USERCRED' | UserCred = '' | UserCred = '--user=%' then UserCred = '-N' 157 158 say ' 'samba.!smbclientexe' \\'machine'\'sharename' 'UserCred' --command="dir 'browsepath'"' 159 address cmd samba.!smbclientexe' \\'machine'\'sharename' 'UserCred' --command="dir 'browsepath'" 'debuglevel' 2>NUL 1>'samba.!msg 160 161 if UserCred = '-N' then UserCred = '' 162 163 I = 0 164 do until lines(samba.!msg) = 0 165 infoline = linein(samba.!msg) 166 select 167 when pos('blocks',infoline) > 0 then do /* Last line */ 168 /* we should handle size information here */ 169 iterate 170 end 171 when I = 0 & length(infoline) > 0 & left(infoline,2) <> " " then do /* Login message */ 172 say ' Login message "'Infoline'"' 173 ok = VRMethod("CN_SMBTREE", "SetRecordAttr", SMBObj.rh, "Userdata", SMBObj.udatatype'|'infoline ) 174 ok = VRSet("DT_STATUSBAR","Caption", infoline) 175 end 176 when left(infoline,2) = " " & length(infoline) > 0 then do /* file or DIR */ 177 wn = words(infoline) 178 fyear = word(infoline,wn) 179 ftime = word(infoline,wn-1) 180 fday = word(infoline,wn-2) 181 fmonth = word(infoline,wn-3) 182 fwday = word(infoline,wn-4) 183 pos_attr = pos(fwday,infoline)-16 184 fsize = word(infoline,wn-5) 185 fattr = substr(infoline,pos_attr,6) 186 fname = strip( substr(infoline,3,pos_attr-3)) 187 if fname = '.' | fname = '..' then iterate /* we do not display these */ 188 if pos('H',fattr) > 0 then iterate /* we do not display hidden files */ 189 if pos('S',fattr) > 0 then iterate /* we do not display system files */ 190 I = I + 1 191 fh.I = VRMethod( "CN_SMBTREE", "AddRecord", SMBObj.rh, , fname) 192 if pos('D',fattr) = 0 then do 193 Ext = translate(VRParseFIleName(fname,'E')) 194 select 195 when Ext = 'EXE' then ficon = '#3:PMWP.DLL' /* executable */ 196 when Ext = 'CMD' then ficon = '#2:PMWP.DLL' /* OS/2 or NT batch */ 197 when Ext = 'BAT' then ficon = '#1:PMWP.DLL' /* DOS batch */ 198 when Ext = 'PDF' then ficon = '#80' /* PDF document */ 199 when wordpos(Ext, 'XLS SXC ODS') > 0 then ficon = '#82' /* spreadsheet */ 200 when wordpos(Ext, 'DOC SXW ODT') > 0 then ficon = '#86' /* text document */ 201 when wordpos(Ext, 'FW2 FW3 FW4') > 0 then ficon = '#87' /* framework */ 202 when wordpos(Ext, 'JPG BMP PNG GIF TIF') > 0 then ficon = '#88' /* image */ 203 when wordpos(Ext, 'AVI MPG FLV WMV') > 0 then ficon = '#89' /* image */ 204 when wordpos(Ext, 'WAV MP3 OGG MID') > 0 then ficon = '#90' /* sound */ 205 when wordpos(Ext, 'WPI') > 0 then ficon = '#91' /* warpin */ 206 when wordpos(Ext, 'ZIP') > 0 then ficon = '#92' /* zip */ 207 when wordpos(Ext, 'INF HLP') > 0 then ficon = '#93' /* View */ 208 when wordpos(Ext, 'TXT') > 0 then ficon = '#94' /* View */ 209 otherwise ficon = '#24:PMWP.DLL' /* default file icon */ 210 end 211 ftype = 'FILE' 212 end 213 else do 214 ficon = '#26:PMWP.DLL' /* dir */ 215 ftype = 'DIRECTORY' 216 end 217 218 ok = VRmethod("CN_SMBTREE", "SetRecordAttr", fh.I, "userdata", ftype'|'fsize' Bytes 'fday'-'fmonth'-'fyear' 'ftime,'icon',Ficon) 219 220 end 221 otherwise nop /* no other line type */ 222 end 223 end 224 if I > 0 then ok = VRMethod("CN_SMBTREE","SetRecordAttr",SMBObj.rh, "Icon", "#34:PMWP.DLL") /* open folder */ 225 ok = stream(samba.!msg,'c','close') 226 ok = SysFileDelete(samba.!msg) 227 228 ok = VRMethod( "CN_SMBTREE", "SetRecordAttr", SMBObj.rh,"Collapsed", 0) 229 /* Turn on painting */ 230 call VRSet VRWindow(), 'Pointer', '<default>' 231 ok = VRSet("CN_SMBTREE","Painting", 1 ) 232 IF options.!debug == 1 THEN SAY time()' _BrowseDirectory done' 233 return 234 235 /*:VRX _BrowseObjectOpen 236 */ 237 _BrowseObjectOpen: procedure expose options. cd. 238 machine = arg(1) 239 sharename = arg(2) 240 browsepath = arg(3) 241 242 CALL VRMethod 'CN_CONDET', 'GetRecordList', 'All', 'records.' 243 244 OpenOk = 0 245 246 DO i = 1 TO records.0 247 if VRMethod( 'CN_CONDET', "GetFieldData", records.i, CD.StatusFH) = "#64:PMWP.DLL" then do 248 IF options.!debug == 1 THEN SAY ' 'VRMethod( 'CN_CONDET', "GetFieldData", records.i, CD.StatusFH)' 'VRMethod( 'CN_CONDET', "GetFieldData", records.i, CD.MPointFH)' 'VRMethod( 'CN_CONDET', "GetFieldData", records.i, CD.ServerFH)' 'VRMethod( 'CN_CONDET', "GetFieldData", records.i, CD.ShareFH) 249 if machine = VRMethod( 'CN_CONDET', "GetFieldData", records.i, CD.ServerFH) &, 250 sharename = VRMethod( 'CN_CONDET', "GetFieldData", records.i, CD.ShareFH) then do 251 Object = strip(VRMethod( 'CN_CONDET', "GetFieldData", records.i, CD.MPointFH),'T','\')'\'browsepath 252 IF options.!debug == 1 THEN SAY ' Non UNC object: "'Object'"' 253 ID = VRMethod( "Application", "StartThread", "wps_open", Object, "DEFAULT" ) 254 OpenOK = 1 255 end 256 end 257 if OpenOK = 1 then leave 258 end 259 return OpenOK 260 261 /*:VRX _BrowseResetObject 262 */ 263 _BrowseResetObject: procedure 264 ok = VRSet("CN_SMBTREE","Painting", 0 ) 265 rh = arg(1) 266 267 /* Remove all files and directories whose parent is our share */ 268 ok = VRMethod( "CN_SMBTREE", "GetRecordList", "All", "AllRH." ) 269 do I = 1 to AllRH.0 270 AllParentRH = VRMethod("CN_smbtree","GetRecordAttr",AllRH.I,"Parent") 271 if AllParentRH = rh then ok = VRMethod( "CN_SMBTREE", "RemoveRecord", AllRH.I ) 272 end 273 ok = VRSet("CN_SMBTREE","Painting", 1 ) 106 274 return 107 275 … … 200 368 return 201 369 370 /*:VRX _dropdeprecated 371 */ 372 _dropdeprecated: 373 drop rh 374 drop parentrh 375 drop icon 376 drop resname 377 drop udatatype 378 drop udatamsg 379 return 380 381 /*:VRX _GetSMBObjectProperties 382 */ 383 _GetSMBObjectProperties: procedure expose options. SMBObj. rh icon resname udatatype udatamsg parentrh 384 IF options.!debug == 1 THEN SAY time()' _GetSMBObjectProperties started' 385 386 /* Purpose of this subroutine: 387 The current SMB object's frequently used properties should be stored in a stem 388 SMBObj.rh = recordhandle of the object 389 SMBObj.resname = resourcename of the object 390 SMBObj.icon = icon of the object 391 SMBObj.udatatype = type of object (WORKGROUP, SERVER, DISK, PRINTER, FILE, DIRECTORY) 392 SMBObj.udatamsg = arbitrary object related data (Login message, file properties) 393 SMBObj.parentrh = recordhandle of the object's parent 394 395 The stem-less counterparts of these variables are considered deprecated and should be removed wherever possible 396 This routine will drop any value in order to make sure the stem actually works 397 */ 398 call _dropdeprecated 399 400 SMBObj. = "" 401 SMBObj.rh = arg(1) 402 403 if VRMethod( 'CN_SMBTREE', "ValidateRecord", SMBObj.rh) <> 1 | SMBObj.rh = "" then do 404 SMBObj. = "" 405 IF options.!debug == 1 THEN SAY time()' _GetSMBObjectProperties aborted' 406 return 407 end 408 409 SMBObj.Icon = VRMethod("CN_SMBTREE", "GetRecordAttr", SMBObj.rh, "Icon") 410 411 SMBObj.parentrh = VRMethod("CN_SMBTREE", "GetRecordAttr", SMBObj.rh, "Parent") 412 413 SMBObj.resname = VRMethod("CN_smbtree", "GetRecordAttr", SMBObj.rh, "Caption") 414 parse var SMBObj.resname SMBObj.resname '0D0A'x . 415 SMBObj.resname = strip(SMBObj.resname) 416 417 Userdata = VRMethod("CN_smbtree", "GetRecordAttr", SMBObj.rh, "Userdata") 418 parse var userdata SMBObj.udatatype '|' SMBObj.udatamsg 419 SMBObj.udatatype = strip(SMBObj.udatatype) 420 SMBObj.udatamsg = strip(SMBObj.udatamsg) 421 422 IF options.!debug == 1 THEN do 423 SAY ' Handle: "'SMBObj.rh'"' 424 SAY ' Resource: "'SMBObj.resname'"' 425 SAY ' Type: "'SMBObj.udatatype'"' 426 SAY ' Message: "'SMBObj.udatamsg'"' 427 SAY ' Icon: "'SMBObj.icon'"' 428 end 429 430 IF options.!debug == 1 THEN SAY time()' _GetSMBObjectProperties done' 431 return 432 202 433 /*:VRX _GUIInit 203 434 */ … … 205 436 CALL VRSet 'Main', 'HelpFile', settings.!helpfile 206 437 207 CALL NLVSetText 'Main', 'Caption', 1208 CALL NLVSetText 'DT_CURRENT', 438 CALL NLVSetText 'Main', 'Caption', 1 439 CALL NLVSetText 'DT_CURRENT', 'Caption', 10 209 440 CALL NLVSetText 'PB_DETACH', 'Caption', 11 210 441 CALL NLVSetText 'PB_UNMOUNT', 'Caption', 12 211 CALL NLVSetText 'DT_DIALOG', 442 CALL NLVSetText 'DT_DIALOG', 'Caption', 13 212 443 CALL NLVSetText 'DT_MOUNT', 'Caption', 14 213 444 … … 228 459 CALL NLVSetText 'PB_HELP', 'Caption', 4 229 460 230 /* Herwig B. */ 231 CALL NLVSetText 'MENU_CONTEXT_DETACH', 'Caption', 11 232 CALL NLVSetText 'MENU_CONTEXT_UNMOUNT', 'Caption', 12 233 CALL NLVSetText 'MENU_CONTEXT_EDIT', 'Caption', 32 234 CALL NLVSetText 'MENU_CONTEXT_OPEN', 'Caption', 94 461 CALL NLVSetText 'MENU_CONTEXT_DETACH', 'Caption', 11 462 CALL NLVSetText 'MENU_CONTEXT_UNMOUNT', 'Caption', 12 463 CALL NLVSetText 'MENU_CONTEXT_EDIT', 'Caption', 32 464 CALL NLVSetText 'MENU_CONTEXT_OPEN', 'Caption', 94 465 CALL NLVSetText 'MENU_CONTEXT_OPEN_ICON', 'Caption', 95 466 CALL NLVSetText 'MENU_CONTEXT_OPEN_TREE', 'Caption', 96 467 CALL NLVSetText 'MENU_CONTEXT_OPEN_DETAIL', 'Caption', 97 468 CALL NLVSetText 'MENU_CONTEXT_OPEN_SETTINGS', 'Caption', 98 469 CALL NLVSetText 'MENU_CONTEXT_OPEN_SPLITVIEW','Caption', 99 235 470 236 471 CALL NLVSetText 'Menu_File', 'Caption', 80 … … 300 535 */ 301 536 _PassiveLoad: 302 Say "_PassiveLoad started" 537 IF options.!debug == 1 THEN SAY time()' '||"_PassiveLoad started" 538 303 539 do cnt = 1 to 255 304 540 resdata = VRGetIni( "PassiveConnections", cnt, settings.!ini ) … … 306 542 307 543 PARSE Var resdata p_mpoint resource rwFlag 308 309 say "resdata ="resdata 310 say "p_mpoint ="p_mpoint 311 say "resource ="resource 312 say "rwFlag ="rwFlag 313 314 544 IF options.!debug == 1 THEN do 545 say " resdata ="resdata 546 say " p_mpoint ="p_mpoint 547 say " resource ="resource 548 say " rwFlag ="rwFlag 549 end 315 550 316 551 /* vfs.!drive = FILESPEC('DRIVE', node ) … … 330 565 PARSE VAR resource . 'MASTER=' p_master ';' . 331 566 PARSE VAR resource . 'MASTERTYPE=' p_mtype ';' . 332 567 /* PARSE VAR resource . 'MEMLEN=' p_memlen ';' . 333 568 PARSE VAR resource . 'LOGFILE=' p_logfile ';'. 334 PARSE VAR resource . 'LOGLEVEL=' p_loglevel ';' . 569 PARSE VAR resource . 'LOGLEVEL=' p_loglevel ';' . */ 335 570 PARSE VAR resource . 'EASUPPORT=' p_easupport . 336 571 … … 338 573 339 574 cd.lastrh = VRMethod("CN_CONDET","AddRecord") 340 say "cd.lastrh="cd.lastrh 341 342 ok = VRMethod("CN_CONDET", "SetFieldData", cd.lastrh, cd.mpointFH, p_mpoint, cd.mpidxfh, p_mpidx, cd.workgroupfh, p_workgroup, cd.serverfh, p_server, cd.sharefh, p_share, cd.userfh, p_user) 343 ok = VRMethod("CN_CONDET", "SetFieldData", cd.lastrh, cd.passwordfh, p_password, cd.spasswordfh, p_spassword, cd.masterfh, p_master, cd.mtypefh, p_mtype) 344 ok = VRMethod("CN_CONDET", "SetFieldData", cd.lastrh, cd.memlenfh, p_memlen, cd.easupportfh, p_easupport, cd.logfilefh, p_logfile, cd.loglevelfh, p_loglevel, cd.rwfh, p_rw) 575 IF options.!debug == 1 THEN say " cd.lastrh = "cd.lastrh 576 577 ok = VRMethod("CN_CONDET", "SetFieldData", cd.lastrh, cd.mpointFH, p_mpoint, cd.mpidxfh, p_mpidx) 578 ok = VRMethod("CN_CONDET", "SetFieldData", cd.lastrh, cd.workgroupfh, p_workgroup, cd.serverfh, p_server, cd.sharefh, p_share) 579 ok = VRMethod("CN_CONDET", "SetFieldData", cd.lastrh, cd.userfh, p_user, cd.passwordfh, p_password, cd.spasswordfh, p_spassword) 580 ok = VRMethod("CN_CONDET", "SetFieldData", cd.masterfh, p_master, cd.mtypefh, p_mtype, cd.lastrh, cd.easupportfh, p_easupport, cd.rwfh, p_rw) 581 /* ok = VRMethod("CN_CONDET", "SetFieldData", cd.lastrh, cd.memlenfh, p_memlen, cd.logfilefh, p_logfile, cd.loglevelfh, p_loglevel ) */ 345 582 ok = VRMethod("CN_CONDET", "SetFieldData", cd.lastrh, cd.statusfh, '#68:PMWP.DLL') /* Passive */ 346 583 ok = VRMethod("CN_CONDET", "SetRecordAttr", cd.lastrh, "Icon", '#68:PMWP.DLL') /* Active */ … … 353 590 354 591 end 355 Say"_PassiveLoad done"592 IF options.!debug == 1 THEN SAY time()' '||"_PassiveLoad done" 356 593 return 357 594 /*:VRX _PassiveSave 358 595 */ 359 596 _PassiveSave: 597 IF options.!debug == 1 THEN SAY time()' '||"_PassiveSave started" 360 598 ok = VRDelIni( "PassiveConnections", "ALL", settings.!ini ) 361 599 … … 382 620 resdata = resdata||';MASTER='||VRMethod("CN_CONDET","GetFieldData", records.i, cd.masterfh) 383 621 resdata = resdata||';MASTERTYPE='||VRMethod("CN_CONDET","GetFieldData", records.i, cd.mtypefh) 384 622 /* resdata = resdata||';MEMLEN='||VRMethod("CN_CONDET","GetFieldData", records.i, cd.memlenfh) 385 623 resdata = resdata||';LOGFILE='||VRMethod("CN_CONDET","GetFieldData", records.i, cd.logfilefh) 386 resdata = resdata||';LOGLEVEL='||VRMethod("CN_CONDET","GetFieldData", records.i, cd.loglevelfh) 624 resdata = resdata||';LOGLEVEL='||VRMethod("CN_CONDET","GetFieldData", records.i, cd.loglevelfh) */ 387 625 resdata = resdata||';EASUPPORT='||VRMethod("CN_CONDET","GetFieldData", records.i, cd.easupportfh) 388 626 resdata = resdata||' '||VRMethod("CN_CONDET","GetFieldData", records.i, cd.rwfh) … … 391 629 else iterate 392 630 end 631 IF options.!debug == 1 THEN SAY time()' '||"_PassiveSave done" 393 632 return 394 633 … … 636 875 637 876 IF parent == '' THEN DO 638 CALL VRSet 'PB_DETACH', 'Enabled', 1877 CALL VRSet 'PB_DETACH', 'Enabled', 1 639 878 CALL VRSet 'MENU_CONTEXT_DETACH', 'Visible', 1 879 CALL VRSet 'MENU_CONTEXT_OPEN', 'Visible', 1 880 CALL VRSet 'MENU_CONTEXT_SEP1', 'Visible', 1 640 881 END 641 882 ELSE DO 642 CALL VRSet 'PB_DETACH', 'Enabled', 0883 CALL VRSet 'PB_DETACH', 'Enabled', 0 643 884 CALL VRSet 'MENU_CONTEXT_DETACH', 'Visible', 0 885 CALL VRSet 'MENU_CONTEXT_OPEN', 'Visible', 0 886 CALL VRSet 'MENU_CONTEXT_SEP1', 'Visible', 0 644 887 END 645 /* Herwig B. */ 888 parse var p_string p_domain':\\'p_server'\'p_share 889 890 ok = VRSet("EF_Server","Value", p_server) 891 646 892 IF options.!debug == 1 THEN SAY time()' CN_CURRENT_Click done' 647 893 RETURN … … 650 896 */ 651 897 CN_CURRENT_ContextMenu: /* PROCEDURE EXPOSE existrec. options. fs. */ 652 /* Herwig B. */ 898 IF options.!debug == 1 THEN SAY time()' '||"CN_CURRENT_ContextMenu started" 899 653 900 CALL VRSet "TM_AUTOCLOSE", "ENABLED", 0 654 901 655 902 rh = VRInfo('Record') 656 903 657 /* Herwig B. */658 904 /* we have to check whether the record still exists because under certain 659 905 circumstances the event routine is executed after the record was already 660 906 removed */ 661 if VRMethod( 'CN_CURRENT', "ValidateRecord", rh) <> 1 then return 662 /* Herwig B. */ 907 if VRMethod( 'CN_CURRENT', "ValidateRecord", rh) <> 1 then do 908 IF options.!debug == 1 THEN SAY time()' '||"CN_CURRENT_ContextMenu aborted" 909 return 910 end 663 911 664 912 data = VRMethod('CN_CURRENT', 'GetRecordAttr', rh, 'UserData') 665 913 PARSE VAR data p_node ';' p_mounts ';' p_string 666 914 667 IF options.!debug == 1 THEN SAY time()' '||data 668 IF options.!debug == 1 THEN SAY time()' '||p_node 669 IF options.!debug == 1 THEN SAY time()' '||p_mounts 670 IF options.!debug == 1 THEN SAY time()' '||p_string 915 IF options.!debug == 1 THEN do 916 SAY ' data = "'data'"' 917 SAY ' p_node = "'p_node'"' 918 SAY ' p_mounts = "'p_mounts'"' 919 SAY ' p_string = "'p_string'"' 920 end 671 921 /* 672 922 infotext = p_node … … 688 938 689 939 CALL VRSet 'MENU_CONTEXT_OPEN', 'Visible', 1 940 CALL VRSet 'MENU_CONTEXT_SEP1', 'Visible', 1 941 CALL VRSet 'Menu_Context_Open_Default', "Visible", 1 690 942 691 943 IF p_mounts > 0 THEN DO … … 705 957 706 958 IF parent == '' THEN DO 707 CALL VRSet 'PB_DETACH', 'Enabled', 1959 CALL VRSet 'PB_DETACH', 'Enabled', 1 708 960 CALL VRSet 'MENU_CONTEXT_DETACH', 'Visible', 1 961 CALL VRSet 'MENU_CONTEXT_OPEN', 'Visible', 1 962 CALL VRSet 'MENU_CONTEXT_SEP1', 'Visible', 1 709 963 END 710 964 ELSE DO 711 CALL VRSet 'PB_DETACH', 'Enabled', 0965 CALL VRSet 'PB_DETACH', 'Enabled', 0 712 966 CALL VRSet 'MENU_CONTEXT_DETACH', 'Visible', 0 967 CALL VRSet 'MENU_CONTEXT_OPEN', 'Visible', 0 968 CALL VRSet 'MENU_CONTEXT_SEP1', 'Visible', 0 713 969 END 714 /* Herwig B. */715 970 716 971 ok = VRMethod( "Menu_Context", "Popup", , , "", "" ) 972 IF options.!debug == 1 THEN SAY time()' '||"CN_CURRENT_ContextMenu done" 717 973 return 718 974 … … 720 976 */ 721 977 CN_CURRENT_DoubleClick: 722 call beep 880, 20 723 say "double click" 978 IF options.!debug == 1 THEN SAY time()' '||"CN_CURRENT_DoubleClick started" 979 980 CALL VRSet "TM_AUTOCLOSE", "ENABLED", 0 981 724 982 rh = VRInfo('Record') 725 /* Herwig B. */ 983 726 984 /* we have to check whether the record still exists because under certain 727 985 circumstances the event routine is executed after the record was already 728 986 removed */ 729 if VRMethod( 'CN_CURRENT', "ValidateRecord", rh) <> 1 then return 730 /* Herwig B. */ 987 if VRMethod( 'CN_CURRENT', "ValidateRecord", rh) <> 1 then do 988 IF options.!debug == 1 THEN SAY time()' '||"CN_CURRENT_DoubleClick aborted" 989 return 990 end 731 991 732 992 data = VRMethod('CN_CURRENT', 'GetRecordAttr', rh, 'UserData') 733 IF options.!debug == 1 THEN SAY time()' '||"data = "data 993 PARSE VAR data p_node ';' p_mounts ';' p_string 994 995 IF options.!debug == 1 THEN do 996 SAY ' data = "'data'"' 997 SAY ' p_node = "'p_node'"' 998 SAY ' p_mounts = "'p_mounts'"' 999 SAY ' p_string = "'p_string'"' 1000 end 1001 call Menu_Context_Open_Default_Click 1002 1003 IF options.!debug == 1 THEN SAY time()' '||"CN_CURRENT_DoubleClick done" 734 1004 return 735 1005 … … 737 1007 */ 738 1008 CN_CURRENT_DragDrop: 739 say "settings.!network = "settings.!network 740 p_workgroup = '' 741 p_server = '' 742 p_share = '' 1009 IF options.!debug == 1 THEN SAY time()' CN_CURRENT_DragDrop started' 1010 1011 IF options.!debug == 1 THEN say " settings.!network = "settings.!network 1012 1013 p_workgroup = '' 1014 p_server = '' 1015 p_share = '' 743 1016 744 1017 srcFile = VRInfo( "SourceFile" ) … … 748 1021 trgRec = VRInfo( "TargetRecord" ) 749 1022 750 say "srcFile = '"srcFile"'" 751 say "srcCtn = '"srcCtn"'" 752 say "srcRec = '"srcRec"'" 753 say "TrgCtn = '"trgCtn"'" 754 say "TrgRec = '"trgRec"'" 755 756 if srcFile <> "" then do /* A file was dropped onto the conatainer - load it */ 757 if translate(VRParseFileName(srcFile,'E')) <> translate(fs.!profileext) then do 758 buttons.0 = 1 759 buttons.1 = NLVGetMessage(9) 760 ok = VRMessage('Main', "TITEL" , "TEXT", 'E','buttons.') 761 end 762 else do 1023 IF options.!debug == 1 THEN do 1024 say ' srcFile = "'srcFile'"' 1025 say ' srcCtn = "'srcCtn'"' 1026 if srcCtn <> "" then say ' srcCtn name = "'VRGet(srcCtn,'Name')'"' 1027 say ' srcRec = "'srcRec'"' 1028 say ' trgCtn = "'trgCtn'"' 1029 if trgCtn <> "" then say ' trgCtn name = "'VRGet(trgCtn,'Name')'"' 1030 say ' trgRec = "'trgRec'"' 1031 end 1032 1033 if srcFile <> "" then do /* A file was dropped onto the container - attempt to load it */ 1034 IF options.!debug == 1 THEN say ' Possible profile dropped: "'srcFile'"' 1035 1036 /* was it really a profile ? */ 1037 if translate(VRParseFileName(srcFile,'E')) = translate(fs.!profileext) then do /* Yes - load it! */ 763 1038 options.!autoload = 1 764 1039 Profile = srcFile 765 1040 call PB_LOAD_Click 766 1041 end 1042 else do /* No - barf! */ 1043 buttons.0 = 1 1044 buttons.1 = NLVGetMessage(9) 1045 ok = VRMessage('Main', NLVGetMessage(103,srcFile ), NLVGetMessage(5), 'E','buttons.') 1046 end 1047 IF options.!debug == 1 THEN SAY time()' CN_CURRENT_DragDrop done (load profile)' 767 1048 return 768 1049 end 769 770 say VRGet(srcCtn,'Name')771 1050 772 1051 ok = VRMethod("CB_MOUNT", "GetStringList", "ShareLevels." ) … … 786 1065 if p_workgroup = "" then ShareLevel = 4 787 1066 788 ok = VRSet( "CB_MOUNT","Selected", Sharelevel )789 ok = VRset("CB_MOUNT" , "Value",mtype.sharelevel)790 791 ok = VRset("EF_SERVER" ,"Value", p_server)792 ok = VRset("EF_SHARE" ,"Value", p_share)1067 ok = VRSet("CB_MOUNT", "Selected", Sharelevel ) 1068 ok = VRset("CB_MOUNT", "Value", mtype.sharelevel) 1069 1070 ok = VRset("EF_SERVER", "Value", p_server) 1071 ok = VRset("EF_SHARE", "Value", p_share) 793 1072 ok = VRset("EF_NETWORK", "Value", p_workgroup) 794 ok = VRset("EF_USER" ,"Value", p_user)1073 ok = VRset("EF_USER", "Value", p_user) 795 1074 ok = VRset("EF_PASSWORD", "Value", p_password) 796 1075 … … 799 1078 p_dir = strip(p_dir,'T','\') 800 1079 801 ok = VRset("CB_DRIVES" ,"Value", p_drv)802 ok = VRset("EF_DIRECTORY" ,"Value", p_dir)1080 ok = VRset("CB_DRIVES", "Value", p_drv) 1081 ok = VRset("EF_DIRECTORY", "Value", p_dir) 803 1082 end 804 1083 else do /* SmbTree */ 805 1084 DragCapt = VRMethod(srcCtn, "GetRecordAttr", srcRec, "Caption") 806 parRH = VRMethod(srcCtn, "GetRecordAttr", srcRec, "Parent")807 808 if parRH = "" then do /* A workgroup was dragged */1085 ParentRH = VRMethod(srcCtn, "GetRecordAttr", srcRec, "Parent") 1086 1087 if ParentRH = "" then do /* A workgroup was dragged */ 809 1088 say "Workgroup dragged!" 810 1089 parse var DragCapt p_workgroup '0D0A'x . … … 817 1096 end 818 1097 else do 819 ParDragCapt = VRMethod(srcCtn, "GetRecordAttr", Par RH, "Caption")820 GPar RH = VRMethod(srcCtn, "GetRecordAttr", ParRH, "Parent")821 822 if GPar RH = "" then do /* A server was dragged */1098 ParDragCapt = VRMethod(srcCtn, "GetRecordAttr", ParentRH, "Caption") 1099 GParentRH = VRMethod(srcCtn, "GetRecordAttr", ParentRH, "Parent") 1100 1101 if GParentRH = "" then do /* A server was dragged */ 823 1102 say "Server dragged!" 824 1103 parse var ParDragCapt p_workgroup '0D0A'x . … … 835 1114 else do /* A share was dragged */ 836 1115 say "Share dragged!" 837 GParDragCapt = VRMethod(srcCtn, "GetRecordAttr", GPar RH, "Caption")1116 GParDragCapt = VRMethod(srcCtn, "GetRecordAttr", GParentRH, "Caption") 838 1117 839 1118 parse var GParDragCapt p_workgroup '0D0A'x . … … 854 1133 end 855 1134 856 say 'p_workgroup = "'p_workgroup'"' 857 say 'p_server = "'p_server'"' 858 say 'p_share = "'p_share'"' 1135 IF options.!debug == 1 THEN do 1136 say 'p_workgroup = "'p_workgroup'"' 1137 say 'p_server = "'p_server'"' 1138 say 'p_share = "'p_share'"' 1139 end 859 1140 860 1141 ok = VRSet( "CB_MOUNT", "Selected", Sharelevel ) … … 894 1175 if VRMethod("CN_CONDET", "GetRecordAttr", srcRec, "Icon") = '#68:PMWP.DLL' then ok = VRMethod( "CN_CONDET", "RemoveRecord", srcRec) 895 1176 end 1177 IF options.!debug == 1 THEN SAY time()' CN_CURRENT_DragDrop done' 896 1178 return 897 1179 … … 899 1181 */ 900 1182 CN_SMBTREE_Click: 1183 IF options.!debug == 1 THEN SAY time()' CN_SMBTREE_Click started' 901 1184 ok = VRset("DT_StatusBar","Caption", VRGet("Main", "HintText")) 902 rh = VRInfo('Record') 903 if VRMethod( 'CN_SMBTREE', "ValidateRecord", rh) <> 1 then return 904 udata = VRMethod('CN_smbtree', 'GetRecordAttr', rh, 'UserData') 905 parse var udata udatatype'|'udatamsg 906 say udatatype 907 say udatamsg 908 ok = VRset("DT_Statusbar", "Caption", udatamsg) 909 drop udatatype 910 drop udatamsg 911 912 return 913 1185 1186 call _dropdeprecated 1187 call _GetSmbObjectProperties VRInfo('Record') 1188 1189 ok = VRset("DT_Statusbar", "Caption", SMBObj.udatamsg) 1190 1191 IF options.!debug == 1 THEN SAY time()' CN_SMBTREE_Click done' 1192 return 914 1193 /*:VRX CN_SMBTREE_ContextMenu 915 1194 */ 916 1195 CN_SMBTREE_ContextMenu: 917 rh = VRInfo('Record') 918 if VRMethod( 'CN_SMBTREE', "ValidateRecord", rh) <> 1 then return 919 920 Icon = VRMethod("CN_SMBTREE", "GetRecordAttr", rh, "Icon") 921 922 ok = VRset("MItem_64","Visible", (Icon = "#35:PMWP.DLL")|(Icon = "#62:PMWP.DLL")) 923 ok = VRset("Menu_Selected_Info","Visible", (Icon = "#35:PMWP.DLL")) 924 ok = VRset("Menu_Selected_Default_Workgroup","Visible", (Icon = "#62:PMWP.DLL")) 925 926 if Icon = "#65:PMWP.DLL" then do /* Printer installation not supported at the moment */ 927 /* call _Printerinfo */ 928 CALL VRMessage 'Main', NLVGetMessage( 62 ), NLVGetMessage( 5 ), 'E' 1196 IF options.!debug == 1 THEN SAY time()' CN_SMBTREE_ContextMenu started' 1197 1198 call _dropdeprecated 1199 call _GetSmbObjectProperties VRInfo('Record') 1200 1201 /* Hide all context menu entries */ 1202 ok = VRSet("Menu_Selected_Remove", "Visible", 0) /* CN_CONDET */ 1203 ok = VRSet("Menu_Selected_Retry", "Visible", 0) /* CN_CONDET */ 1204 ok = VRSet("Menu_Selected_Connect", "Visible", 0) /* CN_SMBTREE */ 1205 ok = VRSet("Menu_Selected_Sep1", "Visible", 0) /* CN_SMBTREE */ 1206 ok = VRSet("Menu_Selected_Info", "Visible", 0) /* CN_SMBTREE */ 1207 ok = VRSet("Menu_Selected_Default_Workgroup","Visible", 0) /* CN_SMBTREE */ 1208 1209 select 1210 when SMBObj.udatatype = "DISK" then do 1211 ok = VRSet("Menu_Selected_Connect", "Visible", 1) 1212 ok = VRMethod( "Menu_Selected", "Popup", , , "", "" ) 1213 end 1214 when SMBObj.udatatype = "SERVER" then do 1215 ok = VRSet("Menu_Selected_Connect", "Visible", 1) 1216 ok = VRSet("Menu_Selected_Sep1", "Visible", 1) 1217 ok = VRSet("Menu_Selected_Info", "Visible", 1) 1218 ok = VRMethod( "Menu_Selected", "Popup", , , "", "" ) 1219 end 1220 when SMBObj.udatatype = "WORKGROUP" then do 1221 ok = VRSet("Menu_Selected_Connect", "Visible", 1) 1222 ok = VRSet("Menu_Selected_Sep1", "Visible", 1) 1223 ok = VRSet("Menu_Selected_Default_Workgroup","Visible", 1) 1224 ok = VRMethod( "Menu_Selected", "Popup", , , "", "" ) 1225 end 1226 when SMBObj.udatatype = "PRINTER" then do 1227 CALL VRMessage 'Main', NLVGetMessage( 62 ), NLVGetMessage( 5 ), 'E' 1228 end 1229 otherwise nop /* FILE DIRECTORY */ 1230 end 1231 1232 IF options.!debug == 1 THEN SAY time()' CN_SMBTREE_ContextMenu done' 1233 return 1234 /*:VRX CN_SMBTREE_DoubleClick 1235 */ 1236 CN_SMBTREE_DoubleClick: 1237 IF options.!debug == 1 THEN SAY time()' CN_SMBTREE_DoubleClick started' 1238 1239 call _dropdeprecated 1240 call _GetSmbObjectProperties VRInfo('Record') 1241 1242 IF options.!debug == 1 THEN SAY time()' CN_SMBTREE_DoubleClick done' 1243 return /* Enable last 2 lines for 2.0.x (to disable on the fly browsing) */ 1244 1245 1246 IF options.!debug == 1 THEN SAY ' Browsing "'SMBObj.udatatype'"' 1247 1248 If SMBObj.udatatype = "DIRECTORY" then do 1249 BrowsePath = _browsebuildpath(SMBObj.rh) 1250 1251 call _BrowseResetObject(SmbObj.rh) 1252 1253 parse var browsepath '\\'machine'\'sharename '\' browsepath 1254 browsepath = browsepath'\*' 1255 1256 call _BrowseDirectory 1257 end 1258 1259 If SMBObj.udatatype = "FILE" then do 1260 BrowsePath = _browsebuildpath(SMBObj.rh) 1261 call _BrowseResetObject(SmbObj.rh) 1262 1263 parse var browsepath '\\'machine'\'sharename '\' browsepath 1264 1265 OpenOk = _browseobjectopen(machine,sharename,browsepath) 1266 1267 if \OpenOK then do 1268 say " Not connected - trying to connect" 1269 ok = VRMethod( "CN_SMBTREE", "SetRecordAttr", sharerh, "Selected", 1) 1270 call PB_CONNECT_Click 1271 ok = VRMethod( "CN_SMBTREE", "SetRecordAttr", SMBObj.rh, "Selected", 1) 1272 1273 OpenOk = _browseobjectopen(machine,sharename,browsepath) 1274 1275 if \OpenOk then do 1276 say " Not connected - cannot open - aborting!" 1277 end 1278 end 1279 end 1280 1281 if SMBObj.udatatype = "DISK" then do 1282 machine = VRMethod("CN_smbtree","GetRecordAttr",SMBObj.parentrh,"Caption") 1283 parse var machine machine '0D0A'x . 1284 machine = strip(machine) 1285 1286 call _BrowseResetObject(SmbObj.rh) 1287 1288 sharename = SMBObj.resname 1289 BrowsePath = "" 1290 1291 call _BrowseDirectory 1292 end 1293 IF options.!debug == 1 THEN SAY time()' CN_SMBTREE_DoubleClick done' 1294 return 1295 /*:VRX CN_SMBTREE_DragStart 1296 */ 1297 CN_SMBTREE_DragStart: 1298 IF options.!debug == 1 THEN SAY time()' CN_SMBTREE_DragStart started' 1299 1300 obj = VRInfo( "object" ) 1301 1302 ok = VRMethod( "CN_SMBTREE", "GetRecordList", "SourceOrSelected", "SelRH." ) 1303 if SelRH.0 = 0 then do 1304 IF options.!debug == 1 THEN SAY time()' CN_SMBTREE_DragStart aborted' 929 1305 return 930 1306 end 931 1307 932 /* This is the place to enable specific context menu entries */ 933 ok = VRMethod( "CN_SMBTREE", "GetRecordList", "All", "records." ) 934 ok = VRSet("Menu_Selected_Connect", "Visible", (records.0 <> 0 & (Icon <> "#61:PMWP.DLL") )) 935 936 ok = VRMethod( "Menu_Selected", "Popup", , , "", "" ) 937 return 938 939 /*:VRX CN_SMBTREE_DragStart 940 */ 941 CN_SMBTREE_DragStart: 942 943 obj = VRInfo( "object" ) 944 ok = VRMethod( "CN_SMBTREE", "GetRecordList", "SourceOrSelected", "selrec." ) 945 if selrec.0 = 0 then return 946 947 Icon = VRMethod("CN_SMBTREE", "GetRecordAttr", selrec.1, "Icon") 948 949 if Icon = "#65:PMWP.DLL" then do /* Printers not supported at the moment */ 950 CALL VRMessage 'Main', NLVGetMessage( 62 ), NLVGetMessage( 5 ), 'E' 951 end 952 else call VRMethod obj, 'StartDrag' 953 return 954 1308 call _dropdeprecated 1309 call _GetSMBObjectProperties SelRH.1 1310 1311 select 1312 when SMBObj.udatatype = "WORKGROUP" | SMBObj.udatatype = "SERVER" | SMBObj.udatatype = "DISK" then do 1313 call VRMethod obj, 'StartDrag' 1314 end 1315 when SMBObj.udatatype = "PRINTER" then do 1316 CALL VRMessage 'Main', NLVGetMessage( 62 ), NLVGetMessage( 5 ), 'E' 1317 end 1318 otherwise nop /* FILE DIRECTORY */ 1319 end 1320 1321 IF options.!debug == 1 THEN SAY time()' CN_SMBTREE_DragStart done' 1322 return 955 1323 /*:VRX CreateObject 956 1324 */ … … 958 1326 Parse Arg Class, Title, Location, Setup, Collision 959 1327 /* Say 'Creating ['Title']' */ 1328 say Setup 960 1329 rc = SysCreateObject( Class, Title, Location, Setup, Collision ) 961 1330 If rc <> 1 Then do … … 1054 1423 ok = VRMethod( "CN_smbtree", "SetRecordAttr", smbtree.!machine, "ReadOnly", 1) 1055 1424 ok = VRMethod( "CN_smbtree", "SetFieldData", smbtree.!machine, NBFH, machine) 1425 call _UserCredUpdate 1056 1426 call _RefreshShares 1057 1427 end … … 1475 1845 Main_Create: 1476 1846 ok = VRRedirectStdIO("OFF") 1477 options.!debug = 11847 options.!debug = 0 1478 1848 1479 1849 IF options.!debug == 1 THEN ok = VRREdirectStdIO("ON") … … 1765 2135 */ 1766 2136 Menu_Context_Open_Click: 2137 ok = VRSet("Menu_Context_Open_Default","Visible",0) 2138 return 2139 2140 /*:VRX Menu_Context_Open_Default_Click 2141 */ 2142 Menu_Context_Open_Default_Click: 1767 2143 IF options.!debug == 1 THEN SAY time()' '||"Menu_Context_Open_Click started" 1768 2144 userdata = VRMethod( 'CN_CURRENT', 'GetRecordAttr', rh, 'UserData') 1769 2145 PARSE VAR userdata mountpoint ';' mounts ';' . 1770 2146 1771 1772 2147 if length(mountpoint) > 3 then mountpoint = strip(mountpoint,'T','\') 1773 IF options.!debug == 1 THEN SAY ' Opening WPS folder "'mountpoint'"' 1774 call VRSet VRWindow(), 'Pointer', 'Wait' 1775 rc = SysOpenObject(mountpoint, "DEFAULT", 1) 1776 call VRSet VRWindow(), 'Pointer', '<default>' 2148 2149 ID = VRMethod( "Application", "StartThread", "wps_open", mountpoint, "DEFAULT" ) 1777 2150 1778 2151 IF options.!debug == 1 THEN SAY time()' '||"Menu_Context_Open_Click done" 2152 return 2153 2154 /*:VRX Menu_Context_Open_Detail_Click 2155 */ 2156 Menu_Context_Open_Detail_Click: 2157 IF options.!debug == 1 THEN SAY time()' '||"Menu_Context_Open_Details_Click started" 2158 userdata = VRMethod( 'CN_CURRENT', 'GetRecordAttr', rh, 'UserData') 2159 PARSE VAR userdata mountpoint ';' mounts ';' . 2160 2161 if length(mountpoint) > 3 then mountpoint = strip(mountpoint,'T','\') 2162 2163 ID = VRMethod( "Application", "StartThread", "wps_open", mountpoint, "DETAILS" ) 2164 2165 IF options.!debug == 1 THEN SAY time()' '||"Menu_Context_Open_Details_Click done" 2166 return 2167 2168 /*:VRX Menu_Context_Open_Icon_Click 2169 */ 2170 Menu_Context_Open_Icon_Click: 2171 IF options.!debug == 1 THEN SAY time()' '||"Menu_Context_Open_Icon_Click started" 2172 userdata = VRMethod( 'CN_CURRENT', 'GetRecordAttr', rh, 'UserData') 2173 PARSE VAR userdata mountpoint ';' mounts ';' . 2174 2175 if length(mountpoint) > 3 then mountpoint = strip(mountpoint,'T','\') 2176 2177 ID = VRMethod( "Application", "StartThread", "wps_open", mountpoint, "ICON" ) 2178 2179 IF options.!debug == 1 THEN SAY time()' '||"Menu_Context_Open_Icon_Click done" 2180 return 2181 2182 /*:VRX Menu_Context_Open_Settings_Click 2183 */ 2184 Menu_Context_Open_Settings_Click: 2185 IF options.!debug == 1 THEN SAY time()' '||"Menu_Context_Open_DetailsClick started" 2186 userdata = VRMethod( 'CN_CURRENT', 'GetRecordAttr', rh, 'UserData') 2187 PARSE VAR userdata mountpoint ';' mounts ';' . 2188 2189 if length(mountpoint) > 3 then mountpoint = strip(mountpoint,'T','\') 2190 2191 ID = VRMethod( "Application", "StartThread", "wps_open", mountpoint, "SETTINGS" ) 2192 2193 IF options.!debug == 1 THEN SAY time()' '||"Menu_Context_Open_Details_Click done" 2194 return 2195 2196 /*:VRX Menu_Context_Open_Splitview_Click 2197 */ 2198 Menu_Context_Open_Splitview_Click: 2199 IF options.!debug == 1 THEN SAY time()' '||"Menu_Context_Open_Splitview_Click started" 2200 userdata = VRMethod( 'CN_CURRENT', 'GetRecordAttr', rh, 'UserData') 2201 PARSE VAR userdata mountpoint ';' mounts ';' . 2202 2203 if length(mountpoint) > 3 then mountpoint = strip(mountpoint,'T','\') 2204 2205 ID = VRMethod( "Application", "StartThread", "wps_open", mountpoint, "SPLITVIEW" ) 2206 2207 IF options.!debug == 1 THEN SAY time()' '||"Menu_Context_Open_Splitview_Click done" 2208 return 2209 2210 /*:VRX Menu_Context_Open_Tree_Click 2211 */ 2212 Menu_Context_Open_Tree_Click: 2213 IF options.!debug == 1 THEN SAY time()' '||"Menu_Context_Open_Tree_Click started" 2214 userdata = VRMethod( 'CN_CURRENT', 'GetRecordAttr', rh, 'UserData') 2215 PARSE VAR userdata mountpoint ';' mounts ';' . 2216 2217 if length(mountpoint) > 3 then mountpoint = strip(mountpoint,'T','\') 2218 2219 ID = VRMethod( "Application", "StartThread", "wps_open", mountpoint, "TREE" ) 2220 2221 IF options.!debug == 1 THEN SAY time()' '||"Menu_Context_Open_Tree_Click done" 1779 2222 return 1780 2223 … … 1807 2250 Menu_File_Autostart_Deactivate_Click: 1808 2251 ok = SysDestroyObject("<EVFSGUI_AUTOSTART>") 1809 IF ok == 1 THEN CALL VRMessage 'Main', NLVGetMessage( 79 ), NLVGetMessage( 1 ) 1810 ELSE CALL VRMessage 'Main', NLVGetMessage( 78 ), NLVGetMessage( 5 ), 'E' 2252 IF ok == 1 THEN do 2253 Text = NLVGetMessage( 79 ) 2254 if Text = "" then Text = '[Autostart object created successfully]' 2255 CALL VRMessage 'Main', Text, VRGet("Main", "Caption") 2256 end 2257 ELSE do 2258 Text = NLVGetMessage( 78 ) 2259 if Text = "" then Text = '[Could find Autostart object]' 2260 Title = NLVGetMessage( 5 ) 2261 if Title = "" then Title = '[Error]' 2262 CALL VRMessage 'Main', Text, Title, 'E' 2263 end 1811 2264 return 1812 2265 … … 1867 2320 */ 1868 2321 Menu_Selected_Default_Workgroup_Click: 1869 workgroupname = VRMethod("CN_smbtree","GetRecordAttr", rh,"Caption")2322 workgroupname = VRMethod("CN_smbtree","GetRecordAttr",SMBObj.rh,"Caption") 1870 2323 ok = TRSetIni("[global]","workgroup", workgroupname, samba.!smbconf) 1871 2324 return … … 1874 2327 */ 1875 2328 Menu_Selected_Info_Click: 1876 ok = VRMethod( "CN_smbtree", "GetRecordList", "SourceOrSelected", "srcrec." ) 1877 if srcrec.0 = 0 then return 1878 1879 Userdata = VRMethod("CN_smbtree","GetRecordAttr",srcrec.1,"Userdata") 1880 machine = VRMethod("CN_smbtree","GetRecordAttr",srcrec.1,"Caption") 1881 1882 parse var machine machine '0D0A'x . 1883 parse var userdata . '|' userdata 1884 1885 say samba.!smbclientexe' -L "'strip(machine)'" -N 'debuglevel' 2>'samba.!msg' 1>NUL' 1886 address cmd samba.!smbclientexe' -L "'strip(machine)'" -N 'debuglevel' 2>'samba.!msg' 1>NUL' 2329 IF options.!debug == 1 THEN SAY time()' Menu_Selected_Info_Click started' 2330 2331 ok = VRMethod( "CN_smbtree", "GetRecordList", "SourceOrSelected", "SelRH." ) 2332 if SelRH.0 = 0 then do 2333 IF options.!debug == 1 THEN SAY time()' Menu_Selected_Info_Click aborted' 2334 return 2335 end 2336 2337 call _GetSMBObjectProperties SelRH.1 2338 2339 IF options.!debug == 1 THEN say ' 'samba.!smbclientexe' -L "'SMBObj.resname'" -N 'debuglevel' 2>'samba.!msg' 1>NUL' 2340 address cmd samba.!smbclientexe' -L "'SMBObj.resname'" -N 'debuglevel' 2>'samba.!msg' 1>NUL' 1887 2341 infoline = linein(samba.!msg) 1888 2342 if word(infoline,1) = "creating" then do /* upcase tables are missing */ … … 1891 2345 infoline = linein(samba.!msg) 1892 2346 end 1893 say '"'Infoline'"'2347 IF options.!debug == 1 THEN say ' Response = "'Infoline'"' 1894 2348 ok = stream(samba.!msg,'c','close') 1895 2349 ok = SysFileDelete(samba.!msg) 1896 2350 1897 2351 window = VRLoadSecondary( "SW_INFO", "W" ) 2352 IF options.!debug == 1 THEN SAY time()' Menu_Selected_Info_Click done' 1898 2353 return 1899 2354 … … 2147 2602 DO i = 1 TO records.0 2148 2603 hash = VRMethod("CN_CONDET","GetFieldData", records.i, cd.hashfh) 2149 say hash 2150 say md5 2151 if hash = md5 & VRMethod("CN_CONDET","GetFieldData", records.i, cd.statusfh) = '#64:PMWP.DLL' then do /* Same hash, status active */ 2152 say "Double connection deteced!!" 2153 if options.!spassword <> "" then upw = ":********" 2154 else upw = "" 2155 buttons.0 = 2 2156 buttons.1 = NLVGetMessage(9) 2157 buttons.2 = NLVGetMessage(3) 2158 Answer = VRMessage('Main',NLVGetMessage(64) , NLVGetMessage( 36,options.!user||upw'@'options.!workgroup'\\'options.!server'\'options.!share, vfs.!mountpoint ), 'W','buttons.') 2159 if Answer = 2 then do 2160 call VRSet VRWindow(), 'Pointer', '<default>' 2161 say "Double connection - do not mount!!" 2162 return 2604 2605 IF options.!debug == 1 THEN say VRMethod("CN_CONDET","GetFieldData", records.i, CD.mpointFH)'->'hash 2606 IF options.!debug == 1 THEN say mpoint'->'md5 2607 2608 if hash = md5 then do 2609 If VRMethod("CN_CONDET","GetFieldData", records.i, cd.statusfh) = '#64:PMWP.DLL' then do /* Same hash, status active */ 2610 say "Double connection detected!!" 2611 if options.!spassword <> "" then upw = ":********" 2612 else upw = "" 2613 buttons.0 = 2 2614 buttons.1 = NLVGetMessage(9) 2615 buttons.2 = NLVGetMessage(3) 2616 Answer = VRMessage('Main',NLVGetMessage(64) , NLVGetMessage( 36,options.!user||upw'@'options.!workgroup'\\'options.!server'\'options.!share, vfs.!mountpoint ), 'W','buttons.') 2617 if Answer = 2 then do 2618 call VRSet VRWindow(), 'Pointer', '<default>' 2619 say "Double connection - do not mount!!" 2620 return 2621 end 2622 end 2623 else do /* Same hash, status passive - we have to remove it */ 2624 ok = VRMethod("CN_CONDET", "RemoveRecord", records.i ) 2163 2625 end 2164 2626 end … … 2424 2886 /*:VRX PB_AUTOSTART_Click 2425 2887 */ 2426 PB_AUTOSTART_Click: PROCEDURE EXPOSE settings. options. Profile fs. cd. advanced. samba.2888 PB_AUTOSTART_Click: /* PROCEDURE EXPOSE settings. options. Profile fs. cd. advanced. samba. */ 2427 2889 options.!autostart = 1 2428 Profile = VRParseFilename(settings.!ini,'DPN')'.'fs.!profileext 2890 2891 Profile = VRParseFilename(settings.!ini,'DPN')'.'fs.!profileext 2892 ExeName = VRParseFileName(VRget("Application","Program"),'DPNE') 2893 if ExeName = "" then do 2894 parse source . . script 2895 ExeName = VRParseFilename(script,'DP')'\EVFSGUI.EXE' 2896 end 2897 StartupDir = VRParseFileName(VRget("Application","Program"),'DP') 2898 if StartupDir = "" then do 2899 parse source . . script 2900 StartUpDir = VRParseFilename(script,'DP') 2901 end 2902 2903 ObjTitle = NLVGetMessage( 59 ) 2904 if ObjTitle = "" then ObjTitle = '[EVFS LAN-Connections]' 2429 2905 2430 2906 CALL PB_SAVE_Click 2431 2907 2432 rc = CreateObject( 'WPProgram', NLVGetMessage( 59 ),'<WP_START>',,2433 'EXENAME='|| VRParseFileName(VRget("Application","Program"),'DPNE')||';'||,2908 rc = CreateObject( 'WPProgram', ObjTitle,'<WP_START>',, 2909 'EXENAME='||ExeName||';'||, 2434 2910 'PROGTYPE=PM;'||, 2435 'TITLE=' NLVGetMessage( 59 )';'||,2911 'TITLE='ObjTitle';'||, 2436 2912 'PARAMETERS='Profile' -AUTOCLOSE -NOGUI;'||, 2437 'STARTUPDIR=' VRParseFileName(VRget("Application","Program"),'DP')';'||,2913 'STARTUPDIR='StartupDir';'||, 2438 2914 'NOPRINT=YES;'||, 2439 2915 'HIDEBUTTON=DEFAULT;'||, … … 2444 2920 'REPLACE' ) 2445 2921 2446 IF rc == 1 THEN CALL VRMessage 'Main', NLVGetMessage( 60 ), NLVGetMessage( 1 ) 2447 ELSE CALL VRMessage 'Main', NLVGetMessage( 61 ), NLVGetMessage( 5 ), 'E' 2922 IF rc == 1 THEN do 2923 Text = NLVGetMessage( 60 ) 2924 if Text = "" then Text = '[Created object in Autostart-Folder]' 2925 CALL VRMessage 'Main', Text, VRGet("Main", "Caption") 2926 end 2927 ELSE do 2928 Text = NLVGetMessage( 61 ) 2929 if Text = "" then Text = '[Could not create object in Autostart-Folder]' 2930 Title = NLVGetMessage( 5 ) 2931 if Title = "" then Title = '[Error]' 2932 CALL VRMessage 'Main', Text, Title, 'E' 2933 end 2448 2934 2449 2935 options.!autostart = 0 … … 2477 2963 btns.0 = 2 2478 2964 btns.1 = NLVGetMessage( 6 ) 2965 if btns.1 = "" then btns.1 = '[Yes]' 2479 2966 btns.2 = NLVGetMessage( 7 ) 2480 confirm = VRMessage('Main', NLVGetMessage( 54, filename ), NLVGetMessage( 53 ), 'W', 'btns.', 1, 2 ) 2967 if btns.2 = "" then btns.2 = '[No]' 2968 Title = NLVGetMessage( 53 ) 2969 if Title = "" then Title = "[File exists]" 2970 Text = NLVGetMessage( 54, filename ) 2971 if Text = "" then Text = "[File "filename" exists? Overwrite?]" 2972 2973 confirm = VRMessage('Main', Text, Title, 'W', 'btns.', 1, 2 ) 2481 2974 IF confirm \= 1 THEN RETURN 2482 2975 CALL VRChAttr filename,, 'HSR' … … 2509 3002 CALL STREAM filename, 'C', 'CLOSE' 2510 3003 2511 if options.!autostart == 0 THEN CALL VRMessage 'Main', NLVGetMessage( 52, filename ), NLVGetMessage( 51 ), 'I' 3004 if options.!autostart == 0 THEN do 3005 Title = NLVGetMessage( 51 ) 3006 if Title = "" then Title = "[Profile saved]" 3007 Text = NLVGetMessage( 52, filename ) 3008 if Text = "" then Text = "[Profile saved to "filename"!]" 3009 CALL VRMessage 'Main', Text , Title, 'I' 3010 end 2512 3011 2513 3012 IF options.!debug == 1 THEN SAY time()' '||"PB_CONDET_SAVE_Click done" … … 2518 3017 PB_CONNECT_Click: PROCEDURE EXPOSE settings. options. fs. advanced. cd. samba. 2519 3018 IF options.!debug == 1 THEN SAY time()' '||"PB_CONNECT_Click started" 3019 3020 ok = VRMethod( "CN_SMBTREE", "GetRecordList", "Selected", "SelRH." ) 3021 3022 if SelRH.0 = 0 then do 3023 IF options.!debug == 1 THEN SAY time()' '||"PB_CONNECT_Click aborted" 3024 return 3025 end 3026 2520 3027 p_workgroup = '' 2521 3028 p_server = '' 2522 3029 p_share = '' 2523 3030 2524 ok = VRMethod( "CN_SMBTREE", "GetRecordList", "Selected", "handle." ) 2525 2526 say "handle.0="handle.0 2527 2528 if handle.0 = 0 then return 2529 2530 srcCtn = "CN_SMBTree" 2531 srcRec = handle.1 2532 trgCtn = "CN_Current" 2533 trgRec = "" 3031 srcFile = "" 3032 srcCtn = VRGet("CN_SMBTREE","Self") 3033 srcRec = SelRH.1 3034 trgCtn = VRGet("CN_CURRENT","Self") 3035 trgRec = "" 3036 3037 IF options.!debug == 1 THEN do 3038 say ' srcCtn = "'srcCtn'"' 3039 if srcCtn <> "" then say ' srcCtn name = "'VRGet(srcCtn,'Name')'"' 3040 say ' srcRec = "'srcRec'"' 3041 say ' trgCtn = "'trgCtn'"' 3042 if trgCtn <> "" then say ' trgCtn name = "'VRGet(trgCtn,'Name')'"' 3043 say ' trgRec = "'trgRec'"' 3044 end 2534 3045 2535 3046 ok = VRMethod("CB_MOUNT", "GetStringList", "ShareLevels." ) 2536 3047 2537 say VRGet(srcCtn,'Name')2538 say "TargetRecord = '"trgRec"'"2539 2540 3048 DragCapt = VRMethod(srcCtn, "GetRecordAttr", srcRec, "Caption") 2541 parRH = VRMethod(srcCtn, "GetRecordAttr", srcRec, "Parent")2542 2543 if parRH = "" then do /* A workgroup was dragged */3049 ParentRH = VRMethod(srcCtn, "GetRecordAttr", srcRec, "Parent") 3050 3051 if ParentRH = "" then do /* A workgroup was dragged */ 2544 3052 say "Workgroup dragged!" 2545 3053 parse var DragCapt p_workgroup '0D0A'x . … … 2552 3060 end 2553 3061 else do 2554 ParDragCapt = VRMethod(srcCtn, "GetRecordAttr", Par RH, "Caption")2555 GPar RH = VRMethod(srcCtn, "GetRecordAttr", ParRH, "Parent")2556 2557 if GPar RH = "" then do /* A server was dragged */3062 ParDragCapt = VRMethod(srcCtn, "GetRecordAttr", ParentRH, "Caption") 3063 GParentRH = VRMethod(srcCtn, "GetRecordAttr", ParentRH, "Parent") 3064 3065 if GParentRH = "" then do /* A server was dragged */ 2558 3066 say "Server dragged!" 2559 3067 parse var ParDragCapt p_workgroup '0D0A'x . … … 2570 3078 else do /* A share was dragged */ 2571 3079 say "Share dragged!" 2572 GParDragCapt = VRMethod(srcCtn, "GetRecordAttr", GPar RH, "Caption")3080 GParDragCapt = VRMethod(srcCtn, "GetRecordAttr", GParentRH, "Caption") 2573 3081 2574 3082 parse var GParDragCapt p_workgroup '0D0A'x . … … 2588 3096 end 2589 3097 2590 say 'p_workgroup 3098 say 'p_workgroup = "'p_workgroup'"' 2591 3099 say 'p_server = "'p_server'"' 2592 3100 say 'p_share = "'p_share'"' … … 2725 3233 options.!master = master 2726 3234 options.!mastertype = mtype 2727 options.!memlen = memlen 3235 /* options.!memlen = memlen 3236 options.!logfile = logfile 3237 options.!loglevel = loglevel */ 2728 3238 options.!easupport = easupport 2729 options.!logfile = logfile2730 options.!loglevel = loglevel2731 3239 2732 3240 IF rwFlag == 'R' THEN … … 2993 3501 2994 3502 adv_changed = 1 2995 if adv_debug == 1 then ok = VRRedirectStdio("ON") 2996 else ok = VRRedirectStdio("OFF") 3503 if adv_debug == 1 then do 3504 ok = VRRedirectStdio("ON") 3505 ok = VRMethod("CN_CONDET", "SetFieldAttr", cd.mpidxfh , "Visible", 1) 3506 ok = VRMethod("CN_CONDET", "SetFieldAttr", cd.passwordfh , "Visible", 1) 3507 ok = VRMethod("CN_CONDET", "SetFieldAttr", cd.spasswordfh , "Visible", 1) 3508 ok = VRMethod("CN_CONDET", "SetFieldAttr", cd.masterFH , "Visible", 1) 3509 ok = VRMethod("CN_CONDET", "SetFieldAttr", cd.mtypeFH , "Visible", 1) 3510 ok = VRMethod("CN_CONDET", "SetFieldAttr", cd.memlenfh , "Visible", 1) 3511 ok = VRMethod("CN_CONDET", "SetFieldAttr", cd.logfilefh , "Visible", 1) 3512 ok = VRMethod("CN_CONDET", "SetFieldAttr", cd.loglevelfh , "Visible", 1) 3513 ok = VRMethod("CN_CONDET", "SetFieldAttr", cd.hashfh , "Visible", 1) 3514 end 3515 else do 3516 ok = VRRedirectStdio("OFF") 3517 ok = VRMethod("CN_CONDET", "SetFieldAttr", cd.mpidxfh , "Visible", 0) 3518 ok = VRMethod("CN_CONDET", "SetFieldAttr", cd.passwordfh , "Visible", 0) 3519 ok = VRMethod("CN_CONDET", "SetFieldAttr", cd.spasswordfh , "Visible", 0) 3520 ok = VRMethod("CN_CONDET", "SetFieldAttr", cd.masterFH , "Visible", 0) 3521 ok = VRMethod("CN_CONDET", "SetFieldAttr", cd.mtypeFH , "Visible", 0) 3522 ok = VRMethod("CN_CONDET", "SetFieldAttr", cd.memlenfh , "Visible", 0) 3523 ok = VRMethod("CN_CONDET", "SetFieldAttr", cd.logfilefh , "Visible", 0) 3524 ok = VRMethod("CN_CONDET", "SetFieldAttr", cd.loglevelfh , "Visible", 0) 3525 ok = VRMethod("CN_CONDET", "SetFieldAttr", cd.hashfh , "Visible", 0) 3526 end 2997 3527 2998 3528 CALL SW_SETTINGS_Close … … 3070 3600 leave 3071 3601 end 3072 IF options.!debug == 1 THEN say " "||VRMethod( "CN_CONDET", "GetFieldData", rh.i, cd.statusfh)3602 IF options.!debug == 1 THEN say ' Icon.'i' = "'||VRMethod( "CN_CONDET", "GetFieldData", rh.i, cd.statusfh)'"' 3073 3603 if VRMethod("CN_CONDET","GetFieldData", rh.i, cd.statusfh) = '#64:PMWP.DLL' then CALL VRMethod 'CN_CONDET', 'RemoveRecord', rh.i 3074 3604 end 3075 3605 3076 /* call _AddTemplates */3606 /* call _AddTemplates */ 3077 3607 CALL VRSet "PB_DETACH", "Enabled", 0 3078 3608 CALL VRSet "PB_UNMOUNT", "Enabled", 0 3079 3609 3080 ok = VRSet("Menu_Context_Detach", "Visible", 0) 3081 ok = VRSet("Menu_Context_Unmount", "Visible", 0) 3082 ok = VRSet("Menu_Context_Edit", "Visible", 0) 3083 3084 ok = VRSet("Menu_Selected_Remove", "Visible", 0) 3085 ok = VRSet("Menu_Selected_Retry", "Visible", 0) 3610 ok = VRSet("MENU_CONTEXT_OPEN", "Visible", 0) 3611 ok = VRSet("MENU_CONTEXT_SEP1", "Visible", 0) 3612 ok = VRSet("MENU_CONTEXT_DETACH", "Visible", 0) 3613 ok = VRSet("MENU_CONTEXT_UNMOUNT", "Visible", 0) 3614 ok = VRSet("MENU_CONTEXT_EDIT", "Visible", 0) 3615 3616 ok = VRSet("MENU_SELECTED_REMOVE", "Visible", 0) 3617 ok = VRSet("MENU_SELECTED_RETRY", "Visible", 0) 3086 3618 3087 3619 IF options.!debug == 1 THEN SAY ' Remove records, disable buttons done.' … … 3311 3843 3312 3844 Info.!status = VRMethod( "CN_INFO", "AddRecord") 3313 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!status, Info.TypeFH, strip(NLVGetMessage(67),'T',':'),Info.ValueFH, Userdata)3845 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!status, Info.TypeFH, strip(NLVGetMessage(67),'T',':'),Info.ValueFH, SMBObj.udatamsg ) 3314 3846 3315 3847 return … … 3442 3974 CALL NLVSetText 'SW_PROGRESS', 'Caption', 1 3443 3975 CALL NLVSetText 'DT_PROGRESS', 'Caption', 34 3976 CALL NLVSetText 'PB_PROGRESS_ABORT', 'Caption', 3 3444 3977 CALL VRSet "TM_TheCloser","Enabled", 1 3445 3978 return … … 3576 4109 ok = VRSet("Pict_Throbber","PicturePath","#"pidx) 3577 4110 return 3578 -
branches/guitools-2.0/evfsgui/evfsi_de.mkm
r410 r450 101 101 EVG0093I: Betriebsystem: 102 102 EVG0094I: ~ffnen 103 EVG0095 ?:104 EVG0096 ?:105 EVG0097 ?:106 EVG0098 ?:107 EVG0099 ?:103 EVG0095I: ~Symbolanzeige 104 EVG0096I: Stru~kturanzeige 105 EVG0097I: ~Detailanzeige 106 EVG0098I: Einstell~ungen 107 EVG0099I: ~Geteilte Anzeige 108 108 ; Fatal error messages 109 109 EVG0100I: Konnte EVFSCALL.DLL nicht laden - Fortsetzung nicht mglich. 110 110 EVG0101I: EVFS Steuerprogramm ist nicht gestartet - Fortsetzung nicht mglich. 111 111 EVG0102I: Konnte %1 nicht laden - Verbindungen konnten nicht wiederhergestellt werden. 112 EVG0103I: %1 ist keine Profildatei! -
branches/guitools-2.0/evfsgui/evfsi_en.mkm
r410 r450 101 101 EVG0093I: Operating System 102 102 EVG0094I: ~Open 103 EVG0095 ?:104 EVG0096 ?:105 EVG0097 ?:106 EVG0098 ?:107 EVG0099 ?:103 EVG0095I: ~Icons 104 EVG0096I: ~Tree 105 EVG0097I: ~Details 106 EVG0098I: ~Settings 107 EVG0099I: S~plit view 108 108 ; Fatal error messages 109 109 EVG0100I: Failed to load EVFSCALL.DLL - cannot continue. 110 110 EVG0101I: EVFS Control Program is not running - cannot continue. 111 111 EVG0102I: Failed to load %1 - could not establish connections. 112 EVG0103I: %1 is not a profile! -
branches/guitools-2.0/evfsgui/evfsi_fr.mkm
r410 r450 116 116 EVG0102I: chec 117 117 l'ouverture de %1 - les connexions n'ont pas pu tre tablies. 118 EVG0103I: %1 n'est pas une fichier de profil! -
branches/guitools-2.0/evfsgui/readme.txt
r394 r450 1 EVFSGUI Version 2.0. 2(eCS 2.0 GA level)1 EVFSGUI Version 2.0.4 (eCS 2.0 GA level) 2 2 ======================================== 3 3 -
branches/guitools-2.0/shared/nlv.vrs
r410 r450 69 69 if nlvmsg.0 = 1 then do 70 70 say " Found NLV "Suffix" file in subdirectory" 71 settings.!messages = VRParseFilename(nlvmsg.1,"DPN")'.msg'71 NLVFile = VRParseFilename(nlvmsg.1,"DPN")'.'Suffix 72 72 say " Adding NLV "Suffix" path to "PathVar 73 73 OldPathVar = value(PathVar,,"OS2ENVIRONMENT") … … 128 128 PARSE VAR msgtxt message '0D'x . 129 129 130 IF translate(SUBSTR( message, 1, 4 )) == 'SYS0' THEN message = ' '130 IF translate(SUBSTR( message, 1, 4 )) == 'SYS0' THEN message = '[Missing message 'msgnum'!]' 131 131 132 132 RETURN message -
branches/guitools-2.0/shared/rxrpclib.vrs
r405 r450 344 344 leave 345 345 end 346 if pos("TDB(", translate(rpcline)) > 0 then do 347 Failure = 1 348 /* provide a fake NT_STATUS */ 349 rpcline = 'NT_STATUS_TDBERROR 'rpcline 350 leave 351 end 352 346 353 parse var rpcline token ':' tvalue 347 354 token = translate(strip(strip(translate(token),'L','09'x)),'_',' ') -
branches/guitools-2.0/shared/smbtree.vrs
r393 r450 175 175 smbmachine = TempDir||"smbmachine."||machine 176 176 177 if UserCred = 'USERCRED' | UserCred = '' | UserCred = '--user=%' then UserCred = '-N' 178 177 179 say ' detach 'samba.!smbclientexe' -L "'strip(machine)'" 'UserCred' 'debuglevel' 1>'smbmachine' 2>NUL' 178 180 address cmd 'detach 'samba.!smbclientexe' -L "'strip(machine)'" 'UserCred' 'debuglevel' 1>'smbmachine' 2>NUL' 181 182 if UserCred = '-N' then UserCred = '' 179 183 180 184 RefreshMode = "SHARE" … … 259 263 260 264 select 261 when type = "DISK" then res = '# 34:PMWP.DLL'265 when type = "DISK" then res = '#64:PMWP.DLL' 262 266 when type = "PRINTER" then res = '#65:PMWP.DLL' 263 267 when type = "IPC" then res = '#59:PMWP.DLL' … … 306 310 else say ' Got "'stat'" for "'smbmachine.I'"' 307 311 end 312 313 if UserCred = '-N' then UserCred = '' 314 308 315 say time()' _AddSharesDisplay() loop end' 309 316 return
Note:
See TracChangeset
for help on using the changeset viewer.