- Timestamp:
- Sep 7, 2009, 3:05:52 PM (16 years ago)
- Location:
- branches/guitools-2.0
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/guitools-2.0/evfsgui/changes
r326 r327 25 25 - Added: Optionally turn on/off special ($) shares 26 26 - Added: Optionally use big icons 27 - Added: Profile files may be dropped onto the current connections container 27 28 - Changed: Several changes in GUI style (as suggested by Alex Taylor) 28 29 - Changed: Left align buttons in current connections panel (as suggested by … … 33 34 - Changed: Use PM_Default_Colors for title sections (as suggested by Alex Taylor) 34 35 - Changed: German translation of "Retry" 36 - Changed: Profile behaviour: In 1.3 a new profile replaced older connections 37 on the same volume only, in 2.x a new profile is merged with the 38 old connections one. 35 39 - Fixed: Loading a profile presented the user a half drawn window 40 - Fixed: Startup code if no evfsgui.ini is present 36 41 - Fixed: CltInit uses smbclient.exe instead of smbd.exe to find Samba binaries 37 42 - Fixed: Message queue during resize isn't cleared (no flashing during resize) … … 42 47 - Fixed: Edit and Selected menu easily got out of sync 43 48 - Fixed: Another missing record validation 49 - Fixed: Password display broken on double connection warning 44 50 45 51 ToDo: -
branches/guitools-2.0/evfsgui/evfsgui.RC
r316 r327 26 26 BITMAP 34 eBall_24.bmp 27 27 BITMAP 35 eBall_25.bmp 28 icon 68 passive.ico -
branches/guitools-2.0/evfsgui/evfsgui.VRP
r326 r327 4 4 MacroPath: VRM: U:\Develop\Samba\guitools-2.0\smbclgui 5 5 EXEPath: 6 RunParameters: -ndfs6 RunParameters: 7 7 RunDirectory: 8 8 VRXWindow: __VREMainWindow,1,530,2457,879,4071 9 9 VRXWindow: __VRESectionListWindow,1,337,11708,11623,3686 10 VRXWindow: __VREToolsWindow,1,518,530,69 84,166310 VRXWindow: __VREToolsWindow,1,518,530,6993,1665 11 11 VRXWindow: __VREWindListWindow,1,482,7661,2650,3150 12 12 UserFile: 1 13 13 UserWindow: Main,1 14 UserWindow: SW_ADVANCED,1 -
branches/guitools-2.0/evfsgui/evfsgui.VRX
r326 r327 280 280 if VRMethod( 'CN_CONDET', "ValidateRecord", rh) <> 1 then return 281 281 282 /* This is the place to enable specific context menu entries */ 283 ok = VRMethod( "CN_CONDET", "GetRecordList", "All", "records." ) 284 ok = VRSet("Menu_Selected_Remove", "Visible", (records.0 <> 0)) 285 ok = VRSet("Menu_Selected_Retry", "Visible", (records.0 <> 0)) 286 282 287 if VRMethod( 'CN_CONDET', "GetFieldData", rh, CD.StatusFH) = '#68:PMWP.DLL' then do 283 288 ok = VRSet("Menu_Selected_Retry", "Enabled",1) … … 291 296 292 297 obj = VRInfo( "object" ) 293 ok = VRMethod( "CN_ SMBTREE", "GetRecordList", "SourceOrSelected", "selrec." )298 ok = VRMethod( "CN_CONDET", "GetRecordList", "SourceOrSelected", "selrec." ) 294 299 if selrec.0 = 0 then return 295 300 296 Icon = VRMethod("CN_ SMBTREE", "GetRecordAttr", selrec.1, "Icon")301 Icon = VRMethod("CN_CONDET", "GetRecordAttr", selrec.1, "Icon") 297 302 298 303 if Icon = "#65:PMWP.DLL" then do /* Printers not supported at the moment */ … … 460 465 p_share = '' 461 466 462 srcCtn = VRInfo( "SourceObject" ) 463 srcRec = VRInfo( "SourceRecord" ) 464 trgCtn = VRInfo( "TargetObject" ) 465 trgRec = VRInfo( "TargetRecord" ) 467 srcFile = VRInfo( "SourceFile" ) 468 srcCtn = VRInfo( "SourceObject" ) 469 srcRec = VRInfo( "SourceRecord" ) 470 trgCtn = VRInfo( "TargetObject" ) 471 trgRec = VRInfo( "TargetRecord" ) 472 473 say "srcFile = '"srcFile"'" 474 say "srcCtn = '"srcCtn"'" 475 say "srcRec = '"srcRec"'" 476 say "TrgCtn = '"trgCtn"'" 477 say "TrgRec = '"trgRec"'" 478 479 if srcFile <> "" then do /* A file was dropped onto the conatainer - load it */ 480 if translate(VRParseFileName(srcFile,'E')) <> translate(fs.!profileext) then do 481 buttons.0 = 1 482 buttons.1 = NLVGetMessage(9) 483 ok = VRMessage('Main', "TITEL" , "TEXT", 'E','buttons.') 484 end 485 else do 486 options.!autoload = 1 487 Profile = srcFile 488 call PB_LOAD_Click 489 end 490 return 491 end 492 493 say VRGet(srcCtn,'Name') 466 494 467 495 ok = VRMethod("CB_MOUNT", "GetStringList", "ShareLevels." ) 468 469 say VRGet(srcCtn,'Name')470 say "TargetRecord = '"trgRec"'"471 496 472 497 if VRGet(srcCtn,'Name') = "CN_CONDET" then do … … 606 631 return 607 632 end 633 634 /* This is the place to enable specific context menu entries */ 608 635 609 636 ok = VRMethod( "Menu_Selected", "Popup", , , "", "" ) … … 831 858 /*:VRX LoadSettings 832 859 */ 833 LoadSettings: PROCEDURE EXPOSE settings. options. fs. advanced. samba. ShowHidden 860 LoadSettings: PROCEDURE EXPOSE settings. options. fs. advanced. samba. ShowHidden FWidth 834 861 IF options.!debug == 1 THEN SAY time()' '||'LoadSettings started' 835 862 … … 842 869 settings.!ini = inipath'\evfsgui.ini' 843 870 IF STREAM( settings.!ini, 'C', 'QUERY EXISTS') == '' THEN DO 871 say "First start!" 872 settings.!network = "" 873 settings.!buttonson = 1 874 settings.!smbtreeon = 1 875 advanced.!browseimme = 1 876 877 ShowHidden = 0 878 879 CALL VRSet VRWindow(), 'Height', 7576 880 CALL VRSet VRWindow(), 'Width', 8200 881 CALL VRSet "SPLIT_MAIN", 'Left', 2915 844 882 CALL VRMethod VRWindow(), 'CenterWindow' 845 settings.!network = "" 883 call Menu_View_Buttons_Click 884 call Menu_View_SmbTree_Click 885 ok = VRset("GB_SMBTREE","Painting", 1) 886 ok = VRset("GB_SMBTREE","Visible", 1) 887 888 call VRSet 'Main', 'Visible', 1 889 call Main_Resize 846 890 END 847 891 ELSE DO … … 883 927 settings.!network = VRGetIni('Settings', 'Network', settings.!ini, 'NoClose') 884 928 IF settings.!network == '' THEN settings.!network = '' */ 929 settings.!network = '' 885 930 886 931 if \VRFileExists( samba.!smbconf ) then call _CreateSmbConf … … 897 942 898 943 advanced.!browseimme = VRGetIni('Settings', 'BrowseImme', settings.!ini) 899 IF advanced.!browseimme == '' THEN advanced.!browseimme = 0944 IF advanced.!browseimme == '' THEN advanced.!browseimme = 1 900 945 901 946 advanced.!debug = VRGetIni('Settings', 'Debug', settings.!ini) … … 922 967 ok = VRSet("DT_CURRENT","BACKCOLOR", settings.!curbcolor ) 923 968 ok = VRSet("DT_CURRENT","FORECOLOR", settings.!curfcolor ) 924 ok = VRSet("DT_DIALOG","BACKCOLOR", settings.!curbcolor )925 ok = VRSet("DT_DIALOG","FORECOLOR", settings.!curfcolor )969 ok = VRSet("DT_DIALOG","BACKCOLOR", settings.!curbcolor ) 970 ok = VRSet("DT_DIALOG","FORECOLOR", settings.!curfcolor ) 926 971 ok = VRSet("DT_SMBTREE","BACKCOLOR", settings.!curbcolor ) 927 972 ok = VRSet("DT_SMBTREE","FORECOLOR", settings.!curfcolor ) … … 1382 1427 settings.!buttonson = 1 1383 1428 end 1429 1384 1430 ok = VRSet("Main","Height", VRGet("GB_CURRENT", "Height") +920 +FWidth +options.!buttondelta) 1385 1431 return … … 1401 1447 ok = VRSet("Menu_View_ConDet", "Checked", 1) 1402 1448 1403 ok = VRMethod( "CN_CONDET", "GetRecordList", "All", "records." ) 1404 ok = VRSet("Menu_Selected_Remove", "Visible", (records.0 <> 0)) 1405 ok = VRSet("Menu_Selected_Retry", "Visible", (records.0 <> 0)) 1406 ok = VRSet("Menu_Selected_Connect", "Visible", 0) 1449 /* Hide any "foreign" menu entries */ 1450 ok = VRSet("Menu_Selected_Connect", "Visible", 0) 1407 1451 return 1408 1452 … … 1445 1489 ok = VRSet("Menu_View_SmbTree","Checked", 1) 1446 1490 1447 ok = VRSet("Menu_Selected_Remove", "Visible", 0) 1448 ok = VRSet("Menu_Selected_Retry", "Visible", 0) 1449 1450 ok = VRSet("Menu_Selected_Connect", "Visible", 1) 1491 /* Hide any "foreign" menu entries */ 1492 ok = VRSet("Menu_Selected_Remove", "Visible", 0) 1493 ok = VRSet("Menu_Selected_Retry", "Visible", 0) 1451 1494 return 1452 1495 … … 1458 1501 call VRSet VRWindow(), 'Pointer', 'Wait' 1459 1502 1460 /* Attach the virtual drive */ 1503 /* Disabled because we merge profile now - in earlier revisions 1504 we replaced it but only for preexisting drives - this made only 1505 as long as we were unabled to detect double connections - this could be made an option! 1461 1506 IF options.!autoload then do 1462 1507 dyn = "ok = "fs.!prefix"RxDetach(vfs.!drive)" … … 1465 1510 1466 1511 IF options.!debug == 1 THEN SAY time()' '||'Autoload Detach "'vfs.!drive'" =' ok 1467 end 1468 /* Only if drive is not already attached */ 1512 end */ 1513 1514 /* Attach the virtual drive - only if drive is not already attached */ 1469 1515 if pos(vfs.!drive,MyFreeDriveMap("C:","FREE")) > 0 then do 1470 1516 dyn = "ok = "fs.!prefix"RxAttach( vfs.!drive )" 1471 1517 IF options.!debug == 1 THEN SAY time()' '||dyn 1472 interpret dyn; drop dyn 1518 1519 interpret dyn; drop dyn 1473 1520 1474 1521 IF options.!debug == 1 THEN SAY time()' '||'Attach "'vfs.!drive'" =' ok … … 1521 1568 hash = VRMethod("CN_CONDET","GetFieldData", records.i, cd.hashfh) 1522 1569 if hash = md5 & VRMethod("CN_CONDET","GetFieldData", records.i, cd.statusfh) = '#64:PMWP.DLL' then do /* Same hash, status active */ 1570 say "Double connection deteced!!" 1571 if options.!spassword <> "" then upw = ":********" 1572 else upw = "" 1523 1573 buttons.0 = 2 1524 1574 buttons.1 = NLVGetMessage(9) 1525 1575 buttons.2 = NLVGetMessage(3) 1526 Answer = VRMessage('Main',NLVGetMessage(64) , NLVGetMessage( 36, 1576 Answer = VRMessage('Main',NLVGetMessage(64) , NLVGetMessage( 36,options.!user||upw'@'options.!workgroup'\\'options.!server'\'options.!share, vfs.!mountpoint ), 'W','buttons.') 1527 1577 if Answer = 2 then do 1528 1578 call VRSet VRWindow(), 'Pointer', '<default>' 1579 say "Double connection - do not mount!!" 1529 1580 return 1530 1581 end … … 2439 2490 call _UserCredUpdate 2440 2491 ok = VRset("Pict_Throbber", "Visible", 1) 2492 ok = VRset("Menu_Selected_Connect", "Visible", 0) 2441 2493 ok = VRset("TM_Throbber", "Enabled", 1) 2442 2494 ShowHidden = advanced.!special … … 2921 2973 ShowHidden = advanced.!special 2922 2974 call _RefreshTreeDisplay 2975 if VRget("Menu_View_SmbTree", "Checked") then do 2976 if smbtree.!workgroup <> 'SMBTREE.!WORKGROUP' then do 2977 ok = VRset("Menu_Selected_Connect", "Visible", VRMethod("CN_SmbTree", "ValidateRecord", smbtree.!workgroup ) ) 2978 end 2979 end 2923 2980 return 2924 2981 -
branches/guitools-2.0/shared/smbtree.vrs
r325 r327 12 12 end 13 13 14 if ShowHidden = 'SHOWHIDDEN' | ShowHidden = '' then ShowHidden = 114 if ShowHidden = 'SHOWHIDDEN' | ShowHidden = '' then ShowHidden = 0 15 15 16 16 say 'detach 'samba.!smbtreeexe' 'debuglevel' 'UserCred' >'samba.!msg … … 31 31 stat = stream(samba.!msg,'c','open read') 32 32 if stat <> "READY:" then return 33 34 if ShowHidden = 'SHOWHIDDEN' | ShowHidden = '' then ShowHidden = 0 33 35 34 36 ok = VRset("TM_RefreshTreeDisplay","Enabled",0)
Note:
See TracChangeset
for help on using the changeset viewer.