- Timestamp:
- Jan 4, 2011, 9:56:37 AM (15 years ago)
- Location:
- branches/guitools-2.0/evfsgui
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/guitools-2.0/evfsgui/changes
r506 r509 6 6 7 7 ToDo for 2.1: 8 - Debug on/off option is badly implemented (rework required)9 - Create Icon. stem in order to ease maintenance of icons10 8 - Fix endless loop if neither EVFS nor Netdrive is installed 11 9 under all conditions … … 13 11 - Passive connections/double connection detection does not seem 14 12 to work properly 13 14 Version 2.1 beta3 15 - Refactoring: Create Icon. stem in order to ease maintenance of icons 16 - Refactoring: Common wrapper around all dynamic functions 17 - Refactoring: Remove double variables for settings and options 18 - Refactoring: Debug on/off option is properly done now 15 19 16 20 Version 2.1 beta2 2010-12-26 -
branches/guitools-2.0/evfsgui/evfsgui.VRP
r506 r509 10 10 VRXWindow: __VREFileListWindow,1,807,11033,1590,3358 11 11 VRXWindow: __VRESectionListWindow,1,2674,10648,8696,4794 12 VRXWindow: __VREToolsWindow,1,2517,7082,6480,166 512 VRXWindow: __VREToolsWindow,1,2517,7082,6480,1669 13 13 VRXWindow: __VREWindListWindow,1,542,8721,2650,3150 14 14 UserFile: 1 15 15 UserWindow: Main,1 16 UserWindow: SW_PROGRESS,1 17 UserWindow: SW_LOGIN,1 18 UserWindow: SW_ABOUT,1 16 UserWindow: SW_SETTINGS,1 -
branches/guitools-2.0/evfsgui/evfsgui.VRX
r506 r509 102 102 */ 103 103 _AddTemplates: 104 105 VolTplRH = VRMethod('CN_CURRENT', 'AddRecord', , 'First', 'Volume template', '#10:PMWP.DLL' ) 106 MpTplRH = VRMethod('CN_CURRENT', 'AddRecord', VolTplRH, 'First', 'Mountpoint template', '#10:PMWP.DLL' ) 104 VolTplRH = VRMethod("CN_CURRENT", 'AddRecord', , 'First', 'Volume template', icons.!template ) 105 MpTplRH = VRMethod("CN_CURRENT", 'AddRecord', VolTplRH, 'First', 'Mountpoint template', icons.!template ) 107 106 return 108 107 109 108 /*:VRX _BrowseBuildPath 110 109 */ 111 _BrowseBuildPath: procedure expose options. sharerh110 _BrowseBuildPath: procedure expose options. icons. sharerh 112 111 IF options.!debug == 1 THEN SAY time()' _BrowseBuildPath started' 113 112 rh = arg(1) … … 117 116 118 117 do while \finished 119 parentrh = VRMethod("CN_ smbtree","GetRecordAttr",rh,"Parent")120 resname = VRMethod("CN_smbtree","GetRecordAttr",rh,"caption")121 userdata = VRMethod("CN_ smbtree","GetRecordAttr",rh,"userdata")118 parentrh = VRMethod("CN_SMBTREE","GetRecordAttr",rh,"Parent") 119 resname = VRMethod("CN_SMBTREE","GetRecordAttr",rh,"caption") 120 userdata = VRMethod("CN_SMBTREE","GetRecordAttr",rh,"userdata") 122 121 parse var userdata udatatype '|' udatamsg 123 122 parse var resname resname '0D0A'x . … … 195 194 Ext = translate(VRParseFIleName(fname,'E')) 196 195 select 197 when Ext = 'EXE' then ficon = '#3:PMWP.DLL'/* executable */198 when Ext = 'CMD' then ficon = '#2:PMWP.DLL'/* OS/2 or NT batch */199 when Ext = 'BAT' then ficon = '#1:PMWP.DLL'/* DOS batch */200 when Ext = 'PDF' then ficon = '#80'/* PDF document */201 when wordpos(Ext, 'XLS SXC ODS') > 0 then ficon = '#82' /* spreadsheet */202 when wordpos(Ext, 'DOC SXW ODT') > 0 then ficon = '#86' /* text document */203 when wordpos(Ext, 'FW2 FW3 FW4') > 0 then ficon = '#87' /* framework */204 when wordpos(Ext, 'JPG BMP PNG GIF TIF') > 0 then ficon = '#88' /* image */205 when wordpos(Ext, 'AVI MPG FLV WMV') > 0 then ficon = '#89' /* image */206 when wordpos(Ext, 'WAV MP3 OGG MID') > 0 then ficon = '#90' /* sound */207 when wordpos(Ext, 'WPI') > 0 then ficon = '#91' /* warpin */208 when wordpos(Ext, 'ZIP') > 0 then ficon = '#92' /* zip */209 when wordpos(Ext, 'INF HLP') > 0 then ficon = '#93' /* View */210 when wordpos(Ext, 'TXT') > 0 then ficon = '#94' /* View */211 otherwise ficon = '#24:PMWP.DLL'/* default file icon */196 when Ext = 'EXE' then ficon = icons.!exe /* executable */ 197 when Ext = 'CMD' then ficon = icons.!cmd /* OS/2 or NT batch */ 198 when Ext = 'BAT' then ficon = icons.!bat /* DOS batch */ 199 when Ext = 'PDF' then ficon = icons.!pdf /* PDF document */ 200 when wordpos(Ext, 'XLS SXC ODS') > 0 then ficon = icons.!spreadsheet 201 when wordpos(Ext, 'DOC SXW ODT') > 0 then ficon = icons.!textdocument 202 when wordpos(Ext, 'FW2 FW3 FW4') > 0 then ficon = icons.!framework 203 when wordpos(Ext, 'JPG BMP PNG GIF TIF') > 0 then ficon = icons.!image 204 when wordpos(Ext, 'AVI MPG FLV WMV') > 0 then ficon = icons.!movie 205 when wordpos(Ext, 'WAV MP3 OGG MID') > 0 then ficon = icons.!sound 206 when wordpos(Ext, 'WPI') > 0 then ficon = icons.!warpin 207 when wordpos(Ext, 'ZIP') > 0 then ficon = icons.!zip 208 when wordpos(Ext, 'INF HLP') > 0 then ficon = icons.!view 209 when wordpos(Ext, 'TXT') > 0 then ficon = icons.!paintext 210 otherwise ficon = icons.!defaultfile /* default file icon */ 212 211 end 213 212 ftype = 'FILE' 214 213 end 215 214 else do 216 ficon = '#26:PMWP.DLL' /* dir */215 ficon = icons.!folder 217 216 ftype = 'DIRECTORY' 218 217 end … … 224 223 end 225 224 end 226 if I > 0 then ok = VRMethod("CN_SMBTREE","SetRecordAttr",SMBObj.rh, "Icon", "#34:PMWP.DLL") /* open folder */225 if I > 0 then ok = VRMethod("CN_SMBTREE","SetRecordAttr",SMBObj.rh, "Icon", icons.!folder_open) 227 226 ok = stream(samba.!msg,'c','close') 228 227 ok = SysFileDelete(samba.!msg) … … 237 236 /*:VRX _BrowseObjectOpen 238 237 */ 239 _BrowseObjectOpen: procedure expose options. cd. 238 _BrowseObjectOpen: procedure expose options. cd. icons. 240 239 machine = arg(1) 241 240 sharename = arg(2) 242 241 browsepath = arg(3) 243 242 244 CALL VRMethod 'CN_CONDET', 'GetRecordList', 'All', 'records.'243 CALL VRMethod "CN_CONDET", 'GetRecordList', 'All', 'records.' 245 244 246 245 OpenOk = 0 247 246 248 247 DO i = 1 TO records.0 249 if VRMethod( 'CN_CONDET', "GetFieldData", records.i, CD.StatusFH) = "#64:PMWP.DLL"then do250 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)251 if machine = VRMethod( 'CN_CONDET', "GetFieldData", records.i, CD.ServerFH) &,252 sharename = VRMethod( 'CN_CONDET', "GetFieldData", records.i, CD.ShareFH) then do253 Object = strip(VRMethod( 'CN_CONDET', "GetFieldData", records.i, CD.MPointFH),'T','\')'\'browsepath248 if VRMethod( "CN_CONDET", "GetFieldData", records.i, CD.StatusFH) = icons.!active then do 249 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) 250 if machine = VRMethod( "CN_CONDET", "GetFieldData", records.i, CD.ServerFH) &, 251 sharename = VRMethod( "CN_CONDET", "GetFieldData", records.i, CD.ShareFH) then do 252 Object = strip(VRMethod( "CN_CONDET", "GetFieldData", records.i, CD.MPointFH),'T','\')'\'browsepath 254 253 IF options.!debug == 1 THEN SAY ' Non UNC object: "'Object'"' 255 254 ID = VRMethod( "Application", "StartThread", "wps_open", Object, "DEFAULT" ) … … 270 269 ok = VRMethod( "CN_SMBTREE", "GetRecordList", "All", "AllRH." ) 271 270 do I = 1 to AllRH.0 272 AllParentRH = VRMethod("CN_ smbtree","GetRecordAttr",AllRH.I,"Parent")271 AllParentRH = VRMethod("CN_SMBTREE","GetRecordAttr",AllRH.I,"Parent") 273 272 if AllParentRH = rh then ok = VRMethod( "CN_SMBTREE", "RemoveRecord", AllRH.I ) 274 273 end … … 345 344 _DialogPopulate: 346 345 347 ok = VRMethod( "CN_ smbtree", "GetRecordList", "Visible", "rh." )346 ok = VRMethod( "CN_SMBTREE", "GetRecordList", "Visible", "rh." ) 348 347 349 348 ok = VRMethod("EF_SHARE", "Reset") … … 353 352 do I = 1 to rh.0 354 353 355 Userdata = VRMethod("CN_ smbtree","GetRecordAttr",rh.I,"Userdata")356 ResName = VRMethod("CN_ smbtree","GetRecordAttr",rh.I,"Caption")354 Userdata = VRMethod("CN_SMBTREE","GetRecordAttr",rh.I,"Userdata") 355 ResName = VRMethod("CN_SMBTREE","GetRecordAttr",rh.I,"Caption") 357 356 358 357 parse var ResName ResName '0D0A'x . … … 381 380 return 382 381 382 /*:VRX _Dynamic 383 */ 384 _Dynamic: 385 dyn_code = arg(1) 386 IF options.!debug == 1 THEN SAY ' Dynamic code: 'dyn_code 387 interpret dyn_code; drop dyn_code 388 return 389 383 390 /*:VRX _GetSMBObjectProperties 384 391 */ 385 _GetSMBObjectProperties: procedure expose options. SMBObj. rh icon resname udatatype udatamsg parentrh 392 _GetSMBObjectProperties: procedure expose options. SMBObj. rh icon resname udatatype udatamsg parentrh icons. 386 393 IF options.!debug == 1 THEN SAY time()' _GetSMBObjectProperties started' 387 394 … … 403 410 SMBObj.rh = arg(1) 404 411 405 if VRMethod( 'CN_SMBTREE', "ValidateRecord", SMBObj.rh) <> 1 | SMBObj.rh = "" then do412 if VRMethod( "CN_SMBTREE", "ValidateRecord", SMBObj.rh) <> 1 | SMBObj.rh = "" then do 406 413 SMBObj. = "" 407 414 IF options.!debug == 1 THEN SAY time()' _GetSMBObjectProperties aborted' … … 413 420 SMBObj.parentrh = VRMethod("CN_SMBTREE", "GetRecordAttr", SMBObj.rh, "Parent") 414 421 415 SMBObj.resname = VRMethod("CN_ smbtree", "GetRecordAttr", SMBObj.rh, "Caption")422 SMBObj.resname = VRMethod("CN_SMBTREE", "GetRecordAttr", SMBObj.rh, "Caption") 416 423 parse var SMBObj.resname SMBObj.resname '0D0A'x . 417 424 SMBObj.resname = strip(SMBObj.resname) 418 425 419 Userdata = VRMethod("CN_ smbtree", "GetRecordAttr", SMBObj.rh, "Userdata")426 Userdata = VRMethod("CN_SMBTREE", "GetRecordAttr", SMBObj.rh, "Userdata") 420 427 parse var userdata SMBObj.udatatype '|' SMBObj.udatamsg 421 428 SMBObj.udatatype = strip(SMBObj.udatatype) … … 438 445 CALL VRSet 'Main', 'HelpFile', settings.!helpfile 439 446 440 CALL NLVSetText 'Main', 'Caption', 1441 CALL NLVSetText 'DT_CURRENT', 'Caption', 10442 CALL NLVSetText 'PB_DETACH', 'Caption', 11443 CALL NLVSetText 'PB_UNMOUNT', 'Caption', 12444 CALL NLVSetText 'DT_DIALOG', 'Caption', 13445 CALL NLVSetText 'DT_MOUNT', 'Caption', 14446 447 CALL NLVSetText 'DT_SERVER', 'Caption', 19448 CALL NLVSetText 'DT_SHARE', 'Caption', 20449 CALL NLVSetText 'CHK_MTYPE', 'Caption', 23450 CALL NLVSetText 'PB_ADVANCED', 'Caption', 24451 CALL NLVSetText 'DT_USER', 'Caption', 25452 CALL NLVSetText 'DT_PASSWORD', 'Caption', 26453 CALL NLVSetText 'DT_MPOINT', 'Caption', 27454 CALL NLVSetText 'PB_MOUNT', 'Caption', 28455 CALL NLVSetText 'PB_EDITCANCEL', 'Caption', 3456 457 CALL NLVSetText 'PB_AUTOSTART', 'Caption', 35458 CALL NLVSetText 'PB_CLOSE', 'Caption', 29459 CALL NLVSetText 'PB_SAVE', 'Caption', 30460 CALL NLVSetText 'PB_LOAD', 'Caption', 31461 CALL NLVSetText 'PB_HELP', 'Caption', 4462 463 CALL NLVSetText 'MENU_CONTEXT_DETACH', 'Caption', 11464 CALL NLVSetText 'MENU_CONTEXT_DETACH_ALL', 'Caption', 120465 CALL NLVSetText 'MENU_CONTEXT_REFRESH', 'Caption', 38466 CALL NLVSetText 'MENU_CONTEXT_UNMOUNT', 'Caption', 12467 CALL NLVSetText 'MENU_CONTEXT_EDIT', 'Caption', 32468 CALL NLVSetText 'MENU_CONTEXT_OPEN', 'Caption', 94469 CALL NLVSetText 'MENU_CONTEXT_OPEN_ICON', 'Caption', 95470 CALL NLVSetText 'MENU_CONTEXT_OPEN_TREE', 'Caption', 96471 CALL NLVSetText 'MENU_CONTEXT_OPEN_DETAIL', 'Caption', 97472 CALL NLVSetText 'MENU_CONTEXT_OPEN_SETTINGS', 'Caption', 98473 CALL NLVSetText 'MENU_CONTEXT_OPEN_SPLITVIEW', 'Caption', 99474 475 CALL NLVSetText 'Menu_File', 'Caption', 80476 CALL NLVSetText 'Menu_Context', 'Caption', 81477 CALL NLVSetText 'Menu_View', 'Caption', 82478 CALL NLVSetText 'Menu_Selected', 'Caption', 83479 CALL NLVSetText 'Menu_Help', 'Caption', 84480 481 CALL NLVSetText 'Menu_View_Dialog', 'Caption', 85482 CALL NLVSetText 'Menu_View_SmbTree', 'Caption', 86483 CALL NLVSetText 'Menu_View_Buttons', 'Caption', 87484 CALL NLVSetText 'Menu_View_ConDet', 'Caption', 88485 CALL NLVSetText 'Menu_View_MiniIcons', 'Caption', 70486 487 CALL NLVSetText 'Menu_File_Autostart', 'Caption', 35488 CALL NLVSetText 'Menu_File_Autostart_Activate', 'Caption', 76489 CALL NLVSetText 'Menu_File_Autostart_Deactivate', 'Caption', 77490 CALL NLVSetText 'Menu_File_CLOSE', 'Caption', 29491 CALL NLVSetText 'Menu_File_SAVE', 'Caption', 30492 CALL NLVSetText 'Menu_File_LOAD', 'Caption', 31493 CALL NLVSetText 'Menu_File_SETTINGS', 'Caption', 47494 CALL NLVSetText 'Menu_File_ADVANCED', 'Caption', 40495 496 CALL NLVSetText 'Menu_Selected_Connect', 'Caption', 28497 CALL NLVSetText 'Menu_Selected_Remove', 'Caption', 12498 CALL NLVSetText 'Menu_Selected_Retry', 'Caption', 90499 CALL NLVSetText 'Menu_Selected_Info', 'Caption', 92500 CALL NLVSetText 'Menu_Selected_Default_Workgroup', 'Caption',75501 502 CALL NLVSetText 'Menu_Help_Extended', 'Caption', 4503 CALL NLVSetText 'Menu_Help_About', 'Caption', 91504 505 CALL NLVSetText 'DT_SMBTREE', 'Caption', 39506 CALL NLVSetText 'PB_CONNECT', 'Caption', 28507 CALL NLVSetText 'PB_REFRESH', 'Caption', 38508 509 CALL NLVSetText 'DT_CONDET', 'Caption', 63510 CALL NLVSetText 'PB_CONDET_SAVE', 'Caption', 30511 CALL NLVSetText 'PB_CONDET_LOAD', 'Caption', 31447 CALL NLVSetText 'Main', "Caption", 1 448 CALL NLVSetText 'DT_CURRENT', "Caption", 10 449 CALL NLVSetText 'PB_DETACH', "Caption", 11 450 CALL NLVSetText 'PB_UNMOUNT', "Caption", 12 451 CALL NLVSetText 'DT_DIALOG', "Caption", 13 452 CALL NLVSetText 'DT_MOUNT', "Caption", 14 453 454 CALL NLVSetText 'DT_SERVER', "Caption", 19 455 CALL NLVSetText 'DT_SHARE', "Caption", 20 456 CALL NLVSetText 'CHK_MTYPE', "Caption", 23 457 CALL NLVSetText 'PB_ADVANCED', "Caption", 24 458 CALL NLVSetText 'DT_USER', "Caption", 25 459 CALL NLVSetText 'DT_PASSWORD', "Caption", 26 460 CALL NLVSetText 'DT_MPOINT', "Caption", 27 461 CALL NLVSetText 'PB_MOUNT', "Caption", 28 462 CALL NLVSetText 'PB_EDITCANCEL',"Caption", 3 463 464 CALL NLVSetText 'PB_AUTOSTART',"Caption", 35 465 CALL NLVSetText 'PB_CLOSE', "Caption", 29 466 CALL NLVSetText 'PB_SAVE', "Caption", 30 467 CALL NLVSetText 'PB_LOAD', "Caption", 31 468 CALL NLVSetText 'PB_HELP', "Caption", 4 469 470 CALL NLVSetText 'MENU_CONTEXT_DETACH', "Caption", 11 471 CALL NLVSetText 'MENU_CONTEXT_DETACH_ALL', "Caption", 120 472 CALL NLVSetText 'MENU_CONTEXT_REFRESH', "Caption", 38 473 CALL NLVSetText 'MENU_CONTEXT_UNMOUNT', "Caption", 12 474 CALL NLVSetText 'MENU_CONTEXT_EDIT', "Caption", 32 475 CALL NLVSetText 'MENU_CONTEXT_OPEN', "Caption", 94 476 CALL NLVSetText 'MENU_CONTEXT_OPEN_ICON', "Caption", 95 477 CALL NLVSetText 'MENU_CONTEXT_OPEN_TREE', "Caption", 96 478 CALL NLVSetText 'MENU_CONTEXT_OPEN_DETAIL', "Caption", 97 479 CALL NLVSetText 'MENU_CONTEXT_OPEN_SETTINGS', "Caption", 98 480 CALL NLVSetText 'MENU_CONTEXT_OPEN_SPLITVIEW',"Caption", 99 481 482 CALL NLVSetText 'Menu_File', "Caption", 80 483 CALL NLVSetText 'Menu_Context', "Caption", 81 484 CALL NLVSetText 'Menu_View', "Caption", 82 485 CALL NLVSetText 'Menu_Selected', "Caption", 83 486 CALL NLVSetText 'Menu_Help', "Caption", 84 487 488 CALL NLVSetText 'Menu_View_Dialog', "Caption", 85 489 CALL NLVSetText 'Menu_View_SmbTree', "Caption", 86 490 CALL NLVSetText 'Menu_View_Buttons', "Caption", 87 491 CALL NLVSetText 'Menu_View_ConDet', "Caption", 88 492 CALL NLVSetText 'Menu_View_MiniIcons',"Caption", 70 493 494 CALL NLVSetText 'Menu_File_Autostart', "Caption", 35 495 CALL NLVSetText 'Menu_File_Autostart_Activate', "Caption", 76 496 CALL NLVSetText 'Menu_File_Autostart_Deactivate',"Caption", 77 497 CALL NLVSetText 'Menu_File_CLOSE', "Caption", 29 498 CALL NLVSetText 'Menu_File_SAVE', "Caption", 30 499 CALL NLVSetText 'Menu_File_LOAD', "Caption", 31 500 CALL NLVSetText 'Menu_File_SETTINGS', "Caption", 47 501 CALL NLVSetText 'Menu_File_ADVANCED', "Caption", 40 502 503 CALL NLVSetText 'Menu_Selected_Connect', "Caption", 28 504 CALL NLVSetText 'Menu_Selected_Remove', "Caption", 12 505 CALL NLVSetText 'Menu_Selected_Retry', "Caption", 90 506 CALL NLVSetText 'Menu_Selected_Info', "Caption", 92 507 CALL NLVSetText 'Menu_Selected_Default_Workgroup',"Caption",75 508 509 CALL NLVSetText 'Menu_Help_Extended', "Caption", 4 510 CALL NLVSetText 'Menu_Help_About', "Caption", 91 511 512 CALL NLVSetText 'DT_SMBTREE', "Caption", 39 513 CALL NLVSetText 'PB_CONNECT', "Caption", 28 514 CALL NLVSetText 'PB_REFRESH', "Caption", 38 515 516 CALL NLVSetText 'DT_CONDET', "Caption", 63 517 CALL NLVSetText 'PB_CONDET_SAVE', "Caption", 30 518 CALL NLVSetText 'PB_CONDET_LOAD', "Caption", 31 512 519 513 520 … … 584 591 ok = VRMethod("CN_CONDET", "SetFieldData", cd.masterfh, p_master, cd.mtypefh, p_mtype, cd.lastrh, cd.easupportfh, p_easupport, cd.rwfh, p_rw) 585 592 /* ok = VRMethod("CN_CONDET", "SetFieldData", cd.lastrh, cd.memlenfh, p_memlen, cd.logfilefh, p_logfile, cd.loglevelfh, p_loglevel ) */ 586 ok = VRMethod("CN_CONDET", "SetFieldData", cd.lastrh, cd.statusfh, '#68:PMWP.DLL') /* Passive */587 ok = VRMethod("CN_CONDET", "SetRecordAttr", cd.lastrh, "Icon", '#68:PMWP.DLL') /* Active */593 ok = VRMethod("CN_CONDET", "SetFieldData", cd.lastrh, cd.statusfh, icons.!passive) /* Passive */ 594 ok = VRMethod("CN_CONDET", "SetRecordAttr", cd.lastrh, "Icon", icons.!passive) /* Active */ 588 595 589 596 hashstr = p_mpoint' 'translate(p_domain)' 'translate(p_server)' 'translate(p_share)' 'p_user' 'p_spassword' 'p_easupport' 'p_rw … … 604 611 ok = SysIni(settings.!ini, 'PassiveConnections', 'DELETE:') 605 612 606 CALL VRMethod 'CN_CONDET', 'GetRecordList', 'All', 'records.'613 CALL VRMethod "CN_CONDET", 'GetRecordList', 'All', 'records.' 607 614 cnt = 0 608 615 DO i = 1 TO records.0 609 616 610 if VRMethod( 'CN_CONDET', "GetFieldData", records.i, CD.StatusFH) = '#68:PMWP.DLL'then do617 if VRMethod( "CN_CONDET", "GetFieldData", records.i, CD.StatusFH) = icons.!passive then do 611 618 cnt = cnt + 1 612 619 resdata = "" … … 724 731 end 725 732 726 CALL VRSet 'CB_LOGGING', 'Set', VRFileExists(SysBootDrive()'\ndpsmb.dbg')733 CALL VRSet "CB_LOGGING", "Set", VRFileExists(SysBootDrive()'\ndpsmb.dbg') 727 734 return 728 735 … … 742 749 CALL VRSet "CHK_MTYPE", "Visible", 0 743 750 CALL NLVSetText "DT_NETWORK", "Caption", 21 744 /* Does not make sense anymore 745 if options.!editmode = 0 Then CALL VRSet "EF_NETWORK", "Value", settings.!network 746 */ 751 /* Does not make sense anymore */ 752 /* if options.!editmode = 0 Then CALL VRSet "EF_NETWORK","Value", settings.!network */ 747 753 END 748 754 WHEN mount == 2 THEN DO … … 753 759 CALL VRSet "CHK_MTYPE", "Visible", 0 754 760 CALL NLVSetText "DT_NETWORK", "Caption", 21 755 /* Does not make sense anymore 756 CALL VRSet "EF_NETWORK", "Value", settings.!network 757 */ 761 /* Does not make sense anymore */ 762 /* CALL VRSet "EF_NETWORK","Value", settings.!network */ 758 763 END 759 764 WHEN mount == 3 THEN DO … … 764 769 CALL VRSet "CHK_MTYPE", "Visible", 0 765 770 CALL NLVSetText "DT_NETWORK", "Caption", 21 766 /* Does not make sense anymore 767 CALL VRSet "EF_NETWORK", "Value", settings.!network 768 */ 771 /* Does not make sense anymore */ 772 /* CALL VRSet "EF_NETWORK","Value", settings.!network */ 769 773 END 770 774 WHEN mount == 4 THEN DO … … 775 779 CALL VRSet "CHK_MTYPE", "Visible", 1 776 780 CALL NLVSetText "DT_NETWORK", "Caption", 22 777 /* Does not make sense anymore 778 CALL VRSet "EF_NETWORK", "Value", "" 779 */ 781 /* Does not make sense anymore */ 782 /* CALL VRSet "EF_NETWORK","Value", "" */ 780 783 END 781 784 END 782 785 IF options.!debug == 1 THEN SAY time()' '||"CB_MOUNT_Change done" 783 784 786 RETURN 785 787 … … 794 796 CN_CONDET_ContextMenu: 795 797 rh = VRInfo('Record') 796 if VRMethod( 'CN_CONDET', "ValidateRecord", rh) <> 1 then return798 if VRMethod( "CN_CONDET", "ValidateRecord", rh) <> 1 then return 797 799 798 800 /* This is the place to enable specific context menu entries */ … … 801 803 ok = VRSet("Menu_Selected_Retry", "Visible", (records.0 <> 0)) 802 804 803 if VRMethod( 'CN_CONDET', "GetFieldData", rh, CD.StatusFH) = '#68:PMWP.DLL'then do805 if VRMethod( "CN_CONDET", "GetFieldData", rh, CD.StatusFH) = icons.!passive then do 804 806 ok = VRSet("Menu_Selected_Retry", "Enabled",1) 805 807 ok = VRSet("Menu_Selected_Remove", "Enabled",1) … … 817 819 Icon = VRMethod("CN_CONDET", "GetRecordAttr", selrec.1, "Icon") 818 820 819 if Icon = "#65:PMWP.DLL"then do /* Printers not supported at the moment */821 if Icon = icons.!printer then do /* Printers not supported at the moment */ 820 822 CALL VRMessage 'Main', NLVGetMessage( 62 ), NLVGetMessage( 5 ), 'E' 821 823 end … … 833 835 834 836 rh = VRInfo('Record') 835 if VRMethod( 'CN_CURRENT', "ValidateRecord", rh) <> 1 then return836 837 data = VRMethod( 'CN_CURRENT', 'GetRecordAttr', rh, 'UserData')837 if VRMethod( "CN_CURRENT", "ValidateRecord", rh) <> 1 then return 838 839 data = VRMethod("CN_CURRENT", 'GetRecordAttr', rh, 'UserData') 838 840 options.currentdata = data 839 841 … … 862 864 CALL VRSet 'Main', 'StatusText', infotext */ 863 865 if infotext = "" then infotext = " " 864 CALL VRSet 'CN_CURRENT', 'Caption', infotext865 CALL VRSet 'CN_CURRENT', 'HintText',infotext866 CALL VRSet "CN_CURRENT", "Caption", infotext 867 CALL VRSet "CN_CURRENT", 'HintText',infotext 866 868 /* Herwig B. */ 867 869 … … 879 881 END 880 882 881 parent = VRMethod( 'CN_CURRENT', 'GetRecordAttr', rh, 'Parent')883 parent = VRMethod("CN_CURRENT", 'GetRecordAttr', rh, 'Parent') 882 884 883 885 IF parent == '' THEN DO … … 908 910 /*:VRX CN_CURRENT_ContextMenu 909 911 */ 910 CN_CURRENT_ContextMenu: /* PROCEDURE EXPOSE existrec. options. fs. */912 CN_CURRENT_ContextMenu: /* PROCEDURE EXPOSE existrec. options. icons. fs. */ 911 913 IF options.!debug == 1 THEN SAY time()' '||"CN_CURRENT_ContextMenu started" 912 914 … … 918 920 circumstances the event routine is executed after the record was already 919 921 removed */ 920 if VRMethod( 'CN_CURRENT', "ValidateRecord", rh) <> 1 then do922 if VRMethod( "CN_CURRENT", "ValidateRecord", rh) <> 1 then do 921 923 IF options.!debug == 1 THEN SAY time()' '||"CN_CURRENT_ContextMenu aborted" 922 924 return 923 925 end 924 926 925 data = VRMethod( 'CN_CURRENT', 'GetRecordAttr', rh, 'UserData')927 data = VRMethod("CN_CURRENT", 'GetRecordAttr', rh, 'UserData') 926 928 PARSE VAR data p_node ';' p_mounts ';' p_string 927 929 … … 946 948 CALL VRSet 'Main', 'StatusText', infotext */ 947 949 if infotext = "" then infotext = " " 948 CALL VRSet 'CN_CURRENT', 'Caption', infotext949 CALL VRSet 'CN_CURRENT', 'HintText',infotext950 CALL VRSet "CN_CURRENT", "Caption", infotext 951 CALL VRSet "CN_CURRENT", 'HintText',infotext 950 952 /* Herwig B. */ 951 953 … … 969 971 END 970 972 971 parent = VRMethod( 'CN_CURRENT', 'GetRecordAttr', rh, 'Parent')973 parent = VRMethod("CN_CURRENT", 'GetRecordAttr', rh, 'Parent') 972 974 973 975 IF parent == '' THEN DO … … 1006 1008 circumstances the event routine is executed after the record was already 1007 1009 removed */ 1008 if VRMethod( 'CN_CURRENT', "ValidateRecord", rh) <> 1 then do1010 if VRMethod( "CN_CURRENT", "ValidateRecord", rh) <> 1 then do 1009 1011 IF options.!debug == 1 THEN SAY time()' '||"CN_CURRENT_DoubleClick aborted" 1010 1012 return 1011 1013 end 1012 1014 1013 data = VRMethod( 'CN_CURRENT', 'GetRecordAttr', rh, 'UserData')1015 data = VRMethod("CN_CURRENT", 'GetRecordAttr', rh, 'UserData') 1014 1016 PARSE VAR data p_node ';' p_mounts ';' p_string 1015 1017 … … 1060 1062 Profile = srcFile 1061 1063 call PB_LOAD_Click 1064 ok = VRSet("EF_NETWORK","Value",options.!workgroup) 1062 1065 end 1063 1066 else do /* No - barf! */ … … 1193 1196 call PB_MOUNT_CLICK 1194 1197 1195 if VRGet(srcCtn,'Name') = "CN_CONDET" & VRMethod( 'CN_CONDET', "ValidateRecord", srcRec) = 1 then do1196 if VRMethod("CN_CONDET", "GetRecordAttr", srcRec, "Icon") = '#68:PMWP.DLL'then ok = VRMethod( "CN_CONDET", "RemoveRecord", srcRec)1198 if VRGet(srcCtn,'Name') = "CN_CONDET" & VRMethod( "CN_CONDET", "ValidateRecord", srcRec) = 1 then do 1199 if VRMethod("CN_CONDET", "GetRecordAttr", srcRec, "Icon") = icons.!passive then ok = VRMethod( "CN_CONDET", "RemoveRecord", srcRec) 1197 1200 end 1198 1201 IF options.!debug == 1 THEN SAY time()' CN_CURRENT_DragDrop done' … … 1301 1304 1302 1305 if SMBObj.udatatype = "DISK" then do 1303 machine = VRMethod("CN_ smbtree","GetRecordAttr",SMBObj.parentrh,"Caption")1306 machine = VRMethod("CN_SMBTREE","GetRecordAttr",SMBObj.parentrh,"Caption") 1304 1307 parse var machine machine '0D0A'x . 1305 1308 machine = strip(machine) … … 1392 1395 if strip(translate(VRGet("EF_SERVER","value"),copies(' ',11),'01234567890.')) = "" & length(VRGet("EF_SERVER","value")) < 7 then return 1393 1396 1394 ok = VRMethod( "CN_ smbtree", "GetRecordList", "Visible", "rh." )1397 ok = VRMethod( "CN_SMBTREE", "GetRecordList", "Visible", "rh." ) 1395 1398 1396 1399 FoundServer = 0 … … 1398 1401 do I = 1 to rh.0 1399 1402 1400 Userdata = VRMethod("CN_ smbtree","GetRecordAttr",rh.I,"Userdata")1401 ResName = VRMethod("CN_ smbtree","GetRecordAttr",rh.I,"Caption")1402 ParentRH = VRMethod("CN_ smbtree","GetRecordAttr",rh.I,"Parent")1403 Userdata = VRMethod("CN_SMBTREE","GetRecordAttr",rh.I,"Userdata") 1404 ResName = VRMethod("CN_SMBTREE","GetRecordAttr",rh.I,"Caption") 1405 ParentRH = VRMethod("CN_SMBTREE","GetRecordAttr",rh.I,"Parent") 1403 1406 1404 1407 parse var ResName ResName '0D0A'x . … … 1409 1412 /* Workgroup properly */ 1410 1413 if ParentRH = "" then do 1411 ok = VRSet("EF_NETWORK", 1414 ok = VRSet("EF_NETWORK","Value", "") /* The workgroup might be unknown at this moment */ 1412 1415 end 1413 1416 else do 1414 ok = VRSet("EF_NETWORK", "Value", VRMethod("CN_smbtree","GetRecordAttr",ParentRH,"Caption"))1417 ok = VRSet("EF_NETWORK","Value", VRMethod("CN_SMBTREE","GetRecordAttr",ParentRH,"Caption")) 1415 1418 end 1416 1419 … … 1421 1424 do J = 1 to rh.0 /* populate shares with valid entries */ 1422 1425 1423 Userdata = VRMethod("CN_ smbtree","GetRecordAttr",rh.J,"Userdata")1424 ResName = VRMethod("CN_ smbtree","GetRecordAttr",rh.J,"Caption")1425 ParentRH = VRMethod("CN_ smbtree","GetRecordAttr",rh.J,"Parent")1426 Userdata = VRMethod("CN_SMBTREE","GetRecordAttr",rh.J,"Userdata") 1427 ResName = VRMethod("CN_SMBTREE","GetRecordAttr",rh.J,"Caption") 1428 ParentRH = VRMethod("CN_SMBTREE","GetRecordAttr",rh.J,"Parent") 1426 1429 1427 1430 parse var ResName ResName '0D0A'x . … … 1439 1442 if Foundserver = 0 then do 1440 1443 machine = VRGet("EF_SERVER","value") 1441 smbtree.!machine = VRMethod( "CN_ smbtree", "AddRecord",,, machine)1444 smbtree.!machine = VRMethod( "CN_SMBTREE", "AddRecord",,, machine) 1442 1445 /* We make any machine as sleeping initially */ 1443 ok = VRMethod( "CN_ smbtree", "SetRecordAttr", smbtree.!machine, "Icon","#61:PMWP.DLL")1444 ok = VRMethod( "CN_ smbtree", "SetRecordAttr", smbtree.!machine, "ReadOnly", 1)1445 ok = VRMethod( "CN_ smbtree", "SetFieldData", smbtree.!machine, NBFH, machine)1446 ok = VRMethod( "CN_SMBTREE", "SetRecordAttr", smbtree.!machine, "Icon",icons.!machine_sleeping) 1447 ok = VRMethod( "CN_SMBTREE", "SetRecordAttr", smbtree.!machine, "ReadOnly", 1) 1448 ok = VRMethod( "CN_SMBTREE", "SetFieldData", smbtree.!machine, NBFH, machine) 1446 1449 call _UserCredUpdate 1447 1450 call _RefreshShares … … 1479 1482 /*:VRX GetChildren 1480 1483 */ 1481 GetChildren: PROCEDURE EXPOSE existrec. exc options. fs. cd. samba.1484 GetChildren: PROCEDURE EXPOSE existrec. exc options. icons. fs. cd. samba. 1482 1485 IF options.!debug == 1 THEN SAY time()' GetChildren started' 1483 1486 PARSE ARG node, parec 1484 1487 1485 dyn = "CALL "fs.!prefix"RxGetMount node, 'info.', 'points.', 'res.'" 1486 IF options.!debug == 1 THEN SAY ' Dyn code: 'dyn 1487 interpret dyn; drop dyn 1488 1489 1490 IF info.2 > 0 THEN icon = '#64:PMWP.DLL' 1491 ELSE icon = '#68:PMWP.DLL' 1492 rh = VRMethod('CN_CURRENT', 'AddRecord', parec, 'Last', info.0, icon ) 1488 CALL _Dynamic "CALL "fs.!prefix"RxGetMount node, 'info.', 'points.', 'res.'" 1489 1490 IF info.2 > 0 THEN icon = icons.!active 1491 ELSE icon = icons.!passive 1492 1493 rh = VRMethod("CN_CURRENT", 'AddRecord', parec, 'Last', info.0, icon ) 1493 1494 IF rh == '' | datatype(res.0) <> "NUM" THEN RETURN 1494 1495 … … 1499 1500 userdata = ParseResourceData( userdata, res.i ) 1500 1501 END 1501 if userdata = "UNKNOWN" then ok = VRMethod( 'CN_CURRENT', 'RemoveRecord', rh)1502 if userdata = "UNKNOWN" then ok = VRMethod("CN_CURRENT", 'RemoveRecord', rh) 1502 1503 else do 1503 CALL VRMethod 'CN_CURRENT', 'SetRecordAttr', rh, 'UserData', userdata1504 if options.currentdata = userdata then ok = VRMethod( 'CN_CURRENT', 'SetRecordAttr', rh, 'Selected', 1)1504 CALL VRMethod "CN_CURRENT", 'SetRecordAttr', rh, 'UserData', userdata 1505 if options.currentdata = userdata then ok = VRMethod("CN_CURRENT", 'SetRecordAttr', rh, 'Selected', 1) 1505 1506 end 1506 1507 … … 1514 1515 /*:VRX GetMountPoints 1515 1516 */ 1516 GetMountPoints: PROCEDURE EXPOSE existrec. options. fs. cd. samba.1517 GetMountPoints: PROCEDURE EXPOSE existrec. options. icons. fs. cd. samba. 1517 1518 IF options.!debug == 1 THEN SAY time()' GetMountPoints started' 1518 /* CALL VRSet 'CN_CURRENT', 'Painting', 0 */1519 /* CALL VRSet "CN_CURRENT", 'Painting', 0 */ 1519 1520 /* IF options.!debug == 1 THEN SAY time()' '||"GetMountPoints: SysDriveMap(USED) started" */ 1520 1521 drvs = SysDriveMap('C:', 'USED') /* was "REMOTE" */ … … 1536 1537 CALL VRMethod 'CB_DRIVES', 'AddString', attached.i 1537 1538 1538 dyn = "CALL "fs.!prefix"RxGetMount node, 'info.', 'points.', 'res.'" 1539 IF options.!debug == 1 THEN SAY ' Dyn code: 'dyn 1540 interpret dyn; drop dyn 1541 1542 IF info.2 > 0 THEN icon = '#16:PMWP.DLL' 1543 ELSE icon = '#70:PMWP.DLL' 1544 1545 rh = VRMethod('CN_CURRENT', 'AddRecord',, 'Last', attached.i, icon ) 1539 CALL _Dynamic "CALL "fs.!prefix"RxGetMount node, 'info.', 'points.', 'res.'" 1540 1541 IF info.2 > 0 THEN icon = icons.!drive 1542 ELSE icon = icons.!drive_inactive 1543 1544 rh = VRMethod("CN_CURRENT", 'AddRecord',, 'Last', attached.i, icon ) 1546 1545 IF rh == '' THEN ITERATE 1547 1546 … … 1553 1552 END 1554 1553 /* IF options.!debug == 1 THEN say ' "'attached.i'" "'userdata'"' */ 1555 CALL VRMethod 'CN_CURRENT', 'SetRecordAttr', rh, 'UserData', userdata1556 if options.currentdata = userdata then ok = VRMethod( 'CN_CURRENT', 'SetRecordAttr', rh, 'Selected', 1)1557 1558 CALL VRMethod 'CN_CURRENT', 'SetRecordAttr', rh, 'Expanded', 11554 CALL VRMethod "CN_CURRENT", 'SetRecordAttr', rh, 'UserData', userdata 1555 if options.currentdata = userdata then ok = VRMethod("CN_CURRENT", 'SetRecordAttr', rh, 'Selected', 1) 1556 1557 CALL VRMethod "CN_CURRENT", 'SetRecordAttr', rh, 'Expanded', 1 1559 1558 1560 1559 DO j = 1 TO points.0 … … 1565 1564 END 1566 1565 existrec.0 = exc 1567 /* CALL VRSet 'CN_CURRENT', 'Painting', 1 */1566 /* CALL VRSet "CN_CURRENT", 'Painting', 1 */ 1568 1567 IF options.!debug == 1 THEN SAY time()' '||"GetMountPoints done" 1569 1568 RETURN … … 1628 1627 CommonToBothFS: 1629 1628 IF options.!debug == 1 THEN SAY ' Common version check' 1630 dyn = "fsstat = "fs.!prefix"RxQueryIFS()" 1631 IF options.!debug == 1 THEN SAY ' Dyn code: '||dyn 1632 interpret dyn; drop dyn 1633 IF options.!debug == 1 THEN SAY ' Dyn res fsstat = '||fsstat 1634 if fsstat = 252 then do 1635 dyn = "Found"fs.!prefix" = 0" 1636 interpret dyn 1637 end 1629 CALL _Dynamic "fsstat = "fs.!prefix"RxQueryIFS()" 1630 if fsstat = 252 then CALL _Dynamic "Found"fs.!prefix" = 0" 1631 1638 1632 if word(fsstat,1) = '0' then do 1639 1633 PARSE VAR fsstat '0 'fsname fsver fsctl . … … 1674 1668 /*:VRX LoadSettings 1675 1669 */ 1676 LoadSettings: PROCEDURE EXPOSE settings. options. fs. advanced. samba. ShowHidden margin1670 LoadSettings: PROCEDURE EXPOSE settings. options. icons. fs. advanced. samba. ShowHidden margin 1677 1671 IF options.!debug == 1 THEN SAY time()' LoadSettings started' 1678 1672 … … 1769 1763 IF advanced.!browseimme == '' THEN advanced.!browseimme = 1 1770 1764 1771 advanced.!debug = VRGetIni('Settings', 'Debug', settings.!ini)1772 IF advanced.!debug == '' THEN advanced.!debug = 0 /* Turn off debug by default for release builds */1765 options.!debug = VRGetIni('Settings', 'Debug', settings.!ini) 1766 IF options.!debug == '' THEN options.!debug = 0 /* Turn off debug by default for release builds */ 1773 1767 1774 1768 /* This is a hack and should be reworked! - using several variables for debug is bad! */ 1775 options.!debug = advanced.!debug1769 options.!debug = options.!debug 1776 1770 IF options.!debug <> 1 THEN ok = VRRedirectStdIO("OFF") 1777 1771 … … 1832 1826 end 1833 1827 1834 if advanced.!debug == 1 then ok = VRRedirectStdio("ON")1828 if options.!debug == 1 then ok = VRRedirectStdio("ON") 1835 1829 1836 1830 IF ( settings.!x >= 0 ) & ( settings.!y >= 0 ) & ( settings.!l >= 0 ) & ( settings.!w >= 0 ) & ( settings.!s >= 0 ) THEN DO … … 1844 1838 CALL VRMethod VRWindow(), 'CenterWindow' 1845 1839 1846 CALL VRSet 'CN_CURRENT', 'Font', settings.!cfont1840 CALL VRSet "CN_CURRENT", 'Font', settings.!cfont 1847 1841 CALL VRSet 'Main', 'Font', settings.!wfont 1848 1842 CALL VRSet 'Main', 'StatusFont', settings.!wfont … … 2193 2187 Menu_Context_Open_Default_Click: 2194 2188 IF options.!debug == 1 THEN SAY time()' '||"Menu_Context_Open_Click started" 2195 userdata = VRMethod( 'CN_CURRENT', 'GetRecordAttr', rh, 'UserData')2189 userdata = VRMethod( "CN_CURRENT", 'GetRecordAttr', rh, 'UserData') 2196 2190 PARSE VAR userdata mountpoint ';' mounts ';' . 2197 2191 … … 2207 2201 Menu_Context_Open_Detail_Click: 2208 2202 IF options.!debug == 1 THEN SAY time()' '||"Menu_Context_Open_Details_Click started" 2209 userdata = VRMethod( 'CN_CURRENT', 'GetRecordAttr', rh, 'UserData')2203 userdata = VRMethod( "CN_CURRENT", 'GetRecordAttr', rh, 'UserData') 2210 2204 PARSE VAR userdata mountpoint ';' mounts ';' . 2211 2205 … … 2221 2215 Menu_Context_Open_Icon_Click: 2222 2216 IF options.!debug == 1 THEN SAY time()' '||"Menu_Context_Open_Icon_Click started" 2223 userdata = VRMethod( 'CN_CURRENT', 'GetRecordAttr', rh, 'UserData')2217 userdata = VRMethod( "CN_CURRENT", 'GetRecordAttr', rh, 'UserData') 2224 2218 PARSE VAR userdata mountpoint ';' mounts ';' . 2225 2219 … … 2235 2229 Menu_Context_Open_Settings_Click: 2236 2230 IF options.!debug == 1 THEN SAY time()' '||"Menu_Context_Open_DetailsClick started" 2237 userdata = VRMethod( 'CN_CURRENT', 'GetRecordAttr', rh, 'UserData')2231 userdata = VRMethod( "CN_CURRENT", 'GetRecordAttr', rh, 'UserData') 2238 2232 PARSE VAR userdata mountpoint ';' mounts ';' . 2239 2233 … … 2249 2243 Menu_Context_Open_Splitview_Click: 2250 2244 IF options.!debug == 1 THEN SAY time()' '||"Menu_Context_Open_Splitview_Click started" 2251 userdata = VRMethod( 'CN_CURRENT', 'GetRecordAttr', rh, 'UserData')2245 userdata = VRMethod( "CN_CURRENT", 'GetRecordAttr', rh, 'UserData') 2252 2246 PARSE VAR userdata mountpoint ';' mounts ';' . 2253 2247 … … 2263 2257 Menu_Context_Open_Tree_Click: 2264 2258 IF options.!debug == 1 THEN SAY time()' '||"Menu_Context_Open_Tree_Click started" 2265 userdata = VRMethod( 'CN_CURRENT', 'GetRecordAttr', rh, 'UserData')2259 userdata = VRMethod( "CN_CURRENT", 'GetRecordAttr', rh, 'UserData') 2266 2260 PARSE VAR userdata mountpoint ';' mounts ';' . 2267 2261 … … 2288 2282 */ 2289 2283 Menu_File_Advanced_Click: 2290 call PB_ADVANCED_Click2284 CALL VRLoadSecondary "SW_ADVANCED", "W" 2291 2285 return 2292 2286 … … 2342 2336 */ 2343 2337 Menu_File_Settings_Click: 2344 adv_changed = 02345 2338 CALL VRLoadSecondary "SW_SETTINGS", "W" 2346 IF adv_changed == 1 THEN DO2347 advanced.!logfile = adv_logfile2348 advanced.!loglevel = adv_loglevel2349 advanced.!browseauth= adv_browseauth2350 advanced.!browseimme= adv_browseimme2351 advanced.!debug = adv_debug2352 advanced.!special = adv_special2353 advanced.!savepassive=adv_savepassive2354 advanced.!broadcast =adv_broadcast2355 END2356 2339 return 2357 2340 … … 2377 2360 */ 2378 2361 Menu_Selected_Default_Workgroup_Click: 2379 workgroupname = VRMethod("CN_ smbtree","GetRecordAttr",SMBObj.rh,"Caption")2362 workgroupname = VRMethod("CN_SMBTREE","GetRecordAttr",SMBObj.rh,"Caption") 2380 2363 ok = TRSetIni("[global]","workgroup", workgroupname, samba.!smbconf) 2381 2364 return … … 2386 2369 IF options.!debug == 1 THEN SAY time()' Menu_Selected_Info_Click started' 2387 2370 2388 ok = VRMethod( "CN_ smbtree", "GetRecordList", "SourceOrSelected", "SelRH." )2371 ok = VRMethod( "CN_SMBTREE", "GetRecordList", "SourceOrSelected", "SelRH." ) 2389 2372 if SelRH.0 = 0 then do 2390 2373 IF options.!debug == 1 THEN SAY time()' Menu_Selected_Info_Click aborted' … … 2417 2400 2418 2401 do I = 1 to selrec.0 2419 if VRMethod("CN_CONDET", "GetFieldData", selrec.I, cd.statusfh) = '#68:PMWP.DLL'then do2420 CALL VRMethod 'CN_CONDET', 'RemoveRecord', selrec.I2402 if VRMethod("CN_CONDET", "GetFieldData", selrec.I, cd.statusfh) = icons.!passive then do 2403 CALL VRMethod "CN_CONDET", 'RemoveRecord', selrec.I 2421 2404 end 2422 2405 else do 2423 mountpoint = VRMethod( 'CN_CONDET', "GetFieldData", selrec.I, cd.mpointfh)2424 mpidx = VRMethod( 'CN_CONDET', "GetFieldData", selrec.I, cd.mpidxfh)2406 mountpoint = VRMethod("CN_CONDET", "GetFieldData", selrec.I, cd.mpointfh) 2407 mpidx = VRMethod("CN_CONDET", "GetFieldData", selrec.I, cd.mpidxfh) 2425 2408 if mpidx = 1 then do 2426 2409 btns.0 = 2 … … 2430 2413 IF confirm \= 1 THEN RETURN 2431 2414 2432 dyn ="ok = "fs.!prefix"RxUnmount( mountpoint, mpidx )" 2433 IF options.!debug == 1 THEN SAY time()' '||dyn 2434 interpret dyn; drop dyn 2435 CALL VRMethod 'CN_CONDET', 'RemoveRecord', selrec.I 2415 CALL _Dynamic "ok = "fs.!prefix"RxUnmount( mountpoint, mpidx )" 2416 CALL VRMethod "CN_CONDET", 'RemoveRecord', selrec.I 2436 2417 CALL Refresh 2437 2418 end … … 2445 2426 /*:VRX Menu_Selected_Retry_Click 2446 2427 */ 2447 Menu_Selected_Retry_Click: PROCEDURE EXPOSE settings. options. vfs. fs. advanced. cd. samba.2428 Menu_Selected_Retry_Click: PROCEDURE EXPOSE settings. options. icons. vfs. fs. advanced. cd. samba. 2448 2429 2449 2430 ok = VRMethod( "CN_CONDET", "GetRecordList", "SourceOrSelected", "srcrec." ) … … 2483 2464 CALL PB_MOUNT_Click 2484 2465 2485 if VRMethod( 'CN_CONDET', "ValidateRecord", srcRec) = 1 then do2486 if VRMethod("CN_CONDET", "GetRecordAttr", srcRec, "Icon") = '#68:PMWP.DLL'then ok = VRMethod( "CN_CONDET", "RemoveRecord", srcRec)2466 if VRMethod( "CN_CONDET", "ValidateRecord", srcRec) = 1 then do 2467 if VRMethod("CN_CONDET", "GetRecordAttr", srcRec, "Icon") = icons.!passive then ok = VRMethod( "CN_CONDET", "RemoveRecord", srcRec) 2487 2468 end 2488 2469 return … … 2588 2569 /*:VRX Mount 2589 2570 */ 2590 Mount: PROCEDURE EXPOSE settings. options. vfs. fs. advanced. cd. samba.2571 Mount: PROCEDURE EXPOSE settings. options. icons. vfs. fs. advanced. cd. samba. 2591 2572 IF options.!debug == 1 THEN SAY time()' Mount procedure started' 2592 2573 /* Set mouse pointer to wait - this operation might take a few seconds */ 2593 2574 call VRSet VRWindow(), 'Pointer', 'Wait' 2594 2575 2595 /* Disabled because we merge profile now - in earlier revisions2576 /* Disabled, because we merge profile now - in earlier revisions 2596 2577 we replaced it but only for preexisting drives - this made only 2597 as long as we were unabled to detect double connections - this could be made an option! 2578 sense as long as we were unable to detect double connections - 2579 this could be made an option! 2580 2598 2581 IF options.!autoload then do 2599 dyn = "ok = "fs.!prefix"RxDetach(vfs.!drive)" 2600 IF options.!debug == 1 THEN SAY time()' '||dyn 2601 interpret dyn; drop dyn 2602 2582 CALL _Dynamic "ok = "fs.!prefix"RxDetach(vfs.!drive)" 2603 2583 IF options.!debug == 1 THEN SAY time()' '||'Autoload Detach "'vfs.!drive'" =' ok 2604 2584 end */ … … 2606 2586 /* Attach the virtual drive - only if drive is not already attached */ 2607 2587 if pos(vfs.!drive,MyFreeDriveMap("C:","FREE")) > 0 then do 2608 dyn = "ok = "fs.!prefix"RxAttach( vfs.!drive )" 2609 IF options.!debug == 1 THEN SAY time()' '||dyn 2610 2611 interpret dyn; drop dyn 2588 CALL _Dynamic "ok = "fs.!prefix"RxAttach( vfs.!drive )" 2612 2589 2613 2590 IF options.!debug == 1 THEN SAY time()' '||'Attach "'vfs.!drive'" =' ok … … 2615 2592 2616 2593 /* Create the mount point and store whether it was created or already existed */ 2617 dyn = "CreateMP = "fs.!prefix"RxCreateMountPoint( vfs.!mountpoint )" 2618 IF options.!debug == 1 THEN SAY time()' '||dyn 2619 interpret dyn; drop dyn 2594 CALL _Dynamic "CreateMP = "fs.!prefix"RxCreateMountPoint( vfs.!mountpoint )" 2620 2595 2621 2596 IF options.!debug == 1 THEN SAY time()' '||'Create "'vfs.!mountpoint'" = 'CreateMP … … 2656 2631 md5 = rexx_md5(hashstr) 2657 2632 2658 CALL VRMethod 'CN_CONDET', 'GetRecordList', 'All', 'records.'2633 CALL VRMethod "CN_CONDET", 'GetRecordList', 'All', 'records.' 2659 2634 DO i = 1 TO records.0 2660 2635 hash = VRMethod("CN_CONDET","GetFieldData", records.i, cd.hashfh) … … 2664 2639 2665 2640 if hash = md5 then do 2666 If VRMethod("CN_CONDET","GetFieldData", records.i, cd.statusfh) = '#64:PMWP.DLL'then do /* Same hash, status active */2641 If VRMethod("CN_CONDET","GetFieldData", records.i, cd.statusfh) = icons.!active then do /* Same hash, status active */ 2667 2642 say "Double connection detected!!" 2668 2643 if options.!spassword <> "" then upw = ":********" … … 2688 2663 2689 2664 /* Now mount the resource */ 2690 dyn ="ok = "fs.!prefix"RxMount('smbfs', vfs.!mountpoint, src, rwFlag)" 2691 IF options.!debug == 1 THEN SAY time()' '||dyn 2692 interpret dyn; drop dyn 2665 CALL _Dynamic "ok = "fs.!prefix"RxMount('smbfs', vfs.!mountpoint, src, rwFlag)" 2693 2666 2694 2667 IF options.!debug == 1 THEN SAY time()' '||'Mount "'vfs.!mountpoint'" =' ok … … 2704 2677 end 2705 2678 if cd.lastrh <> '' then do 2706 ok = VRMethod("CN_CONDET", "SetFieldData", cd.lastrh, cd.statusfh, '#68:PMWP.DLL') /* Passive Connection icon */2707 ok = VRMethod("CN_CONDET", "SetRecordAttr", cd.lastrh, "Icon", '#68:PMWP.DLL') /* Passive Connection icon */2679 ok = VRMethod("CN_CONDET", "SetFieldData", cd.lastrh, cd.statusfh, icons.!passive) /* Passive Connection icon */ 2680 ok = VRMethod("CN_CONDET", "SetRecordAttr", cd.lastrh, "Icon", icons.!passive) /* Passive Connection icon */ 2708 2681 ok = VRMethod("CN_CONDET", "SetFieldData", cd.lastrh, cd.passwordfh, '') /* remove pain text password */ 2709 2682 end … … 2711 2684 /* In case the mountpoint was created for this failed operation, it is (optionally) removed again */ 2712 2685 if CreateMP = 0 & advanced.!alwaysmp <> 1 then do 2713 dyn ="ok = "fs.!prefix"RxDeleteMountPoint( vfs.!mountpoint )" 2714 interpret dyn 2686 CALL _Dynamic "ok = "fs.!prefix"RxDeleteMountPoint( vfs.!mountpoint )" 2715 2687 IF options.!debug == 1 THEN SAY time()' '||'Remove "'vfs.!mountpoint'" = 'ok 2716 2688 end … … 2730 2702 /*:VRX MyFreeDriveMap 2731 2703 */ 2732 MyFreeDriveMap: procedure expose options. fs. samba.2704 MyFreeDriveMap: procedure expose options. icons. fs. samba. 2733 2705 IF options.!debug == 1 THEN SAY time()' MyFreeDriveMap(proc) started' 2734 2706 alldrives = "C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z:" … … 2831 2803 /*:VRX ParseResourceData 2832 2804 */ 2833 ParseResourceData: PROCEDURE EXPOSE userdata options. advanced. fs. cd. samba.2805 ParseResourceData: PROCEDURE EXPOSE userdata options. icons. advanced. fs. cd. samba. 2834 2806 PARSE ARG userdata, resdata 2835 2807 IF options.!debug == 1 THEN SAY time()' ParseResourceData started' … … 2891 2863 ok = VRMethod("CN_CONDET", "SetFieldData", cd.lastrh, cd.passwordfh, p_password, cd.spasswordfh, p_spassword, cd.masterfh, p_master, cd.mtypefh, p_mtype) 2892 2864 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) 2893 ok = VRMethod("CN_CONDET", "SetFieldData", cd.lastrh, cd.statusfh, '#64:PMWP.DLL') /* Active */2894 ok = VRMethod("CN_CONDET", "SetRecordAttr", cd.lastrh, "Icon", '#64:PMWP.DLL') /* Active */2865 ok = VRMethod("CN_CONDET", "SetFieldData", cd.lastrh, cd.statusfh, icons.!active) /* Active */ 2866 ok = VRMethod("CN_CONDET", "SetRecordAttr", cd.lastrh, "Icon", icons.!active) /* Active */ 2895 2867 2896 2868 hashstr = p_mpoint' 'translate(p_domain)' 'translate(p_server)' 'translate(p_share)' 'p_user' 'p_spassword' 'p_easupport' 'p_rw … … 2941 2913 */ 2942 2914 PB_ADVANCED_Click: 2943 adv_changed = 0 2944 CALL VRLoadSecondary "SW_ADVANCED", "W" 2945 IF adv_changed == 1 THEN DO 2946 advanced.!memlen = adv_memlen 2947 advanced.!easupport = adv_eas 2948 advanced.!readonly = adv_readonly 2949 advanced.!alwaysmp = adv_alwaysmp 2950 END 2915 CALL Menu_File_Advanced_Click 2951 2916 RETURN 2952 2917 … … 2954 2919 */ 2955 2920 PB_ADVCANCEL_Click: 2956 2957 adv_changed = 02958 2921 CALL SW_ADVANCED_Close 2959 2960 2922 RETURN 2961 2923 … … 2969 2931 */ 2970 2932 PB_ADVOK_Click: 2971 2972 adv_memlen = VRGet( "SPB_MEMLEN", "Value" ) 2973 adv_eas = VRGet( "CB_EAS", "Set" ) 2974 adv_readonly = VRGet( "CB_READONLY", "Set" ) 2975 adv_alwaysmp = VRGet( "CB_ALWAYSMP", "Set" ) 2933 advanced.!memlen = VRGet( "SPB_MEMLEN", "Value" ) 2934 advanced.!easupport = VRGet( "CB_EAS", "Set" ) 2935 advanced.!readonly = VRGet( "CB_READONLY", "Set" ) 2936 advanced.!alwaysmp = VRGet( "CB_ALWAYSMP", "Set" ) 2976 2937 2977 2938 CALL SW_ADVANCED_Close 2978 2979 2939 return 2980 2940 2981 2941 /*:VRX PB_AUTOSTART_Click 2982 2942 */ 2983 PB_AUTOSTART_Click: /* PROCEDURE EXPOSE settings. options. Profile fs. cd. advanced. samba. */2943 PB_AUTOSTART_Click: /* PROCEDURE EXPOSE settings. options. icons. Profile fs. cd. advanced. samba. */ 2984 2944 options.!autostart = 1 2985 2945 … … 3047 3007 /*:VRX PB_CONDET_SAVE_Click 3048 3008 */ 3049 PB_CONDET_SAVE_Click: PROCEDURE EXPOSE settings. options. Profile fs. cd. advanced. samba.3009 PB_CONDET_SAVE_Click: PROCEDURE EXPOSE settings. options. icons. Profile fs. cd. advanced. samba. 3050 3010 IF options.!debug == 1 THEN SAY time()' '||"PB_CONDET_SAVE_Click started" 3051 3011 … … 3072 3032 END 3073 3033 3074 CALL VRMethod 'CN_CONDET', 'GetRecordList', 'All', 'records.'3034 CALL VRMethod "CN_CONDET", 'GetRecordList', 'All', 'records.' 3075 3035 DO i = 1 TO records.0 3076 3036 resdata = "" … … 3110 3070 /*:VRX PB_CONNECT_Click 3111 3071 */ 3112 PB_CONNECT_Click: PROCEDURE EXPOSE settings. options. fs. advanced. cd. samba.3072 PB_CONNECT_Click: PROCEDURE EXPOSE settings. options. icons. fs. advanced. cd. samba. 3113 3073 IF options.!debug == 1 THEN SAY time()' '||"PB_CONNECT_Click started" 3114 3074 … … 3227 3187 /*:VRX PB_DETACH_Click 3228 3188 */ 3229 PB_DETACH_Click: PROCEDURE EXPOSE settings. options. fs. cd. samba.3189 PB_DETACH_Click: PROCEDURE EXPOSE settings. options. icons. fs. cd. samba. 3230 3190 IF options.!debug == 1 THEN SAY time()' '||"PB_DETACH_Click started" 3231 CALL VRMethod 'CN_CURRENT', 'GetRecordList', 'Selected', 'select.'3191 CALL VRMethod "CN_CURRENT", 'GetRecordList', 'Selected', 'select.' 3232 3192 IF select.0 < 1 THEN RETURN 3233 3193 3234 userdata = VRMethod( 'CN_CURRENT', 'GetRecordAttr', select.1, 'UserData')3194 userdata = VRMethod( "CN_CURRENT", 'GetRecordAttr', select.1, 'UserData') 3235 3195 PARSE VAR userdata mountpoint ';' mounts ';' . 3236 3196 drive = STRIP( mountpoint, 'T', '\') … … 3246 3206 /* Unmount any resources */ 3247 3207 DO i = 1 TO mounts 3248 dyn ="ok = "fs.!prefix"RxUnmount( mountpoint, i-1 )" 3249 IF options.!debug == 1 THEN SAY time()' '||dyn 3250 interpret dyn; drop dyn 3251 /* IF options.!debug == 1 THEN SAY time()' '||'Unmount resource' i-1 '=' ok */ 3208 CALL _Dynamic "ok = "fs.!prefix"RxUnmount( mountpoint, i-1 )" 3209 /* IF options.!debug == 1 THEN SAY time()' '||'Unmount resource' i-1 '=' ok */ 3252 3210 END 3253 3211 3254 dyn ="ok = "fs.!prefix"RxDetach( drive )" 3255 IF options.!debug == 1 THEN SAY time()' '||dyn 3256 interpret dyn; drop dyn 3257 /* IF options.!debug == 1 THEN SAY time()' '||'Detach' drive '=' ok */ 3212 CALL _Dynamic "ok = "fs.!prefix"RxDetach( drive )" 3213 /* IF options.!debug == 1 THEN SAY time()' '||'Detach' drive '=' ok */ 3258 3214 3259 3215 CALL Refresh … … 3270 3226 CALL VRSet "GB_CURRENT", "ENABLED", 1 3271 3227 ok = VRSet("PB_EDITCANCEL","Visible", 0) 3272 CALL NLVSetText 'DT_DIALOG', 'Caption', 133228 CALL NLVSetText 'DT_DIALOG', "Caption", 13 3273 3229 RETURN 0 3274 3230 … … 3287 3243 /*:VRX PB_LOAD_Click 3288 3244 */ 3289 PB_LOAD_Click: PROCEDURE EXPOSE settings. options. advanced. vfs. Profile fs. cd. samba.3245 PB_LOAD_Click: PROCEDURE EXPOSE settings. options. icons. advanced. vfs. Profile fs. cd. samba. 3290 3246 IF options.!autoload == 1 then filename = Profile 3291 3247 else filename = VRFileDialog('Main', NLVGetMessage( 55 ), 'L', '*.'fs.!profileext) … … 3372 3328 CALL PB_UNMOUNT_Click 3373 3329 options.!editmode = 0 3374 CALL NLVSetText 'DT_DIALOG', 'Caption', 133330 CALL NLVSetText 'DT_DIALOG', "Caption", 13 3375 3331 CALL VRSet "PB_UNMOUNT","Enabled", 1 3376 3332 CALL VRSet "PB_SAVE","Enabled", 1 … … 3514 3470 /*:VRX PB_REFRESH_Click 3515 3471 */ 3516 PB_REFRESH_Click: PROCEDURE EXPOSE settings. options. fs. samba. debuglevel advanced. UserCred Refreshmode3472 PB_REFRESH_Click: PROCEDURE EXPOSE settings. options. icons. fs. samba. debuglevel advanced. UserCred Refreshmode 3517 3473 IF options.!debug == 1 THEN SAY time()' '||"PB_REFRESH_Click started" 3518 3474 call _UserCredUpdate … … 3529 3485 /*:VRX PB_SAVE_Click 3530 3486 */ 3531 PB_SAVE_Click: PROCEDURE EXPOSE settings. options. Profile fs. cd. advanced. samba.3487 PB_SAVE_Click: PROCEDURE EXPOSE settings. options. icons. Profile fs. cd. advanced. samba. 3532 3488 call PB_CONDET_SAVE_Click 3533 3489 … … 3547 3503 END 3548 3504 3549 CALL VRMethod 'CN_CURRENT', 'GetRecordList', 'All', 'records.'3505 CALL VRMethod "CN_CURRENT", 'GetRecordList', 'All', 'records.' 3550 3506 DO i = 1 TO records.0 3551 data = VRMethod( 'CN_CURRENT', 'GetRecordAttr', records.i, 'UserData')3507 data = VRMethod("CN_CURRENT", 'GetRecordAttr', records.i, 'UserData') 3552 3508 IF data == '' THEN ITERATE 3553 3509 PARSE VAR data node ';' mounts ';' . 3554 dyn = "ok = "fs.!prefix"RxGetMount( node, 'info.', 'mounts.', 'resource.')" 3555 IF options.!debug == 1 THEN SAY time()' '||dyn 3556 interpret dyn; drop dyn 3557 3510 3511 CALL _Dynamic "ok = "fs.!prefix"RxGetMount( node, 'info.', 'mounts.', 'resource.')" 3558 3512 IF ok \= 0 THEN ITERATE 3559 3513 … … 3572 3526 */ 3573 3527 PB_SETTINGS_CANCEL_Click: 3574 3575 adv_changed = 03576 3528 CALL SW_SETTINGS_Close 3577 3578 3529 return 3579 3530 … … 3587 3538 */ 3588 3539 PB_SETTINGS_OK_Click: 3589 3590 adv_loglevel = VRGet( "SPIN_LOGLEVEL", "Value" ) 3591 adv_logfile = VRGet( "EF_LOGFILE", "Value" ) 3592 adv_browseauth = VRGet( "CB_BROWSEAUTH", "Set" ) 3593 adv_browseimme = VRGet( "CB_BROWSEIMME", "Set" ) 3594 adv_debug = VRGet( "CB_DEBUG", "Set" ) 3595 adv_special = VRGet( "CB_SPECIAL", "Set" ) 3596 adv_savepassive= VRGet( "CB_SAVEPASSIVE","Set" ) 3597 adv_broadcast = VRGet( "CB_BROADCAST", "Set" ) 3598 3599 adv_changed = 1 3600 if adv_debug == 1 then do 3540 advanced.!loglevel = VRGet("SPIN_LOGLEVEL", "Value" ) 3541 advanced.!logfile = VRGet("EF_LOGFILE", "Value" ) 3542 advanced.!browseauth = VRGet("CB_BROWSEAUTH", "Set" ) 3543 advanced.!browseimme = VRGet("CB_BROWSEIMME", "Set" ) 3544 advanced.!special = VRGet("CB_SPECIAL", "Set" ) 3545 advanced.!savepassive = VRGet("CB_SAVEPASSIVE","Set" ) 3546 advanced.!broadcast = VRGet("CB_BROADCAST", "Set" ) 3547 3548 options.!debug = VRGet("CB_DEBUG", "Set" ) 3549 3550 if options.!debug == 1 then do /* Turn on additional columns in connection details view */ 3601 3551 ok = VRRedirectStdio("ON") 3602 3552 ok = VRMethod("CN_CONDET", "SetFieldAttr", cd.mpidxfh , "Visible", 1) … … 3610 3560 ok = VRMethod("CN_CONDET", "SetFieldAttr", cd.hashfh , "Visible", 1) 3611 3561 end 3612 else do 3613 ok = VRRedirectStdio("OFF") 3562 else do /* Turn on additional columns in connection details view */ 3563 ok = VRRedirectStdio("OFF") 3614 3564 ok = VRMethod("CN_CONDET", "SetFieldAttr", cd.mpidxfh , "Visible", 0) 3615 3565 ok = VRMethod("CN_CONDET", "SetFieldAttr", cd.passwordfh , "Visible", 0) … … 3624 3574 3625 3575 CALL SW_SETTINGS_Close 3626 3627 3576 return 3628 3577 3629 3578 /*:VRX PB_UNMOUNT_Click 3630 3579 */ 3631 PB_UNMOUNT_Click: PROCEDURE EXPOSE settings. options. fs. cd. samba.3580 PB_UNMOUNT_Click: PROCEDURE EXPOSE settings. options. icons. fs. cd. samba. 3632 3581 IF options.!debug == 1 THEN SAY time()' '||"PB_UNMOUNT_Click started" 3633 3582 IF options.!debug == 1 THEN SAY time()' '||'options.!editmode = 'options.!editmode 3634 CALL VRMethod 'CN_CURRENT', 'GetRecordList', 'Selected', 'select.'3583 CALL VRMethod "CN_CURRENT", 'GetRecordList', 'Selected', 'select.' 3635 3584 IF select.0 < 1 THEN RETURN 3636 3585 3637 userdata = VRMethod( 'CN_CURRENT', 'GetRecordAttr', select.1, 'UserData')3586 userdata = VRMethod( "CN_CURRENT", 'GetRecordAttr', select.1, 'UserData') 3638 3587 PARSE VAR userdata mountpoint ';' mounts ';' . 3639 3588 say 'userdata="'userdata'"' … … 3648 3597 /* Unmount any resources */ 3649 3598 DO i = 1 TO mounts 3650 dyn ="ok = "fs.!prefix"RxUnmount( mountpoint, i-1 )" 3651 IF options.!debug == 1 THEN SAY time()' '||dyn 3652 interpret dyn; drop dyn 3653 3654 /* IF options.!debug == 1 THEN SAY time()' '||'Unmount resource' i-1 '=' ok */ 3599 CALL _Dynamic "ok = "fs.!prefix"RxUnmount( mountpoint, i-1 )" 3600 /* IF options.!debug == 1 THEN SAY time()' '||'Unmount resource' i-1 '=' ok */ 3655 3601 END 3656 3602 3657 3603 /* Delete mountpoint */ 3658 parent = VRMethod( 'CN_CURRENT', 'GetRecordAttr', select.1, 'Parent')3604 parent = VRMethod("CN_CURRENT", 'GetRecordAttr', select.1, 'Parent') 3659 3605 IF parent \= '' THEN DO 3660 dyn ="ok = "fs.!prefix"RxDeleteMountPoint( mountpoint )" 3661 IF options.!debug == 1 THEN SAY time()' '||dyn 3662 interpret dyn; drop dyn 3663 3664 /* IF options.!debug == 1 THEN SAY time()' '||'Delete mountpoint' mountpoint '=' ok */ 3606 CALL _Dynamic "ok = "fs.!prefix"RxDeleteMountPoint( mountpoint )" 3607 /* IF options.!debug == 1 THEN SAY time()' '||'Delete mountpoint' mountpoint '=' ok */ 3665 3608 END 3666 3609 … … 3684 3627 Refresh: 3685 3628 IF options.!debug == 1 THEN SAY time()' Refresh started' 3686 CALL VRSet 'CN_CURRENT', 'Painting', 03687 3688 CALL VRMethod 'CN_CURRENT', 'RemoveRecord', 'All'3629 CALL VRSet "CN_CURRENT", 'Painting', 0 3630 3631 CALL VRMethod "CN_CURRENT", 'RemoveRecord', 'All' 3689 3632 3690 3633 /* Remove Active connections from details view */ 3691 ok = VRMethod( 'CN_CONDET', "GetRecordList", 'All', "rh." )3634 ok = VRMethod( "CN_CONDET", "GetRecordList", 'All', "rh." ) 3692 3635 3693 3636 do I = 1 to rh.0 … … 3700 3643 end 3701 3644 IF options.!debug == 1 THEN say ' Icon.'i' = "'||VRMethod( "CN_CONDET", "GetFieldData", rh.i, cd.statusfh)'"' 3702 if VRMethod("CN_CONDET","GetFieldData", rh.i, cd.statusfh) = '#64:PMWP.DLL' then CALL VRMethod 'CN_CONDET', 'RemoveRecord', rh.i3645 if VRMethod("CN_CONDET","GetFieldData", rh.i, cd.statusfh) = icons.!active then CALL VRMethod "CN_CONDET", 'RemoveRecord', rh.i 3703 3646 end 3704 3647 … … 3722 3665 /* Herwig B. 3723 3666 CALL VRSet 'Main', 'StatusText', ' ' */ 3724 CALL VRSet 'CN_CURRENT', 'Caption', ' '3667 CALL VRSet "CN_CURRENT", "Caption", ' ' 3725 3668 /* Herwig B. */ 3726 3669 … … 3738 3681 3739 3682 CALL VRMethod "CB_DRIVES", "AddStringList", "drvstem." 3740 CALL VRSet 'CN_CURRENT', 'Painting', 13683 CALL VRSet "CN_CURRENT", 'Painting', 1 3741 3684 IF options.!debug == 1 THEN SAY time()' '||"Refresh done" 3742 3685 RETURN 0 … … 3744 3687 /*:VRX SaveSettings 3745 3688 */ 3746 SaveSettings: PROCEDURE EXPOSE settings. options. fs. advanced. cd. samba.3689 SaveSettings: PROCEDURE EXPOSE settings. options. icons. fs. advanced. cd. samba. 3747 3690 IF options.!debug == 1 THEN SAY time()' '||"SaveSettings started" 3748 3691 … … 3754 3697 */ 3755 3698 3756 font = VRGet( 'CN_CURRENT', 'Font')3699 font = VRGet("CN_CURRENT", 'Font') 3757 3700 CALL VRSetIni 'Settings', 'ContainerFont', font, settings.!ini, 'NoClose' 3758 3701 … … 3780 3723 CALL VRSetIni 'Settings', 'BrowseAuth', advanced.!browseauth , settings.!ini, 'NoClose' 3781 3724 CALL VRSetIni 'Settings', 'BrowseImme', advanced.!browseimme , settings.!ini, 'NoClose' 3782 CALL VRSetIni 'Settings', 'Debug', advanced.!debug , settings.!ini, 'NoClose'3783 3725 CALL VRSetIni 'Settings', 'AlwaysMP', advanced.!alwaysmp , settings.!ini, 'NoClose' 3784 3726 CALL VRSetIni 'Settings', 'SpecialShares', advanced.!special , settings.!ini, 'NoClose' … … 3786 3728 CALL VRSetIni 'Settings', 'SavePassive', advanced.!savepassive, settings.!ini, 'NoClose' 3787 3729 CALL VRSetIni 'Settings', 'Broadcast', advanced.!broadcast , settings.!ini, 'NoClose' 3730 3731 CALL VRSetIni 'Settings', 'Debug', options.!debug , settings.!ini, 'NoClose' 3788 3732 3789 3733 /* Save position and size */ … … 3850 3794 advanced.!savepassive= '' 3851 3795 advanced.!broadcast = '' 3852 advanced.!debug = ''3853 3796 advanced.!alwaysmp = '' 3854 3797 advanced.!special = '' … … 3857 3800 credentials.!username = "" 3858 3801 credentials.!password = "" 3802 3859 3803 UserCred = "" 3860 3804 RefreshMode = "" 3861 return 3862 3805 3806 icons.!bat = '#1:PMWP.DLL' 3807 icons.!cmd = '#2:PMWP.DLL' 3808 icons.!exe = '#3:PMWP.DLL' 3809 icons.!template = '#10:PMWP.DLL' 3810 icons.!drive = '#16:PMWP.DLL' 3811 icons.!defaultfile = '#24:PMWP.DLL' 3812 icons.!folder = '#26:PMWP.DLL' 3813 icons.!folder_open = '#34:PMWP.DLL' 3814 icons.!machine_sleeping = '#61:PMWP.DLL' 3815 icons.!active = '#64:PMWP.DLL' 3816 icons.!passive = '#68:PMWP.DLL' 3817 icons.!printer = '#65:PMWP.DLL' 3818 icons.!drive_inactive = '#70:PMWP.DLL' 3819 icons.!pdf = '#80' 3820 icons.!spreadsheet = '#82' 3821 icons.!textdocument = '#86' 3822 icons.!framework = '#87' 3823 icons.!image = '#88' 3824 icons.!movie = '#89' 3825 icons.!sound = '#90' 3826 icons.!warpin = '#91' 3827 icons.!zip = '#92' 3828 icons.!view = '#93' 3829 icons.!plaintext = '#94' 3830 return 3863 3831 /*:VRX SW_ABOUT_Close 3864 3832 */ … … 3872 3840 call SW_ABOUT_Init 3873 3841 3874 CALL NLVSetText 'SW_ABOUT', 'Caption', 13875 CALL NLVSetText 'PB_ABOUT_CLOSE', 'Caption', 293876 CALL NLVSetText 'PB_ABOUT_COPY', 'Caption', 1213842 CALL NLVSetText 'SW_ABOUT', "Caption", 1 3843 CALL NLVSetText 'PB_ABOUT_CLOSE', "Caption", 29 3844 CALL NLVSetText 'PB_ABOUT_COPY', "Caption", 121 3877 3845 3878 3846 ok = VRSEt("DT_About","Caption", 'EVFSGUI (c) 2007-2011 Alexander Taylor and Herwig Bauernfeind') … … 3990 3958 */ 3991 3959 SW_ADVANCED_Init: 3992 3993 CALL NLVSetText 'SW_ADVANCED', 'Caption', 40 3994 CALL NLVSetText 'GB_MISC', 'Caption', 43 3995 3996 CALL NLVSetText 'CB_EAS', 'Caption', 44 3997 CALL NLVSetText 'CB_READONLY', 'Caption', 45 3998 CALL NLVSetText 'CB_ALWAYSMP', 'Caption', 65 3999 4000 CALL NLVSetText 'PB_ADVOK', 'Caption', 2 4001 CALL NLVSetText 'PB_ADVCANCEL', 'Caption', 3 4002 CALL NLVSetText 'PB_ADVHELP', 'Caption', 4 3960 /* Title bar */ 3961 CALL NLVSetText "SW_ADVANCED", "Caption", 40 3962 3963 /* Options */ 3964 CALL NLVSetText "GB_MISC", "Caption", 43 3965 CALL NLVSetText "CB_EAS", "Caption", 44 3966 CALL NLVSetText "CB_READONLY", "Caption", 45 3967 CALL NLVSetText "CB_ALWAYSMP", "Caption", 65 3968 3969 /* Buttons */ 3970 CALL NLVSetText "PB_ADVOK", "Caption", 2 3971 CALL NLVSetText "PB_ADVCANCEL", "Caption", 3 3972 CALL NLVSetText "PB_ADVHELP", "Caption", 4 3973 CALL NLVSetText "GB_MEM", "Caption", 41 /* Obsolete */ 4003 3974 4004 3975 CALL VRSet "SW_ADVANCED", "HelpTag", NLVGetMessage(40) 4005 3976 4006 /* Obsolete */ 4007 CALL NLVSetText 'GB_MEM', 'Caption', 41 4008 4009 IF advanced.!memlen \= '' THEN 4010 CALL VRSet 'SPB_MEMLEN', 'Value', advanced.!memlen 4011 IF advanced.!easupport \= '' THEN 4012 CALL VRSet 'CB_EAS', 'Set', advanced.!easupport 4013 IF advanced.!readonly \= '' THEN 4014 CALL VRSet 'CB_READONLY', 'Set', advanced.!readonly 4015 IF advanced.!alwaysmp \= '' THEN 4016 CALL VRSet 'CB_alwaysmp', 'Set', advanced.!alwaysmp 4017 4018 window = VRInfo( "Object" ) 4019 if( \VRIsChildOf( window, "Notebook" ) ) then do 4020 call VRMethod window, "CenterWindow" 4021 call VRSet window, "Visible", 1 4022 call VRMethod window, "Activate" 4023 end 4024 drop window 3977 IF advanced.!memlen \= "" THEN ok = VRSet("SPB_MEMLEN", "Value", advanced.!memlen) 3978 IF advanced.!easupport \= "" THEN ok = VRSet("CB_EAS", "Set", advanced.!easupport) 3979 IF advanced.!readonly \= "" THEN ok = VRSet("CB_READONLY","Set", advanced.!readonly) 3980 IF advanced.!alwaysmp \= "" THEN ok = VRSet("CB_ALWAYSMP","Set", advanced.!alwaysmp) 3981 3982 call VRMethod "SW_ADVANCED", "CenterWindow" 3983 ok = VRSet("SW_ADVANCED", "Visible", 1) 3984 call VRMethod "SW_ADVANCED", "Activate" 4025 3985 return 4026 3986 … … 4035 3995 SW_INFO_Create: 4036 3996 call SW_INFO_Init 4037 CALL NLVSetText 'SW_INFO', 'Caption', 924038 CALL NLVSetText 'PB_INFO_OK', 'Caption', 23997 CALL NLVSetText 'SW_INFO', "Caption", 92 3998 CALL NLVSetText 'PB_INFO_OK', "Caption", 2 4039 3999 4040 4000 Info.TypeFH = VRMethod( "CN_INFO", "AddField", "String", "Type" ) … … 4083 4043 SW_LOGIN_Create: 4084 4044 call SW_LOGIN_Init 4085 CALL NLVSetText 'DT_USER1', 'Caption', 254086 CALL NLVSetText 'DT_PASSWORD1', 'Caption', 264087 CALL NLVSetText 'PB_LOGIN_OK', 'Caption', 24088 CALL NLVSetText 'PB_LOGIN_CANCEL', 'Caption', 34045 CALL NLVSetText 'DT_USER1', "Caption", 25 4046 CALL NLVSetText 'DT_PASSWORD1', "Caption", 26 4047 CALL NLVSetText 'PB_LOGIN_OK', "Caption", 2 4048 CALL NLVSetText 'PB_LOGIN_CANCEL',"Caption", 3 4089 4049 ok = VRSet("EF_USER1","Value",VRGet("EF_USER","Value")) 4090 4050 ok = VRSet("EF_PASSWORD1","Value",VRGet("EF_PASSWORD","Value")) … … 4136 4096 /* NLVGetMessage(14)' ' */ 4137 4097 ok = VRSet("SW_MOUNTPOINT","Caption",strip(p_workgroup' \\'p_server'\'p_share,'T','\')) 4138 CALL NLVSetText 'DT_MPOINT1', 'Caption', 274139 CALL NLVSetText 'PB_NEWMOUNTPOINTOK', 'Caption', 24140 CALL NLVSetText 'PB_NEWMOUNTPOINTCANCEL', 'Caption', 34141 CALL NLVSetText 'CB_EAS1', 'Caption', 444142 CALL NLVSetText 'CB_READONLY1', 'Caption', 454143 CALL NLVSetText 'CB_ALWAYSMP1', 'Caption', 654098 CALL NLVSetText 'DT_MPOINT1', "Caption", 27 4099 CALL NLVSetText 'PB_NEWMOUNTPOINTOK', "Caption", 2 4100 CALL NLVSetText 'PB_NEWMOUNTPOINTCANCEL',"Caption", 3 4101 CALL NLVSetText 'CB_EAS1', "Caption", 44 4102 CALL NLVSetText 'CB_READONLY1', "Caption", 45 4103 CALL NLVSetText 'CB_ALWAYSMP1', "Caption", 65 4144 4104 ok = VRMethod( "CB_DRIVES", "GetStringList", "freedrives." ) 4145 4105 ok = VRMethod( "CB_DRIVES1", "AddStringList", "freedrives." ) … … 4182 4142 SW_PROGRESS_Create: 4183 4143 call SW_PROGRESS_Init 4184 CALL NLVSetText 'SW_PROGRESS', 'Caption', 14185 CALL NLVSetText 'DT_PROGRESS', 'Caption', 344186 CALL NLVSetText 'PB_PROGRESS_ABORT', 'Caption', 34144 CALL NLVSetText 'SW_PROGRESS', "Caption", 1 4145 CALL NLVSetText 'DT_PROGRESS', "Caption", 34 4146 CALL NLVSetText 'PB_PROGRESS_ABORT', "Caption", 3 4187 4147 4188 4148 if options.!delay > 0 then ok = VRSet("TM_TheCloser","Delay", options.!delay*1000) … … 4227 4187 */ 4228 4188 SW_SETTINGS_Init: 4229 4230 CALL NLVSetText 'SW_SETTINGS', 'Caption', 47 4231 4232 CALL NLVSetText 'GB_GLOBAL', 'Caption', 47 4233 CALL NLVSetText 'CB_DEBUG', 'Caption', 42 4234 CALL NLVSetText 'CB_LOGGING', 'Caption', 46 4235 CALL NLVSetText 'CB_BROWSEIMME', 'Caption', 48 4236 CALL NLVSetText 'CB_BROWSEAUTH', 'Caption', 49 4237 CALL NLVSetText 'CB_SPECIAL', 'Caption', 66 4238 CALL NLVSetText 'CB_SAVEPASSIVE','Caption', 73 4239 CALL NLVSetText 'CB_BROADCAST', 'Caption', 74 4240 4241 CALL NLVSetText 'PB_SETTINGS_OK', 'Caption', 2 4242 CALL NLVSetText 'PB_SETTINGS_CANCEL', 'Caption', 3 4243 CALL NLVSetText 'PB_SETTINGS_HELP', 'Caption', 4 4244 4245 /* CALL VRSet "SW_ADVANCED", "HelpTag", NLVGetMessage(40) */ 4246 4247 IF advanced.!logfile \= '' THEN 4248 CALL VRSet 'EF_LOGFILE', 'Value', advanced.!logfile 4249 IF advanced.!loglevel \= '0' THEN 4250 CALL VRSet 'SPIN_LOGLEVEL', 'Value', advanced.!loglevel 4251 CALL VRSet 'CB_LOGGING', 'Set', VRFileExists(SysBootDrive()'\ndpsmb.dbg') 4252 IF advanced.!browseauth \= '' THEN 4253 CALL VRSet 'CB_BROWSEAUTH', 'Set', advanced.!browseauth 4254 IF advanced.!browseimme \= '' THEN 4255 CALL VRSet 'CB_BROWSEimme', 'Set', advanced.!browseimme 4256 IF advanced.!debug \= '' THEN 4257 CALL VRSet 'CB_debug', 'Set', advanced.!debug 4258 IF advanced.!special \= '' THEN 4259 CALL VRSet 'CB_SPECIAL', 'Set', advanced.!special 4260 IF advanced.!savepassive \= '' THEN 4261 CALL VRSet 'CB_SAVEPASSIVE', 'Set', advanced.!savepassive 4262 IF advanced.!broadcast \= '' THEN 4263 CALL VRSet 'CB_BROADCAST', 'Set', advanced.!broadcast 4264 4265 window = VRInfo( "Object" ) 4266 if( \VRIsChildOf( window, "Notebook" ) ) then do 4267 call VRMethod window, "CenterWindow" 4268 call VRSet window, "Visible", 1 4269 call VRMethod window, "Activate" 4270 end 4271 drop window 4189 /* Title bar */ 4190 call NLVSetText "SW_SETTINGS", "Caption", 47 4191 4192 /* Options */ 4193 call NLVSetText "GB_GLOBAL", "Caption", 47 4194 call NLVSetText "CB_DEBUG", "Caption", 42 4195 call NLVSetText "CB_LOGGING", "Caption", 46 4196 call NLVSetText "CB_BROWSEIMME", "Caption", 48 4197 call NLVSetText "CB_BROWSEAUTH", "Caption", 49 4198 call NLVSetText "CB_SPECIAL", "Caption", 66 4199 call NLVSetText "CB_SAVEPASSIVE", "Caption", 73 4200 call NLVSetText "CB_BROADCAST", "Caption", 74 4201 4202 /* Buttons */ 4203 call NLVSetText "PB_SETTINGS_OK", "Caption", 2 4204 call NLVSetText "PB_SETTINGS_CANCEL","Caption", 3 4205 call NLVSetText "PB_SETTINGS_HELP", "Caption", 4 4206 4207 /* call VRSet "SW_ADVANCED", "HelpTag", NLVGetMessage(40) */ 4208 4209 /* Init GUI from status variables */ 4210 call VRSet "CB_LOGGING", "Set", VRFileExists(SysBootDrive()"\ndpsmb.dbg") 4211 if advanced.!logfile \= "" then ok = VRSet("EF_LOGFILE", "Value", advanced.!logfile) 4212 if advanced.!loglevel \= "0" then ok = VRSet("SPIN_LOGLEVEL", "Value", advanced.!loglevel) 4213 if advanced.!browseauth \= "" then ok = VRSet("CB_BROWSEAUTH", "Set", advanced.!browseauth) 4214 if advanced.!browseimme \= "" then ok = VRSet("CB_BROWSEIMME", "Set", advanced.!browseimme) 4215 if advanced.!special \= "" then ok = VRSet("CB_SPECIAL", "Set", advanced.!special) 4216 if advanced.!savepassive \= "" then ok = VRSet("CB_SAVEPASSIVE","Set", advanced.!savepassive) 4217 if advanced.!broadcast \= "" then ok = VRSet("CB_BROADCAST", "Set", advanced.!broadcast) 4218 4219 if options.!debug \= "" then ok = VRSet("CB_debug", "Set", options.!debug) 4220 4221 call VRMethod "SW_SETTINGS", "CenterWindow" 4222 ok = VRSet("SW_SETTINGS", "Visible", 1) 4223 call VRMethod "SW_SETTINGS", "Activate" 4272 4224 return 4273 4225 … … 4306 4258 if VRget("Menu_View_SmbTree", "Checked") then do 4307 4259 if smbtree.!workgroup <> 'SMBTREE.!WORKGROUP' then do 4308 ok = VRset("Menu_Selected_Connect", "Visible", VRMethod("CN_S mbTree", "ValidateRecord", smbtree.!workgroup ) )4260 ok = VRset("Menu_Selected_Connect", "Visible", VRMethod("CN_SMBTREE", "ValidateRecord", smbtree.!workgroup ) ) 4309 4261 end 4310 4262 end … … 4333 4285 ok = VRSet("Pict_Throbber","PicturePath","#"pidx) 4334 4286 return 4287
Note:
See TracChangeset
for help on using the changeset viewer.