- Timestamp:
- Jan 5, 2011, 6:18:48 PM (15 years ago)
- Location:
- branches/guitools-2.0/evfsgui
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/guitools-2.0/evfsgui/changes
r509 r511 12 12 to work properly 13 13 14 Version 2.1 beta3 14 Version 2.1 beta3 2011-XX-XX 15 - Fixed: Behaviour of login box did not work as designed 16 - Fixed: No mount attempt if entering credentials was aborted 17 - Fixed: Do not crash during "Detach all" 15 18 - Refactoring: Create Icon. stem in order to ease maintenance of icons 16 19 - Refactoring: Common wrapper around all dynamic functions -
branches/guitools-2.0/evfsgui/evfsgui.VRP
r509 r511 10 10 VRXWindow: __VREFileListWindow,1,807,11033,1590,3358 11 11 VRXWindow: __VRESectionListWindow,1,2674,10648,8696,4794 12 VRXWindow: __VREToolsWindow,1,2517,7082,648 0,166912 VRXWindow: __VREToolsWindow,1,2517,7082,6486,1661 13 13 VRXWindow: __VREWindListWindow,1,542,8721,2650,3150 14 14 UserFile: 1 15 15 UserWindow: Main,1 16 UserWindow: SW_ SETTINGS,116 UserWindow: SW_LOGIN,1 -
branches/guitools-2.0/evfsgui/evfsgui.VRX
r509 r511 1194 1194 end 1195 1195 window = VRLoadSecondary( "SW_LOGIN", "W" ) 1196 call PB_MOUNT_CLICK1196 if credentials.!entered = 1 then call PB_MOUNT_CLICK 1197 1197 1198 1198 if VRGet(srcCtn,'Name') = "CN_CONDET" & VRMethod( "CN_CONDET", "ValidateRecord", srcRec) = 1 then do … … 1367 1367 */ 1368 1368 EF_PASSWORD1_KeyPress: 1369 IF options.!debug == 1 THEN SAY time()' EF_PASSWORD1_KeyPress started' 1369 1370 obj = VRInfo( "Object" ) 1370 1371 keystr = VRGet( obj, "KeyString" ) … … 1376 1377 otherwise nop 1377 1378 end 1379 IF options.!debug == 1 THEN SAY time()' EF_PASSWORD1_KeyPress done' 1378 1380 return 1379 1381 … … 1455 1457 */ 1456 1458 EF_USER1_KeyPress: 1459 IF options.!debug == 1 THEN SAY time()' EF_USER1_KeyPress started' 1457 1460 obj = VRInfo( "Object" ) 1458 1461 keystr = VRGet( obj, "KeyString" ) 1459 /* say keystr */ 1462 say keystr 1460 1463 select 1461 1464 when keystr = "{Enter}" then ok = VRMethod( "EF_Password1", "SetFocus" ) … … 1464 1467 otherwise nop 1465 1468 end 1469 IF options.!debug == 1 THEN SAY time()' EF_USER1_KeyPress done' 1466 1470 return 1467 1471 … … 2413 2417 IF confirm \= 1 THEN RETURN 2414 2418 2415 CALL _Dynamic "ok = "fs.!prefix"RxUnmount( mountpoint, mpidx)"2419 CALL _Dynamic "ok = "fs.!prefix"RxUnmount('"mountpoint"', "mpidx")" 2416 2420 CALL VRMethod "CN_CONDET", 'RemoveRecord', selrec.I 2417 2421 CALL Refresh … … 2580 2584 2581 2585 IF options.!autoload then do 2582 CALL _Dynamic "ok = "fs.!prefix"RxDetach( vfs.!drive)"2586 CALL _Dynamic "ok = "fs.!prefix"RxDetach('"vfs.!drive"')" 2583 2587 IF options.!debug == 1 THEN SAY time()' '||'Autoload Detach "'vfs.!drive'" =' ok 2584 2588 end */ … … 2586 2590 /* Attach the virtual drive - only if drive is not already attached */ 2587 2591 if pos(vfs.!drive,MyFreeDriveMap("C:","FREE")) > 0 then do 2588 CALL _Dynamic "ok = "fs.!prefix"RxAttach( vfs.!drive)"2592 CALL _Dynamic "ok = "fs.!prefix"RxAttach('"vfs.!drive"')" 2589 2593 2590 2594 IF options.!debug == 1 THEN SAY time()' '||'Attach "'vfs.!drive'" =' ok … … 2592 2596 2593 2597 /* Create the mount point and store whether it was created or already existed */ 2594 CALL _Dynamic "CreateMP = "fs.!prefix"RxCreateMountPoint( vfs.!mountpoint)"2598 CALL _Dynamic "CreateMP = "fs.!prefix"RxCreateMountPoint('"vfs.!mountpoint"')" 2595 2599 2596 2600 IF options.!debug == 1 THEN SAY time()' '||'Create "'vfs.!mountpoint'" = 'CreateMP … … 2663 2667 2664 2668 /* Now mount the resource */ 2665 CALL _Dynamic "ok = "fs.!prefix"RxMount(' smbfs', vfs.!mountpoint, src, rwFlag)"2669 CALL _Dynamic "ok = "fs.!prefix"RxMount('SMBFS','"vfs.!mountpoint"', '"src"', '"rwFlag"')" 2666 2670 2667 2671 IF options.!debug == 1 THEN SAY time()' '||'Mount "'vfs.!mountpoint'" =' ok … … 2684 2688 /* In case the mountpoint was created for this failed operation, it is (optionally) removed again */ 2685 2689 if CreateMP = 0 & advanced.!alwaysmp <> 1 then do 2686 CALL _Dynamic "ok = "fs.!prefix"RxDeleteMountPoint( vfs.!mountpoint)"2690 CALL _Dynamic "ok = "fs.!prefix"RxDeleteMountPoint('"vfs.!mountpoint"')" 2687 2691 IF options.!debug == 1 THEN SAY time()' '||'Remove "'vfs.!mountpoint'" = 'ok 2688 2692 end … … 3179 3183 3180 3184 window = VRLoadSecondary( "SW_LOGIN", "W" ) 3181 3182 call PB_MOUNT_CLICK 3185 if credentials.!entered = 1 then call PB_MOUNT_CLICK 3183 3186 3184 3187 IF options.!debug == 1 THEN SAY time()' '||"PB_CONNECT_Click done" … … 3202 3205 IF confirm \= 1 THEN RETURN 3203 3206 3204 /* TODO: ?? Unmount & delete all child mountpoints? */ 3205 3206 /* Unmount any resources */ 3207 DO i = 1 TO mounts 3208 CALL _Dynamic "ok = "fs.!prefix"RxUnmount( mountpoint, i-1 )" 3209 /* IF options.!debug == 1 THEN SAY time()' '||'Unmount resource' i-1 '=' ok */ 3210 END 3211 3212 CALL _Dynamic "ok = "fs.!prefix"RxDetach( drive )" 3213 /* IF options.!debug == 1 THEN SAY time()' '||'Detach' drive '=' ok */ 3207 /* TODO: ?? Unmount & delete all child mountpoints? - Do we need this? */ 3208 /* FIXME: This is potentially dangerous on Netdrive - what happens with unknown mount types? */ 3209 /* FIXME: Unclear under which circumstances we have an alpha value here (which crahed EVFSGUI) */ 3210 if datatype(mounts) = 'NUM' then do 3211 /* Unmount any resources */ 3212 DO i = 1 TO mounts 3213 CALL _Dynamic "ok = "fs.!prefix"RxUnmount('"mountpoint"', "i-1")" 3214 END 3215 end 3216 else IF options.!debug == 1 THEN SAY ' '||"mounts = "mounts 3217 3218 CALL _Dynamic "ok = "fs.!prefix"RxDetach('"drive"')" 3214 3219 3215 3220 CALL Refresh … … 3307 3312 */ 3308 3313 PB_LOGIN_CANCEL_Click: 3314 credentials.!entered = 0 3309 3315 call SW_LOGIN_Close 3310 RETURN 03316 RETURN 3311 3317 3312 3318 /*:VRX PB_LOGIN_OK_Click … … 3315 3321 ok = VRSet("EF_USER","Value",VRGet("EF_USER1","Value")) 3316 3322 ok = VRSet("EF_PASSWORD","Value",VRGet("EF_PASSWORD1","Value")) 3323 credentials.!entered = 1 3317 3324 3318 3325 call SW_LOGIN_Close … … 3597 3604 /* Unmount any resources */ 3598 3605 DO i = 1 TO mounts 3599 CALL _Dynamic "ok = "fs.!prefix"RxUnmount( mountpoint, i-1 )" 3600 /* IF options.!debug == 1 THEN SAY time()' '||'Unmount resource' i-1 '=' ok */ 3606 CALL _Dynamic "ok = "fs.!prefix"RxUnmount('"mountpoint"', "i-1")" 3601 3607 END 3602 3608 … … 3604 3610 parent = VRMethod("CN_CURRENT", 'GetRecordAttr', select.1, 'Parent') 3605 3611 IF parent \= '' THEN DO 3606 CALL _Dynamic "ok = "fs.!prefix"RxDeleteMountPoint( mountpoint )" 3607 /* IF options.!debug == 1 THEN SAY time()' '||'Delete mountpoint' mountpoint '=' ok */ 3612 CALL _Dynamic "ok = "fs.!prefix"RxDeleteMountPoint('"mountpoint"')" 3608 3613 END 3609 3614 … … 3800 3805 credentials.!username = "" 3801 3806 credentials.!password = "" 3807 credentials.!entered = 0 3802 3808 3803 3809 UserCred = ""
Note:
See TracChangeset
for help on using the changeset viewer.