Changeset 766
- Timestamp:
- Apr 5, 2013, 7:54:46 PM (12 years ago)
- Location:
- trunk/guitools
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/guitools/shared/smbtree.vrs
r759 r766 280 280 281 281 do while(left(line,1) = '09'x) /* Share loop */ 282 parse var line '09'x share type comment283 type = translate(strip(type))284 comment = strip( comment)282 share = strip(substr(line,2,16)) 283 type = translate(strip(substr(line,17,10))) 284 comment = strip(substr(line,27,)) 285 285 286 286 select … … 294 294 /* Now the machine receives the wakeup icon */ 295 295 ok = VRMethod('CN_smbtree', 'SetRecordAttr', smbtree.!machine, 'Icon', "#35:PMWP.DLL") 296 296 297 parent = smbtree.!machine 297 298 smbtree.!share = VRMethod( "CN_smbtree", "AddRecord",parent,, share||'0D0A'x||comment, res) -
trunk/guitools/smbmon/smbmon.vrp
r759 r766 7 7 RunDirectory: U:\Develop\Samba\trunk\guitools\smbmon 8 8 VRXWindow: __VREMainWindow,1,2180,3614,1024,6769 9 VRXWindow: __VRESectionListWindow,1,4083,11 804,7372,604710 VRXWindow: __VREToolsWindow,1,2156,1494,6483,16 599 VRXWindow: __VRESectionListWindow,1,4083,11226,7372,6589 10 VRXWindow: __VREToolsWindow,1,2156,1494,6483,1667 11 11 VRXWindow: __VREWindListWindow,1,964,11708,3132,3150 12 12 UserFile: 1 13 13 UserWindow: Main,1 14 UserWindow: SW_FILES,1 15 UserWindow: SW_SMBTREE,1 14 UserWindow: SW_DAEMONS,1 -
trunk/guitools/smbmon/smbmon.vrx
r703 r766 295 295 */ 296 296 _GUIInit: 297 say '_GUIInit() started'297 IF options.!debug == 1 then say time()' _GUIInit() started' 298 298 299 299 if datatype(Top) = 'NUM' then do … … 362 362 363 363 ok = VRSet("Main", "Visible", 1) 364 say '_GUIInit() done'364 IF options.!debug == 1 then say time()' _GUIInit() done' 365 365 return 366 366 … … 392 392 */ 393 393 _INIRead: 394 say '_INIRead() started.'394 IF options.!debug == 1 then say time()' _INIRead() started' 395 395 396 396 OurINI = strip(VRParseFileName(VRget("Application","Program"),'DP')'\SMBSTATUS.INI',,'\') 397 397 ok = SysFileTree(OurINI, INIFound.,'FO') 398 398 if INIFound.0 = 1 then OurINI = VRParseFileName(INIFound.1,'DPNE') 399 say 'OurINI='OurINI 400 HelpFile = VRParseFileName(OurINI,'DPN')'.HLP' 401 say 'HelpFile='HelpFile 399 IF options.!debug == 1 then say ' OurINI='OurINI 402 400 403 401 Top = VRGetIni( "Pos", "Top", OurINI , 'NoClose') … … 448 446 if options.!debug = "" then options.!debug = 0 449 447 450 if options.!Debug then ok = VRR EdirectStdIO("ON")451 else ok = VRR EdirectStdIO("OFF")448 if options.!Debug then ok = VRRedirectStdIO("ON") 449 else ok = VRRedirectStdIO("OFF") 452 450 453 451 advanced.!bigicons = VRGetIni( "Settings", "BigIcons", OurINI) … … 471 469 472 470 smbdoutput = TempDir'smbd.out' 473 say '_INIRead() done.'471 IF options.!debug == 1 then say time()' _INIRead() done' 474 472 return 475 473 … … 520 518 */ 521 519 _LoadotherFuncs: 522 ok = VRRedirectStdIO("OFF") 520 IF options.!debug == 1 then say time()' _LoadotherFuncs() started' 521 SIGNAL ON SYNTAX NAME DLLMissing 523 522 524 523 call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs' … … 528 527 call PRLoadFuncs 529 528 530 return 531 529 SIGNAL OFF SYNTAX 530 IF options.!debug == 1 then say time()' _LoadotherFuncs() done' 531 return 532 533 DLLMissing: 534 Fatal = 1 535 call VRMessage 'Main', 'REXX function library 'strip(translate(word(sourceline(SIGL-1),4),' ',"',"))'.DLL is missing!', "EVFSGUI fatal error", "E" 536 signal Quit 532 537 /*:VRX _MsgYesNo 533 538 */ … … 612 617 */ 613 618 _Refresh: 614 say "_Refresh() started"619 IF options.!debug == 1 then say time()' _Refresh() started' 615 620 ok = VRSet("TM_refresh","Enabled", 0) 616 621 SmbNoInit = 0 … … 651 656 /* say ' 2:'hdr2 */ 652 657 Zeile = linein(refreshoutput) 653 say ' 'Zeile658 say ' 'Zeile 654 659 if SmbNoInit then do 655 660 call lineout samba.!msg, SambaStVer … … 664 669 end 665 670 666 say ' SmbNoInit = 'SmbNoInit671 say ' SmbNoInit = 'SmbNoInit 667 672 668 673 /* Active users */ … … 776 781 end 777 782 ok = VRSet("TM_refresh","Enabled", 1) 778 say "_Refresh() done" 783 784 IF options.!debug == 1 then say time()' _Refresh() done' 779 785 return 780 786 /*:VRX _RefreshDaemons 781 787 */ 782 788 _RefreshDaemons: 783 say "_RefreshDaemons() started" 789 IF options.!debug == 1 then say time()' _RefreshDaemons() started' 790 ok = VRSet("TM_RefreshDaemons","Delay",3000) 791 784 792 ok = VRSet("CN_Daemons","Painting", 0 ) 785 786 793 call VRSet VRWindow(), 'Pointer', 'Wait' 787 794 … … 904 911 ok = VRSet("CN_Daemons","Painting", 1 ) 905 912 if Running then call _SambaUptime 906 say "_RefreshDaemons() done" 913 914 IF options.!debug == 1 then say time()' _RefreshDaemons() done' 907 915 return 908 916 … … 940 948 ok = SysFileDelete(PingOut) 941 949 */ 950 /*:VRX _RefreshDaemonsDelay 951 */ 952 _RefreshDaemonsDelay: 953 IF options.!debug == 1 then say time()' _RefreshDaemonsDelay() started' 954 IF options.!debug == 1 then say " Old intervall = "VRGet("TM_RefreshDaemons","Delay") 955 ok = VRSet("TM_RefreshDaemons","Delay", 60000) 956 IF options.!debug == 1 then say " New Intervall = "VRGet("TM_RefreshDaemons","Delay") 957 IF options.!debug == 1 then say time()' _RefreshDaemonsDelay() done' 958 return 959 942 960 /*:VRX _SambaFindPIDfile 943 961 */ 944 962 _SambaFindPIDfile: 945 say "_SambaFindPIDfile() started" 963 IF options.!debug == 1 then say time()' _SambaFindPIDfile() started' 964 946 965 ok = SysFileTree(ETC'\samba\pid\nmbd*pid',nmbdpid.,'FO') 947 if nmbdpid.0 = 1 then nmbdpidfile = nmbdpid.1; else nmbdpidfile = "" 948 say " nmbdpidfile = "nmbdpidfile 949 say "_SambaFindPIDfile() done" 966 if nmbdpid.0 = 1 967 then nmbdpidfile = nmbdpid.1; 968 else nmbdpidfile = "" 969 970 IF options.!debug == 1 then say " nmbdpidfile = "nmbdpidfile 971 972 IF options.!debug == 1 then say time()' _SambaFindPIDfile() done' 950 973 return 951 974 … … 1005 1028 */ 1006 1029 _SambaUptime: 1007 say "_SambaUptime() started"1030 IF options.!debug == 1 then say time()' _SambaUptime() started' 1008 1031 call _SambaFindPIDfile 1009 1032 if nmbdpidfile = "" then do … … 1020 1043 NowTime = "2008-03-05 08:59:50" */ 1021 1044 1022 say StartTime 1023 say NowTime 1045 IF options.!debug == 1 then do 1046 say " Start Time ='"StartTime"'" 1047 say " Now Time ='"NowTime"'" 1048 end 1024 1049 1025 1050 doM.0 = 12 … … 1032 1057 if nY//4 = 0 & nY//400 <> 0 then doM.2 = 29 1033 1058 1034 say doM.21059 /* say doM.2 */ 1035 1060 1036 1061 uY =nY-sY … … 1053 1078 if uM < 0 then do; uY = uY - 1; uM = uM + 12; end 1054 1079 1055 say uY uM uD uH uMi uS1080 /* say uY uM uD uH uMi uS */ 1056 1081 1057 1082 UpTimeStr = ' 'NlvGetMessage(43)':' … … 1064 1089 1065 1090 ok = VRset("CN_Daemons", "Caption", UpTimeStr) 1066 say "_SambaUptime() done" 1091 1092 IF options.!debug == 1 then say time()' _SambaUptime() done' 1067 1093 return 1068 1094 … … 1208 1234 /*:VRX CN_Daemons_Click 1209 1235 */ 1210 CN_Daemons_Click: 1211 ok = VRSet("TM_Refresh","Enabled", 0) 1212 ok = VRSet("TM_RefreshDaemons","Enabled", 0) 1213 ok = VRSet("PB_PAUSEDISPLAY","Caption", "Resume") 1236 CN_Daemons_Click: 1237 IF options.!debug == 1 then say time()' CN_Daemons_Click() started' 1238 NowClickedRecord = VRInfo("Record") 1239 say " NowRecord = '"NowClickedRecord"'" 1240 say " LastRecord = '"LastClickedRecord"'" 1241 if NowClickedRecord <> LastClickedRecord then call _RefreshDaemonsDelay 1242 LastClickedRecord = NowClickedRecord 1243 IF options.!debug == 1 then say time()' CN_Daemons_Click() done' 1214 1244 return 1215 1245 … … 1219 1249 if VRInfo("Top") < 400 & VRGet("CN_Daemons", "View") = "Detail" then call _ColumnsMenu "CN_Daemons" 1220 1250 else do 1221 ok = VRSet("TM_Refresh","Enabled", 0) 1222 ok = VRSet("TM_RefreshDaemons","Enabled", 0) 1223 ok = VRSet("PB_PAUSEDISPLAY","Caption", "Resume") 1251 say " Record = '"VRInfo("Record")"'" 1252 1253 call _RefreshDaemonsDelay 1254 1224 1255 DRH = VRInfo("Record") 1225 1256 OH = VRInfo("Object") … … 1432 1463 address cmd 'kill -9 'DaemonName 1433 1464 end 1434 ok = VRSet("TM_refresh","Enabled", 1) 1435 call PB_PAUSEDISPLAY_Click 1465 ok = VRSet("TM_Refresh","Enabled", 1) 1436 1466 return 1437 1467 … … 1466 1496 call _SambaShowMsg "section table registered tdb" 1467 1497 end 1468 ok = VRSet("TM_refresh","Enabled", 1) 1469 call PB_PAUSEDISPLAY_Click 1498 ok = VRSet("TM_Refresh","Enabled", 1) 1470 1499 return 1471 1500 … … 1485 1514 address cmd samba.!smbcmd' start 'DaemonName 1486 1515 end 1487 ok = VRSet("TM_refresh","Enabled", 1) 1488 call PB_PAUSEDISPLAY_Click 1516 ok = VRSet("TM_Refresh","Enabled", 1) 1489 1517 return 1490 1518 … … 1657 1685 /*:VRX Main_Create 1658 1686 */ 1659 Main_Create: 1687 Main_Create: 1688 options.!debug = 1 1689 if options.!debug == 1 then do 1690 ok = VRRedirectStdIO("ON") 1691 say time()' Main_Create started' 1692 end 1693 else ok = VRRedirectStdIO("OFF") 1694 1660 1695 call _LoadOtherFuncs 1661 1696 call _InitTempDir … … 1681 1716 end */ 1682 1717 ok = VRMethod("PB_Refresh","SetFocus") 1718 1719 if options.!debug == 1 then say time()' Main_Create done' 1683 1720 return 1684 1721 /*:VRX Main_Deactivate … … 1779 1816 ok = VRSet("PB_Reload", "Top", pbtn_height*5 - marginx2) 1780 1817 ok = VRSet("PB_DelLogs","Top", pbtn_height*6 - marginx2) 1781 ok = VRSet("DT_PAUSEDISPLAY","Top", pane_height - pbtn_height*2 -1020 - marginx2)1782 ok = VRSet("PB_PAUSEDISPLAY","Top", pane_height - pbtn_height -1020 - marginx2)1783 1818 1784 1819 ok = VRSet("PB_START", "Left", pane_width - 760 - marginx2 - pbtn_width) … … 1787 1822 ok = VRSet("PB_Reload", "Left", pane_width - 760 - marginx2 - pbtn_width) 1788 1823 ok = VRSet("PB_DelLogs","Left", pane_width - 760 - marginx2 - pbtn_width) 1789 ok = VRSet("DT_PAUSEDISPLAY","Left", pane_width - 760 - marginx2 - pbtn_width)1790 ok = VRSet("PB_PAUSEDISPLAY","Left", pane_width - 760 - marginx2 - pbtn_width)1791 1824 1792 1825 ok = VRset("GB_SMBTREE","Top", margin ) … … 1937 1970 return 1938 1971 1939 /*:VRX PB_PAUSEDISPLAY_Click1940 */1941 PB_PAUSEDISPLAY_Click:1942 if VRGet("TM_RefreshDaemons","Enabled") then do1943 ok = VRSet("TM_RefreshDaemons","Enabled", 0)1944 ok = VRSet("PB_PAUSEDISPLAY","Caption", "Resume")1945 end1946 else do1947 ok = VRSet("TM_RefreshDaemons","Enabled", 1)1948 ok = VRSet("PB_PAUSEDISPLAY","Caption", "Pause")1949 end1950 return1951 1952 1972 /*:VRX PB_Refresh_Click 1953 1973 */ 1954 PB_Refresh_Click: 1974 PB_Refresh_Click: 1975 IF options.!debug == 1 then say time()' PB_Refresh_Click() started' 1955 1976 ok = SysSleep(0.3) 1956 page = VRInfo("Page") 1957 say page 1977 1978 say " CurrentPageNr = "CurrentPageNr 1958 1979 1959 1980 if CurrentPageNr = 5 then do … … 1963 1984 end 1964 1985 else call _Refresh 1986 IF options.!debug == 1 then say time()' PB_Refresh_Click() done' 1965 1987 return 1966 1988 … … 1977 1999 end 1978 2000 ok = VRSet("TM_Refresh","Delay", 2000) 1979 if \VRGet("TM_RefreshDaemons","Enabled") then call PB_PAUSEDISPLAY_Click1980 2001 call VRSet VRWindow(), 'Pointer', '<default>' 1981 2002 return … … 1993 2014 end 1994 2015 ok = VRSet("TM_Refresh","Delay", 1000) 1995 if \VRGet("TM_RefreshDaemons","Enabled") then call PB_PAUSEDISPLAY_Click1996 2016 call VRSet VRWindow(), 'Pointer', '<default>' 1997 2017 return … … 2027 2047 end 2028 2048 ok = VRSet("TM_Refresh","Delay", 1000) 2029 if \VRGet("TM_RefreshDaemons","Enabled") then call PB_PAUSEDISPLAY_Click2030 2049 call VRSet VRWindow(), 'Pointer', '<default>' 2031 2050 say "IPB_Start_Click done" … … 2044 2063 end 2045 2064 ok = VRSet("TM_Refresh","Delay", 1000) 2046 if \VRGet("TM_RefreshDaemons","Enabled") then call PB_PAUSEDISPLAY_Click2047 2065 call VRSet VRWindow(), 'Pointer', '<default>' 2048 2066 say "IPB_Stop_Click done" … … 2408 2426 when page = 4 then do /* daemons */ 2409 2427 ok = VRSet("TM_RefreshDaemons","Enabled", 1) 2428 ok = VRSet("TM_RefreshDaemons","Delay", 3000) 2410 2429 end 2411 2430 when page = 5 then do /* smbtree */ … … 2432 2451 */ 2433 2452 TM_RefreshDaemons_Trigger: 2453 ok = VRSet("TM_RefreshDaemons","Delay", 3000) 2434 2454 call _RefreshDaemons 2435 2455 return
Note:
See TracChangeset
for help on using the changeset viewer.