Changeset 990 for trunk/guitools/smbmon
- Timestamp:
- Dec 9, 2016, 11:06:20 AM (9 years ago)
- Location:
- trunk/guitools/smbmon
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/guitools/smbmon/rc/lang/smbmon_de.mkm
r908 r990 24 24 SMM0019I: Netzwerkumgebung 25 25 SMM0020I: Produktinformation 26 SMM0021I: Die Leute hinter Samba Server fr eComStation (OS/2)26 SMM0021I: Die Leute hinter Samba Server fr OS/2 27 27 SMM0022I: TDB Dateien prfen 28 28 SMM0023?: -
trunk/guitools/smbmon/rc/lang/smbmon_en.mkm
r908 r990 24 24 SMM0019I: Nethood 25 25 SMM0020I: About 26 SMM0021I: Samba Server for eComStationis brought to you by26 SMM0021I: Samba Server for OS/2 is brought to you by 27 27 SMM0022I: Check TDB files 28 28 SMM0023I: -
trunk/guitools/smbmon/rc/lang/smbmon_es.mkm
r908 r990 24 24 SMM0019I: "Nethood" 25 25 SMM0020I: Acerca de 26 SMM0021I: Servidor Samba para eComStationproporcionado por26 SMM0021I: Servidor Samba para OS/2 proporcionado por 27 27 SMM0022I: Comprobar los archivos TDB 28 28 SMM0023I: -
trunk/guitools/smbmon/rc/lang/smbmon_fr.mkm
r908 r990 26 26 SMM0019I: Voisinage rseau 27 27 SMM0020I: · propos de 28 SMM0021I: Serveur Samba pour eComStationvous est propos par28 SMM0021I: Serveur Samba pour OS/2 vous est propos par 29 29 SMM0022I: Vrifier fichiers TDB 30 30 SMM0023I: -
trunk/guitools/smbmon/rc/lang/smbmon_sv.mkm
r908 r990 24 24 SMM0019I: Ntverket 25 25 SMM0020I: Om 26 SMM0021I: Samba Server fr eComStationkommer fran26 SMM0021I: Samba Server fr OS/2 kommer fran 27 27 SMM0022I: Kontrollera TDB filer 28 28 SMM0023?: -
trunk/guitools/smbmon/smbmon.rc
r924 r990 1 1 icon 1 .\rc\icons\smbmon.ico 2 bitmap 2 .\rc\icons\bww_ bw.bmp2 bitmap 2 .\rc\icons\bww_logo.bmp 3 3 icon 40 .\rc\icons\start_samba2.ico 4 4 icon 41 .\rc\icons\samba_stop2.ico … … 13 13 icon 50 .\rc\icons\tag.ico 14 14 icon 51 .\rc\icons\err.ico 15 icon 52 .\rc\icons\share.ico 16 icon 53 .\rc\icons\settings.ico 15 17 BITMAP 111 ..\shared\rc\throbber\frame_01.bmp 16 18 BITMAP 112 ..\shared\rc\throbber\frame_02.bmp -
trunk/guitools/smbmon/smbmon.vrp
r925 r990 7 7 RunDirectory: U:\Develop\Samba\trunk\guitools\smbmon 8 8 VRXWindow: __VREMainWindow,1,2180,3614,1024,6769 9 VRXWindow: __VRESectionListWindow,1,40 83,11226,7372,768510 VRXWindow: __VREToolsWindow,1,2156,1494, 5477,16639 VRXWindow: __VRESectionListWindow,1,4071,11804,7372,7685 10 VRXWindow: __VREToolsWindow,1,2156,1494,6989,1659 11 11 VRXWindow: __VREWindListWindow,1,964,11708,5372,3150 12 12 UserFile: 1 13 13 UserWindow: Main,1 14 UserWindow: About,1 14 15 UserWindow: SW_FILES,1 16 UserWindow: SW_SETTINGS,1 -
trunk/guitools/smbmon/smbmon.vrx
r925 r990 123 123 ok = VRMethod("CN_CHKTDB", "SetFieldData", RecHandle, ChkTDBFilesFH, TDBFile, ChkTDBIconFH, "$50", ChkTDBSizeFH, TDBSize||" Bytes" ) 124 124 address cmd '@tdbtool 'tdb.I' check 2>'tdb.I'.err 1>'tdb.I'.out' 125 o ut = linein(tdb.I'.out')126 o k = stream(tdb.I'.out','c','close')125 ok = file2stem(tdb.I'.out',"out.") 126 out = out.ok 127 127 say out 128 128 if pos('integrity is OK',out) > 0 then do /* integrity is ok */ … … 489 489 490 490 /* Statusbar */ 491 ok = VRSet("DT_STATUSBAR","Caption", VRGet("Main", "HintText"))491 ok = VRSet("DT_STATUSBAR","Caption", " "||VRGet("Main", "HintText")) 492 492 493 493 call Main_Resize … … 587 587 advanced.!bigicons = VRGetIni( "Settings", "BigIcons", OurINI) 588 588 if advanced.!bigicons = "" then advanced.!bigicons = 0 589 590 advanced.!smbconfchanged = 0 589 591 590 592 /* For Browse page */ … … 664 666 call PRLoadFuncs 665 667 668 call rxfuncadd 'IniLoadFuncs', 'REXXINI', 'IniLoadFuncs' 669 call IniLoadFuncs 670 671 call RxFuncAdd 'RxDate', 'RexxDate', 'RxDate' 672 666 673 SIGNAL OFF SYNTAX 667 674 IF options.!debug == 1 then say time()' _LoadotherFuncs() done' … … 698 705 ok = VRSet("Main","helpFile", settings.!helpfile) 699 706 707 708 700 709 CALL NLVSetText 'PB_Refresh', 'Caption', 11 710 CALL NLVSetText 'PB_Apply', 'Caption', 10 701 711 CALL NLVSetText 'PB_Cancel', 'Caption', 12 702 712 CALL NLVSetText 'PB_Help', 'Caption', 13 … … 745 755 address cmd samba.!smbd' -V --debuglevel=0 2>'refresherr' 1>'refreshoutput 746 756 747 SambaVer = "Samba "||strip(linein(refreshoutput)) 757 do while lines(refreshoutput) > 0 758 Hdr = linein(refreshoutput) 759 if pos("Version ",Hdr) > 0 then leave 760 end 761 762 SambaVer = "Samba "||strip(Hdr) 748 763 say ' smbd.exe: "'SambaVer'"' 749 764 ok = stream(refreshoutput,'c','close') … … 752 767 address cmd samba.!smbstatusexe' smbd 'DebugLevel' 2>'refresherr' 1>'refreshoutput 753 768 754 /* First line is usually empty */ 755 Hdr = linein(refreshoutput) 756 SambaStVer = strip(linein(refreshoutput)) /* we can detect version mismatches here */ 769 do while lines(refreshoutput) > 0 770 Hdr = linein(refreshoutput) 771 if pos("Samba version",Hdr) > 0 then leave 772 end 773 774 SambaStVer = strip(Hdr) /* we can detect version mismatches here */ 757 775 say ' smbstatus: "'SambaStVer'"' 758 776 … … 1266 1284 return 1267 1285 1286 /*:VRX _SmbConfCreateShadowCopy 1287 */ 1288 _SmbConfCreateShadowCopy: 1289 if options.!debug == 1 then say time()' _SmbConfCreateShadowCopy started' 1290 /* we create a complete version of smb.conf in temporary directory for reading purposes */ 1291 /* as we can only determine a default value from this complete version of the file */ 1292 /* however it is not desirable to always have a complete copy normally */ 1293 ok = SysFileDelete(samba.!shadowsmbconf) 1294 if dataype(log_Level) <> "NUM" then log_level = 2 1295 say ' 'samba.!testparmexe' -v -s -d='log_level' 1>'samba.!shadowsmbconf' 2>'TempDir'testparm.stderr' 1296 address cmd samba.!testparmexe' -v -s -d='log_level' 1>'samba.!shadowsmbconf' 2>'TempDir'testparm.stderr' 1297 if options.!debug == 1 then say time()' _SmbConfCreateShadowCopy done' 1298 return 1299 1268 1300 /*:VRX _TabbedDialogSetup 1269 1301 */ … … 1306 1338 call About_Init 1307 1339 ok = VRSet("About","Caption", NLVGetMessage(20)) 1308 ok = VRSet("PB_AboutOK ","Caption", NLVGetMessage(2))1309 SambaTeam.0 = 91340 ok = VRSet("PB_AboutOK1","Caption", NLVGetMessage(2)) 1341 SambaTeam.0 = 11 1310 1342 SambaTeam.1 = 'Silvan Scherrer' 1311 1343 SambaTeam.2 = 'Herwig Bauernfeind' 1312 SambaTeam.3 = 'Vitali Pelenyov' 1313 SambaTeam.4 = 'Paul Smedley' 1314 SambaTeam.5 = 'Yuri Dario' 1315 SambaTeam.6 = 'Alex Taylor' 1316 SambaTeam.7 = 'Nikolay Kolosov' 1317 SambaTeam.8 = 'All the Samba people' 1318 SambaTeam.9 = 'All the netlabs people' 1344 SambaTeam.3 = 'Dmitrij Kuminov' 1345 SambaTeam.4 = 'Vitali Pelenyov' 1346 SambaTeam.5 = 'Paul Smedley' 1347 SambaTeam.6 = 'Yuri Dario' 1348 SambaTeam.7 = 'Alex Taylor' 1349 SambaTeam.8 = 'Nikolay Kolosov' 1350 SambaTeam.9 = 'All the Samba people' 1351 SambaTeam.10= 'All the ArcaNoae people' 1352 SambaTeam.11= 'All the netlabs people' 1319 1353 ok = VRSet("About","Font", VRGet("SW_SETTINGS","Font")) 1320 1354 ok = VRMethod("LB_SambaTeam","AddStringList", "SambaTeam." ) … … 1359 1393 otherwise ok = VRSet("IPB_paper","PicturePath","#5;#5") 1360 1394 end */ 1361 return1362 1363 /*:VRX CB_Debug_Click1364 */1365 CB_Debug_Click:1366 options.!Debug = VRGet("CB_Debug","set")1367 if options.!Debug then ok = VRREdirectStdIO("ON")1368 else ok = VRREdirectStdIO("OFF")1369 return1370 1371 /*:VRX CB_DetectZombies_Click1372 */1373 CB_DetectZombies_Click:1374 DetectZombies = VRGet("CB_DetectZombies","set")1375 say 'DetectZombies = "'DetectZombies'"'1376 return1377 1378 /*:VRX CB_NoMsgBox_Click1379 */1380 CB_NoMsgBox_Click:1381 NoMsgBox = VRGet("CB_NoMsgBox","set")1382 say 'NoMsgBox = "'NoMsgBox'"'1383 return1384 1385 /*:VRX CB_WPSSTARTSTOP_Click1386 */1387 CB_WPSSTARTSTOP_Click:1388 WPSStartStop = VRGet("CB_WPSStartStop","set")1389 say 'WPSStartStop = "'WPSStartStop'"'1390 1395 return 1391 1396 … … 1837 1842 return 1838 1843 1844 /*:VRX EF_log_file_Change 1845 */ 1846 EF_log_file_Change: 1847 advanced.!smbconfchanged = 1 1848 return 1849 1839 1850 /*:VRX Fini 1840 1851 */ … … 1943 1954 1944 1955 /* if main_iheight < 5500 then ok = VRSet("Main","Height",6200) */ 1945 sbar_height = 209/* Height of status-bar */1956 sbar_height = margin * 8 /* Height of status-bar */ 1946 1957 marginx2 = margin * 2 /* Common margin around controls */ 1958 marginx4 = margin * 4 1947 1959 1948 1960 pbtn_dist = 980 1949 pbtn_nr = 41961 pbtn_nr = 5 1950 1962 pbtn_pos = max((main_iwidth - pbtn_Dist * pbtn_Nr)%2, 0)+ margin 1951 1963 pbtn_height = 400 /* Height of the panels' internal button areas */ … … 1972 1984 ok = VRSet("DT_STATUSBAR", "Width", pane_width - 24) 1973 1985 1974 ok = VRSet("PB_Refresh","top", pane_height + margin * 4 ) 1975 ok = VRSet("PB_Help", "top", pane_height + margin * 4 ) 1976 ok = VRSet("PB_Cancel", "top", pane_height + margin * 4 ) 1977 ok = VRSet("PB_About", "top", pane_height + margin * 4 ) 1978 1979 ok = VRSet("PB_Refresh","left",pbtn_pos + pbtn_dist * (pbtn_nr - 4)) 1980 ok = VRSet("PB_Help", "left",pbtn_pos + pbtn_dist * (pbtn_nr - 3)) 1981 ok = VRSet("PB_About", "left",pbtn_pos + pbtn_dist * (pbtn_nr - 2)) 1986 ok = VRSet("PB_Refresh","top", pane_height + marginx4 ) 1987 ok = VRSet("PB_Help", "top", pane_height + marginx4 ) 1988 ok = VRSet("PB_Cancel", "top", pane_height + marginx4 ) 1989 ok = VRSet("PB_Apply", "top", pane_height + marginx4 ) 1990 ok = VRSet("PB_About", "top", pane_height + marginx4 ) 1991 1992 ok = VRSet("PB_Refresh","left",pbtn_pos + pbtn_dist * (pbtn_nr - 5)) 1993 ok = VRSet("PB_Help", "left",pbtn_pos + pbtn_dist * (pbtn_nr - 4)) 1994 ok = VRSet("PB_About", "left",pbtn_pos + pbtn_dist * (pbtn_nr - 3)) 1995 ok = VRSet("PB_Apply", "left",pbtn_pos + pbtn_dist * (pbtn_nr - 2)) 1982 1996 ok = VRSet("PB_Cancel", "left",pbtn_pos + pbtn_dist * (pbtn_nr - 1)) 1983 1997 … … 2054 2068 ok = VRset("GB_SETTINGS","Left", marginx2) 2055 2069 ok = VRset("GB_SETTINGS","Width", pane_width - 760) 2056 ok = VRset("GB_SETTINGS","Height", pane_height- 1020 )2070 ok = VRset("GB_SETTINGS","Height", pane_height- 1020- marginx2) 2057 2071 2058 2072 … … 2144 2158 return 2145 2159 2160 /*:VRX PB_AboutOK1_Click 2161 */ 2162 PB_AboutOK1_Click: 2163 call About_Close 2164 return 2165 2146 2166 /*:VRX PB_AboutOK_Click 2147 2167 */ 2148 2168 PB_AboutOK_Click: 2149 2169 call About_Close 2170 return 2171 2172 /*:VRX PB_Apply_Click 2173 */ 2174 PB_Apply_Click: 2175 IF options.!debug == 1 then say time()' PB_Apply_Click() started' 2176 options.!Debug = VRGet("CB_Debug","set") 2177 if options.!Debug then ok = VRREdirectStdIO("ON") 2178 else ok = VRREdirectStdIO("OFF") 2179 Intervall = VRGet("SPIN_Intervall","Value") 2180 ok = VRSet("TM_Refresh","Delay", Intervall * 1000) 2181 IntervallMin = VRGet("SPIN_IntervallMin","Value") 2182 2183 NoMsgBox = VRGet("CB_NoMsgBox","set") 2184 say 'NoMsgBox = "'NoMsgBox'"' 2185 2186 WPSStartStop = VRGet("CB_WPSStartStop","set") 2187 say 'WPSStartStop = "'WPSStartStop'"' 2188 2189 DetectZombies = VRGet("CB_DetectZombies","set") 2190 say 'DetectZombies = "'DetectZombies'"' 2191 2192 if advanced.!smbconfchanged = 1 then do 2193 log_level = VRGet("SPIN_log_level","Value") 2194 log_file = VRGet("EF_log_file","Value") 2195 max_protocol = VRGet("SPIN_max_protocol","Value") 2196 2197 handle = IniOpen('global', samba.!smbconf) 2198 2199 ok = IniSet('log level', log_level, handle) 2200 ok = IniSet('log file', log_file, handle) 2201 ok = IniSet('max protocol', max_protocol, handle) 2202 2203 ok = IniSave(handle) 2204 ok = IniClose(handle) 2205 advanced.!smbconfchanged = 0 2206 end 2207 IF options.!debug == 1 then say time()' PB_Apply_Click() done' 2150 2208 return 2151 2209 … … 2368 2426 */ 2369 2427 SPIN_Intervall_Change: 2370 Intervall = VRGet("SPIN_Intervall","Value")2371 ok = VRSet("TM_Refresh","Delay", Intervall * 1000)2372 2428 return 2373 2429 … … 2375 2431 */ 2376 2432 SPIN_IntervallMin_Change: 2377 IntervallMin = VRGet("SPIN_IntervallMin","Value") 2433 return 2434 2435 /*:VRX SPIN_log_level_Change 2436 */ 2437 SPIN_log_level_Change: 2438 advanced.!smbconfchanged = 1 2439 return 2440 2441 /*:VRX SPIN_max_protocol_Change 2442 */ 2443 SPIN_max_protocol_Change: 2444 advanced.!smbconfchanged = 1 2378 2445 return 2379 2446 … … 2531 2598 end 2532 2599 drop window 2600 return 2601 2602 /*:VRX SW_SETTINGS_Init_Content 2603 */ 2604 SW_SETTINGS_Init_Content: 2605 2606 log_level = IniGet('log level', 'global', samba.!smbconf) 2607 log_file = IniGet('log file', 'global', samba.!smbconf) 2608 max_protocol = IniGet('max_protocol', 'global', samba.!smbconf) 2609 2610 if log_level = "" then log_level = 2 2611 if max_protocol = "" then max_protocol = "NT1" 2612 2613 ok = VRSet("SPIN_LOG_LEVEL","Value",log_level) 2614 ok = VRSet("EF_LOG_FILE","Value",log_file) 2533 2615 return 2534 2616 … … 2667 2749 select 2668 2750 when page = 1 then do /* daemons */ 2751 ok = VRSet("Main","WindowIcon","$46") 2669 2752 ok = VRSet("TM_RefreshDaemons","Enabled", 1) 2670 2753 ok = VRSet("TM_RefreshDaemons","Delay", 3000) 2671 2754 end 2672 2755 when page = 2 then do /* smbtree */ 2756 ok = VRSet("Main","WindowIcon","$1") 2673 2757 ok = VRMethod( "CN_SMBTree", "GetRecordList", "All", "handle." ) 2674 2758 /* if the page is empty, populate it */ … … 2676 2760 end 2677 2761 when page = 3 then do /* Users */ 2678 nop2762 ok = VRSet("Main","WindowIcon","$44") 2679 2763 end 2680 2764 when page = 4 then do /* files */ 2681 nop2765 ok = VRSet("Main","WindowIcon","$1") 2682 2766 end 2683 2767 when page = 5 then do /* service */ 2684 nop2768 ok = VRSet("Main","WindowIcon","$52") 2685 2769 end 2686 2770 when page = 6 then do /* chkTDB */ 2771 ok = VRSet("Main","WindowIcon","$53") 2687 2772 say "ChkTDB" 2688 2773 call _ChkTDB 2689 2774 end 2690 2775 when page = 7 then do /* Settings */ 2691 nop 2776 ok = VRSet("Main","WindowIcon","$53") 2777 call SW_SETTINGS_Init_Content 2692 2778 end 2693 2779 otherwise nop
Note:
See TracChangeset
for help on using the changeset viewer.