Changeset 640 for trunk/guitools/evfsgui
- Timestamp:
- Sep 25, 2011, 7:05:11 PM (14 years ago)
- Location:
- trunk/guitools/evfsgui
- Files:
-
- 3 edited
-
evfsgui.vrp (modified) (1 diff)
-
evfsgui.vrx (modified) (30 diffs)
-
evfsgui.vry (modified) ( previous)
Legend:
- Unmodified
- Added
- Removed
-
trunk/guitools/evfsgui/evfsgui.vrp
r639 r640 11 11 VRXWindow: __VREFileListWindow,1,807,11033,1590,3358 12 12 VRXWindow: __VRESectionListWindow,1,2674,10648,8696,4782 13 VRXWindow: __VREToolsWindow,1,2529,723,648 6,166513 VRXWindow: __VREToolsWindow,1,2529,723,6489,1667 14 14 VRXWindow: __VREWindListWindow,1,542,8721,3770,3150 15 15 UserFile: 1 16 16 UserWindow: Main,1 17 UserWindow: SW_MOUNTPOINT,1 18 UserWindow: SW_SMBTREE,1 17 UserWindow: SW_INFO,1 19 18 UserWindow: SW_CONDET,1 -
trunk/guitools/evfsgui/evfsgui.vrx
r639 r640 324 324 ok = VRMethod("CN_CONDET", "SetFieldAttr", cd.easupportFH , "Title", strip(NLVGetMessage(68),"T",":")) 325 325 ok = VRMethod("CN_CONDET", "SetFieldAttr", cd.rwfh , "Title", strip(NLVGetMessage(69),"T",":")) 326 327 /* SMBTree columns */ 328 WorkgroupFH= VRMethod( "CN_smbtree", "AddField", "String", "Workgroup" ) 329 NBFH = VRMethod( "CN_smbtree", "AddField", "String", "NetBIOS name" ) 330 IpFH = VRMethod( "CN_smbtree", "AddField", "String", "IP" ) 331 MBFH = VRMethod( "CN_smbtree", "AddField", "String", "Role" ) 332 OSFH = VRMethod( "CN_smbtree", "AddField", "String", "OS" ) 333 VersionFH = VRMethod( "CN_SmbTree", "AddField", "String", "Version" ) 334 CommentFH = VRMethod( "CN_smbtree", "AddField", "String", "Comment" ) 335 MacFH = VRMethod( "CN_smbtree", "AddField", "String", "MAC" ) 336 337 ok = VRMethod("CN_smbtree","SetfieldAttr",IPFH, "ReadOnly", 1) 338 ok = VRMethod("CN_smbtree","SetfieldAttr",NBFH, "ReadOnly", 1) 339 ok = VRMethod("CN_smbtree","SetfieldAttr",MBFH, "ReadOnly", 1) 340 ok = VRMethod("CN_smbtree","SetfieldAttr",WorkGroupFH,"ReadOnly", 1) 341 ok = VRMethod("CN_smbtree","SetfieldAttr",OSFH, "ReadOnly", 1) 342 ok = VRMethod("CN_smbtree","SetfieldAttr",MacFH, "ReadOnly", 1) 343 326 344 IF options.!debug == 1 THEN SAY time()' _ContainersInit done' 327 345 return … … 728 746 729 747 /* Advanced */ 730 CALL VRSetIni 'Settings', 'EAS', advanced.!eas , settings.!ini, 'NoClose'748 CALL VRSetIni 'Settings', 'EAS', advanced.!easupport , settings.!ini, 'NoClose' 731 749 CALL VRSetIni 'Settings', 'ReadOnly', advanced.!readonly , settings.!ini, 'NoClose' 732 750 CALL VRSetIni 'Settings', 'AlwaysMP', advanced.!alwaysmp , settings.!ini, 'NoClose' … … 778 796 upCmdLine = translate(CmdLine) 779 797 ForceNDFS = 1 780 CALL VRSet " PB_AutoStart","Visible", 0798 CALL VRSet "Menu_File_Autostart","Visible", 0 781 799 end 782 800 … … 1191 1209 CALL VRSet "CHK_MTYPE", "Visible", 0 1192 1210 CALL NLVSetText "DT_NETWORK", "Caption", 21 1193 /* Does not make sense anymore */1194 /* if options.!editmode = 0 Then CALL VRSet "EF_NETWORK","Value", settings.!network */1195 1211 END 1196 1212 WHEN mount == 2 THEN DO … … 1201 1217 CALL VRSet "CHK_MTYPE", "Visible", 0 1202 1218 CALL NLVSetText "DT_NETWORK", "Caption", 21 1203 /* Does not make sense anymore */1204 /* CALL VRSet "EF_NETWORK","Value", settings.!network */1205 1219 END 1206 1220 WHEN mount == 3 THEN DO … … 1211 1225 CALL VRSet "CHK_MTYPE", "Visible", 0 1212 1226 CALL NLVSetText "DT_NETWORK", "Caption", 21 1213 /* Does not make sense anymore */1214 /* CALL VRSet "EF_NETWORK","Value", settings.!network */1215 1227 END 1216 1228 WHEN mount == 4 THEN DO … … 1221 1233 CALL VRSet "CHK_MTYPE", "Visible", 1 1222 1234 CALL NLVSetText "DT_NETWORK", "Caption", 22 1223 /* Does not make sense anymore */1224 /* CALL VRSet "EF_NETWORK","Value", "" */1225 1235 END 1226 1236 END … … 1292 1302 SAY ' p_string = "'p_string'"' 1293 1303 end 1294 /* 1295 infotext = p_node 1296 DO i = 1 TO p_mounts 1297 infotext = infotext ' ['p_string']' 1298 END 1299 */ 1300 if p_string = "" then 1301 infotext = fs.!name' 'fs.!version 1302 else 1303 infotext = p_string 1304 1305 /* Herwig B. 1306 CALL VRSet 'Main', 'StatusText', infotext */ 1304 1305 if p_string = "" 1306 then infotext = fs.!name' 'fs.!version 1307 else infotext = p_string 1308 1307 1309 if infotext = "" then infotext = " " 1308 1310 CALL VRSet "CN_CURRENT", "Caption", infotext 1309 1311 CALL VRSet "CN_CURRENT", 'HintText',infotext 1310 /* Herwig B. */1311 1312 1312 1313 IF p_mounts > 0 THEN DO … … 1314 1315 CALL VRSet 'MENU_CONTEXT_UNMOUNT', 'Visible', 1 1315 1316 1316 if pos("*",p_string) > 0 | pos(";",p_string) > 0 then CALL VRSet 'MENU_CONTEXT_EDIT', 'Visible', 0 1317 else CALL VRSet 'MENU_CONTEXT_EDIT', 'Visible', 1 1317 if pos("*",p_string) > 0 | pos(";",p_string) > 0 1318 then CALL VRSet 'MENU_CONTEXT_EDIT', 'Visible', 0 1319 else CALL VRSet 'MENU_CONTEXT_EDIT', 'Visible', 1 1318 1320 END 1319 1321 ELSE DO … … 1343 1345 1344 1346 END 1347 1345 1348 parse var p_string p_workgroup':\\'p_server'\'p_share 1346 1349 1347 ok = VRSet("EF_Server","Value", p_server) 1348 1350 p_server = translate(p_server) 1351 1352 ok = VRSet("EF_NETWORK","Value", p_workgroup) 1353 wgh = _GetMachineHandle(p_workgroup) 1354 if wgh = "" then wgh = _AddWorkGroup(p_workgroup) 1355 ok = VRSet("EF_SERVER","Value", p_server) 1356 mh = _GetMachineHandle(p_server) 1357 if mh = "" then mh = _AddSleepingMachine(p_server,'',wgh) 1358 machine = p_server 1359 call _RefreshShares 1360 ok = VRSet("EF_SHARE","Value", p_share) 1349 1361 IF options.!debug == 1 THEN SAY time()' CN_CURRENT_Click done' 1350 1362 RETURN … … 1382 1394 END 1383 1395 */ 1384 if p_string = "" then 1385 infotext = fs.!name' 'fs.!version 1386 else 1387 infotext = p_string 1388 1389 /* Herwig B. 1390 CALL VRSet 'Main', 'StatusText', infotext */ 1396 if p_string = "" 1397 then infotext = fs.!name' 'fs.!version 1398 else infotext = p_string 1399 1391 1400 if infotext = "" then infotext = " " 1392 1401 CALL VRSet "CN_CURRENT", "Caption", infotext 1393 1402 CALL VRSet "CN_CURRENT", 'HintText',infotext 1394 /* Herwig B. */1395 1403 1396 1404 CALL VRSet 'MENU_CONTEXT_OPEN', 'Visible', 1 … … 1503 1511 options.!autoload = 1 1504 1512 Profile = srcFile 1505 call PB_LOAD_Click1513 call Menu_File_Load_Click 1506 1514 ok = VRSet("EF_NETWORK","Value",options.!workgroup) 1507 1515 end … … 1672 1680 ok = VRSet("Menu_Selected_Info", "Visible", 0) /* CN_SMBTREE */ 1673 1681 ok = VRSet("Menu_Selected_Default_Workgroup","Visible", 0) /* CN_SMBTREE */ 1674 1682 ok = VRSet("Menu_Selected_TreeView","Visible",1) 1683 ok = VRSet("Menu_Selected_DetailsView","Visible",1) 1675 1684 select 1676 1685 when SMBObj.udatatype = "DISK" then do … … 1861 1870 */ 1862 1871 EF_SERVER_Change: 1872 IF options.!debug == 1 THEN SAY time()' EF_SERVER_Change started' 1863 1873 Now = VRGet("EF_SERVER","value") 1864 1874 if Now = "" then return 1865 ok = SysSleep( 1)1875 ok = SysSleep(2) 1866 1876 if Now <> VRGet("EF_SERVER","value") then return 1867 1877 … … 1876 1886 1877 1887 do I = 1 to rh.0 1878 1879 1888 Userdata = VRMethod("CN_SMBTREE","GetRecordAttr",rh.I,"Userdata") 1880 1889 ResName = VRMethod("CN_SMBTREE","GetRecordAttr",rh.I,"Caption") … … 1919 1928 call _RefreshWorkgroups 1920 1929 machine = VRGet("EF_SERVER","value") 1921 smbtree.!machine = VRMethod( "CN_SMBTREE", "AddRecord",,, machine) 1922 /* We make any machine as sleeping initially */ 1923 ok = VRMethod( "CN_SMBTREE", "SetRecordAttr", smbtree.!machine, "Icon",icons.!machine_sleeping) 1924 ok = VRMethod( "CN_SMBTREE", "SetRecordAttr", smbtree.!machine, "ReadOnly", 1) 1925 ok = VRMethod( "CN_SMBTREE", "SetFieldData", smbtree.!machine, NBFH, machine) 1930 smbtree.!machine = _AddSleepingMachine(machine,"","") 1926 1931 call _UserCredUpdate 1927 1932 call _RefreshShares … … 1933 1938 ok = VRSet("Pict_Throbber","Visible", 0) 1934 1939 end 1940 IF options.!debug == 1 THEN SAY time()' EF_SERVER_Change done' 1935 1941 return 1936 1942 … … 2148 2154 2149 2155 Fatal = 0 2156 2150 2157 IF options.!debug == 1 THEN SAY time()' LoadFileSysFuncs() done' 2151 2158 return … … 2233 2240 2234 2241 /* Tabbed Dialog = right pane */ 2242 ok = VRset("TDL_1", "Top", marginx2) 2235 2243 ok = VRset("TDL_1", "Left", split_left + 60) 2236 2244 ok = VRset("TDL_1", "Width", rpane_width ) … … 2306 2314 ok = VRset("GB_SHARE", "Left", margin ) 2307 2315 ok = VRset("GB_SHARE", "Top", marginx2 /* 245 + marginx2 */ ) 2316 ok = VRset("GB_SHARE", "Height", 2252 ) 2308 2317 ok = VRset("GB_SHARE", "Width", rpane_width - marginx2 ) 2309 2318 … … 2675 2684 return 2676 2685 2686 /*:VRX Menu_File_Daemon_Start_Click 2687 */ 2688 Menu_File_Daemon_Start_Click: 2689 IF options.!debug == 1 THEN SAY time()' Menu_File_Daemon_Start_Click started' 2690 address cmd 'detach 'fs.!prefix'CTL.EXE' 2691 ok = VRset("GB_CURRENT","Enabled", 1) 2692 ok = VRset("TDL_1","Enabled", 1) 2693 CALL REFRESH 2694 ok = VRSet("Menu_File_Daemon_Start","Enabled",0) 2695 ok = VRSet("Menu_File_Daemon_Stop","Enabled",1) 2696 IF options.!debug == 1 THEN SAY time()' Menu_File_Daemon_Start_Click done' 2697 return 2698 2699 /*:VRX Menu_File_Daemon_Stop_Click 2700 */ 2701 Menu_File_Daemon_Stop_Click: 2702 IF options.!debug == 1 THEN SAY time()' Menu_File_Daemon_Stop_Click started' 2703 ok = PRProcessList(proc) 2704 do I = 1 to proc.0 2705 CurProc = VRParseFileName(proc.i.name,'NE') 2706 if CurProc = fs.!prefix"CTL.EXE" then do 2707 call charout , ' 'CurProc' RC=' 2708 ok = PRKillProcess(1,proc.i.pid) 2709 say ok 2710 end 2711 end 2712 ok = VRset("GB_CURRENT","Enabled", 0) 2713 ok = VRset("TDL_1","Enabled", 0) 2714 ok = VRSet("Menu_File_Daemon_Start","Enabled",1) 2715 ok = VRSet("Menu_File_Daemon_Stop","Enabled",0) 2716 IF options.!debug == 1 THEN SAY time()' Menu_File_Daemon_Stop_Click stopped' 2717 return 2677 2718 /*:VRX Menu_File_Load_Click 2678 2719 */ … … 2758 2799 return 2759 2800 2801 /*:VRX Menu_Selected_DetailsView_Click 2802 */ 2803 Menu_Selected_DetailsView_Click: 2804 ok = VRSet("CN_smbtree", "View", "Detail") 2805 return 2806 2760 2807 /*:VRX Menu_Selected_Info_Click 2761 2808 */ … … 2770 2817 2771 2818 call _GetSMBObjectProperties SelRH.1 2772 2773 IF options.!debug == 1 THEN say ' 'samba.!smbclientexe' -L "'SMBObj.resname'" -N 'debuglevel' 2>'samba.!msg' 1>NUL'2774 address cmd samba.!smbclientexe' -L "'SMBObj.resname'" -N 'debuglevel' 2>'samba.!msg' 1>NUL'2775 infoline = linein(samba.!msg)2776 if word(infoline,1) = "creating" then do /* upcase tables are missing */2777 say "Missing upcase tables detected!"2778 infoline = linein(samba.!msg)2779 infoline = linein(samba.!msg)2780 end2781 IF options.!debug == 1 THEN say ' Response = "'Infoline'"'2782 ok = stream(samba.!msg,'c','close')2783 ok = SysFileDelete(samba.!msg)2784 2819 2785 2820 window = VRLoadSecondary( "SW_INFO", "W" ) … … 2861 2896 if VRMethod("CN_CONDET", "GetRecordAttr", srcRec, "Icon") = icons.!passive then ok = VRMethod( "CN_CONDET", "RemoveRecord", srcRec) 2862 2897 end 2898 return 2899 2900 /*:VRX Menu_Selected_TreeView_Click 2901 */ 2902 Menu_Selected_TreeView_Click: 2903 ok = VRSet("CN_smbtree", "View", "IconTree") 2863 2904 return 2864 2905 … … 3181 3222 */ 3182 3223 PB_CONDET_LOAD_Click: 3183 IF options.!debug == 1 THEN SAY time()' '||"PB_ REFRESH_Click started"3184 call PB_LOAD_CLICK3185 IF options.!debug == 1 THEN SAY time()' '||"PB_ REFRESH_Click done"3224 IF options.!debug == 1 THEN SAY time()' '||"PB_CONDET_LOAD_Click started" 3225 call Menu_File_Load_Click 3226 IF options.!debug == 1 THEN SAY time()' '||"PB_CONDET_LOAD_Click done" 3186 3227 RETURN 3187 3228 … … 3330 3371 IF options.!debug == 1 THEN SAY time()' '||"PB_MOUNT_Click started" 3331 3372 ok = VRSet("TM_RefreshCurrentDisplay","Enabled", 0) 3332 say "network = "network3373 say "network = "network 3333 3374 if options.!editmode = 1 then do 3334 3375 CALL PB_UNMOUNT_Click 3335 3376 options.!editmode = 0 3336 ok = VRMethod("TDL_1","SetTabText", " " NLVGetMessage(13)" ")3377 ok = VRMethod("TDL_1","SetTabText", " "strip(NLVGetMessage(13))" ") 3337 3378 /* CALL NLVSetText 'DT_DIALOG', "Caption", 13 */ 3338 3379 3339 3380 CALL VRSet "PB_UNMOUNT","Enabled", 1 3340 CALL VRSet "PB_SAVE","Enabled", 13341 CALL VRSet "PB_LOAD","Enabled", 13342 3381 CALL VRSet "GB_CURRENT", "ENABLED", 1 3343 3382 end … … 3785 3824 CALL VRMethod 'CB_DRIVES', 'Clear' 3786 3825 3787 CALL VRSet "CN_CURRENT", "Caption", ' '3826 CALL VRSet "CN_CURRENT", "Caption", fs.!Name' 'fs.!version 3788 3827 3789 3828 /* Herwig B.: Attention! The SysDrivemap function with the "free" parameter causes hangs in case it is called repeatedly! */ … … 4067 4106 */ 4068 4107 SW_INFO_Create: 4108 IF options.!debug == 1 THEN SAY time()' SW_INFO_Create started' 4069 4109 call SW_INFO_Init 4070 4110 CALL NLVSetText 'SW_INFO', "Caption", 92 … … 4074 4114 Info.ValueFH = VRMethod( "CN_INFO", "AddField", "String", "Value" ) 4075 4115 4076 parse var infoline "Domain=["WorkGroup"] OS=["OS"] Server=["Server"]"Rest4077 4116 Info.!domain = VRMethod( "CN_INFO", "AddRecord") 4078 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!domain, Info.TypeFH, strip(NLVGetMessage(21),'T',':'),Info.ValueFH, Workgroup ) 4079 Info.!os = VRMethod( "CN_INFO", "AddRecord") 4080 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!os, Info.TypeFH, strip(NLVGetMessage(93),'T',':'),Info.ValueFH, OS ) 4117 Info.!os = VRMethod( "CN_INFO", "AddRecord") 4081 4118 Info.!server = VRMethod( "CN_INFO", "AddRecord") 4082 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!server, Info.TypeFH, strip(NLVGetMessage(19),'T',':'),Info.ValueFH, Server )4083 4084 4119 Info.!status = VRMethod( "CN_INFO", "AddRecord") 4120 Info.!DMBLMB = VRMethod( "CN_INFO", "AddRecord") 4121 Info.!IP = VRMethod( "CN_INFO", "AddRecord") 4122 Info.!MAC = VRMethod( "CN_INFO", "AddRecord") 4123 4124 4125 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!domain, Info.TypeFH, strip(NLVGetMessage(21),'T',':'),Info.ValueFH, VRMethod("CN_SMBTREE", "GetFieldData", SMBObj.RH, WorkGroupFH )) 4126 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!os, Info.TypeFH, strip(NLVGetMessage(93),'T',':'),Info.ValueFH, VRMethod("CN_SMBTREE", "GetFieldData", SMBObj.RH, OSFH )) 4127 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!server, Info.TypeFH, strip(NLVGetMessage(19),'T',':'),Info.ValueFH, VRMethod("CN_SMBTREE", "GetFieldData", SMBObj.RH, VersionFH )) 4128 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!DMBLMB, Info.TypeFH, "Role",Info.ValueFH, VRMethod("CN_SMBTREE", "GetFieldData", SMBObj.RH, MBFH )) 4129 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!IP, Info.TypeFH, "IP" ,Info.ValueFH, VRMethod("CN_SMBTREE", "GetFieldData", SMBObj.RH, IPFH )) 4130 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!MAC, Info.TypeFH, "MAC" ,Info.ValueFH, VRMethod("CN_SMBTREE", "GetFieldData", SMBObj.RH, MacFH )) 4131 4085 4132 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!status, Info.TypeFH, strip(NLVGetMessage(67),'T',':'),Info.ValueFH, SMBObj.udatamsg ) 4086 4133 IF options.!debug == 1 THEN SAY time()' SW_INFO_Create done' 4087 4134 return 4088 4135 … … 4406 4453 TDL_1_PageSelected: 4407 4454 page = VRInfo("Page") 4408 say "Page="page 4455 4409 4456 /* call _TabsStrip */ 4410 4457 select
Note:
See TracChangeset
for help on using the changeset viewer.
