Changeset 703 for trunk/guitools/evfsgui
- Timestamp:
- Jun 13, 2012, 12:08:42 PM (13 years ago)
- Location:
- trunk/guitools/evfsgui
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/guitools/evfsgui/evfsgui.RC
r697 r703 27 27 BITMAP 36 .\rc\icons\green-on-16.bmp 28 28 BITMAP 37 .\rc\icons\green-off-16.bmp 29 icon 50 .\rc\icons\smbwait.ico 29 30 icon 68 .\rc\icons\passive.ico 30 31 icon 80 .\rc\icons\PDF.ICO -
trunk/guitools/evfsgui/evfsgui.vrp
r702 r703 10 10 VRXWindow: __VREMainWindow,1,1951,2361,891,7841 11 11 VRXWindow: __VREFileListWindow,1,1253,11033,2665,3358 12 VRXWindow: __VRESectionListWindow,1,1 229,11900,10696,334212 VRXWindow: __VRESectionListWindow,1,1156,12382,12238,5095 13 13 VRXWindow: __VREToolsWindow,0,3096,8528,6486,1669 14 14 VRXWindow: __VREWindListWindow,1,723,11708,3686,3150 … … 17 17 UserWindow: SW_LOGIN,1 18 18 UserWindow: SW_INFO,1 19 UserWindow: SW_SMBTREE,120 19 UserWindow: SW_CONDET,1 20 UserWindow: SW_DIALOG,1 -
trunk/guitools/evfsgui/evfsgui.vrx
r702 r703 753 753 END 754 754 755 if (mtype.1 = '' & mtype.2 = '' & mtype.3 = '' & mtype.4 = '') THEN DO /* we do not seem to have an NLV file */ 756 /* we fill the array with the list predefined directly in the GUI control */ 757 ok = VRMethod( "CB_MOUNT", "GetStringList", "mtype." ) 758 end 759 755 760 /* SMBTree */ 756 761 CALL NLVSetText 'PB_SMBTREE_CONNECT', "Caption", 28 … … 770 775 /* Common margin around controls */ 771 776 margin = ((VRGet("Main", "InteriorLeft") / 3) * 2) + 2 777 778 smbwait = "#50" 772 779 773 780 if options.!debug == 1 then say time()' _GUIInit done' … … 792 799 793 800 say _ucInitObj() 794 795 options.!storecreds = _ucChkObj() 801 say _ucChkObj() 796 802 797 803 IF STREAM( settings.!ini, 'C', 'QUERY EXISTS') == '' THEN DO … … 878 884 IF advanced.!lmhosts == '' THEN advanced.!lmhosts = 1 879 885 886 options.!storecreds = VRGetIni('Settings', 'StoreCreds', settings.!ini) 887 say "options.!storecreds = "options.!storecreds 888 IF options.!storecreds == '' then options.!storecreds = 1 889 890 say "options.!storecreds = "options.!storecreds 891 IF _ucChkObj() = 0 then options.!storecreds = 0 892 say "options.!storecreds = "options.!storecreds 893 880 894 options.!debug = VRGetIni('Settings', 'Debug', settings.!ini) 881 895 IF options.!debug == '' THEN options.!debug = 0 /* Turn off debug by default for release builds */ … … 983 997 CALL VRSetIni 'Settings', 'LMHosts', advanced.!lmhosts , settings.!ini, 'NoClose' 984 998 999 CALL VRSetIni 'Settings', 'StoreCreds', options.!storecreds , settings.!ini, 'NoClose' 985 1000 CALL VRSetIni 'Settings', 'Debug', options.!debug , settings.!ini, 'NoClose' 986 1001 CALL VRSetIni 'Settings', 'MiniIcons', advanced.!miniicons , settings.!ini, 'NoClose' … … 1061 1076 if datatype(T1) = "NUM" & datatype(T2) = "NUM" & datatype(T3) = "NUM" & datatype(T4) = "NUM" then do 1062 1077 FoundName = 0 1078 /* Don't add a local link IP to LMHosts - workaround only */ 1079 if T1 = '169' & T2 = '254' then iterate 1063 1080 do J = 1 to lmname.0 /* machine already in LMHosts? */ 1064 1081 if lmname.J = SmbObj.resname then do /* Yes? then update IP */ … … 1387 1404 _ShowMsg: 1388 1405 /* preliminary implementation - we just do not ignore it anymore - 1389 - ShowMsg from smbmon/smbusers shoul ebecome a shared library */1406 - ShowMsg from smbmon/smbusers should become a shared library */ 1390 1407 ok = VRSet("DT_StatusBar", "Caption", Msg.Text) 1391 1408 return … … 1623 1640 1624 1641 mount = VRGet("CB_MOUNT", "Value") 1642 1643 /* Catch empty mount type error */ 1644 if mount = "" then do 1645 if mtype.1 <> "" then ok = VRSet("CB_MOUNT", "Value", mtype.1) 1646 if options.!debug == 1 then say time()' '||"CB_MOUNT_Change aborted" 1647 return 1648 end 1625 1649 1626 1650 SELECT … … 1657 1681 CALL NLVSetText "DT_NETWORK", "Caption", 22 1658 1682 END 1683 OTHERWISE DO 1684 id = VRMessage( "", 'unknown mount type here >>'mount'<< mtype1=>>'mtype.1'<<', "Mount change error", "E", ) 1685 END 1659 1686 END 1660 1687 if options.!debug == 1 then say time()' '||"CB_MOUNT_Change done" … … 2565 2592 */ 2566 2593 Main_Create: 2567 options.!debug = 02594 options.!debug = 1 2568 2595 if options.!debug == 1 then do 2569 2596 ok = VRRedirectStdIO("ON") … … 3205 3232 */ 3206 3233 Menu_File_ucCred_Reset_Click: 3207 ok = _ucDelUc()3234 if _ucChkUc() then ok = _ucDelUc() 3208 3235 ok = VRSet("Pict_PWINMEM","PicturePath","#37") 3209 ok = VRSet("EF_USER", "Value","")3236 ok = VRSet("EF_USER", "Value","") 3210 3237 ok = VRSet("EF_PASSWORD","Value","") 3211 /* FIXME: Add a message box here */3238 call _UserCredUpdate 3212 3239 return 3213 3240 … … 3686 3713 CALL SW_ADVANCED_Init_Content 3687 3714 RETURN 3715 3716 /*:VRX PB_ClearCred_Click 3717 */ 3718 PB_ClearCred_Click: 3719 call Menu_File_ucCred_Reset_Click 3720 return 3688 3721 3689 3722 /*:VRX PB_CONDET_HELP_Click … … 4092 4125 ok = VRSet("PB_SETTINGS_UNDO","Enabled", 0) 4093 4126 end 4127 if options.!storecreds = 0 then call Menu_File_ucCred_Reset_Click 4094 4128 return 4095 4129 … … 4108 4142 /*:VRX PB_SMBTREE_CONNECT_Click 4109 4143 */ 4110 PB_SMBTREE_CONNECT_Click: PROCEDURE EXPOSE settings. options. icons. fs. advanced. cd. samba. 4144 PB_SMBTREE_CONNECT_Click: PROCEDURE EXPOSE settings. options. icons. fs. advanced. cd. samba. mtype. 4111 4145 if options.!debug == 1 then say time()' '||"PB_CONNECT_Click started" 4112 4146 … … 4594 4628 say ' Icon: "'SMBObj.icon'"' 4595 4629 end 4596 4630 say "Vorher:"rpc.srvinfo.OS_VERSION 4631 drop rpc. 4632 say "Vorher:"rpc.srvinfo.OS_VERSION 4597 4633 rpc_success = _rpcsrvinfo(SMBObj.resname,credentials.!username,credentials.!password) 4598 4634 … … 4616 4652 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!version,Info.TypeFH, strip(NLVGetMessage(139),'T',':'),Info.ValueFH, rpc.srvinfo.OS_VERSION) 4617 4653 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!status, Info.TypeFH, strip(NLVGetMessage(67),'T',':'),Info.ValueFH, rpc.srvinfo.LOGONSTATUS ) 4654 /* we did not get these, but we know them anyway */ 4655 if rpc.srvinfo.NETBIOSNAME = "" then ok = VRMethod( "CN_INFO", "SetFieldData", Info.!nbname, Info.TypeFH, strip(NLVGetMessage(137),'T',':'),Info.ValueFH, SMBObj.resname'ø') 4656 if rpc.srvinfo.SERVERSTRING = "" then ok = VRMethod( "CN_INFO", "SetFieldData", Info.!comment,Info.TypeFH, strip(NLVGetMessage(125),'T',':'),Info.ValueFH, SMBObj.comment'ø') 4618 4657 end 4619 4658 else do
Note:
See TracChangeset
for help on using the changeset viewer.