Changeset 334 for branches/guitools-2.0/smbmon
- Timestamp:
- Sep 24, 2009, 9:00:53 AM (16 years ago)
- Location:
- branches/guitools-2.0/smbmon
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/guitools-2.0/smbmon/changes
r329 r334 1 1 Version 1.9.xxx 2 WIP: Add findsmb functionality 3 WIP: Adopt changes in smbmon.vrs done for evfsgui 2 +Added: findsmb functionality 3 +Added: Optionally use big icons 4 +Added: smbmon.vrs: Refresh network neighbourhood in 5 background 6 +Added: EVFSGUI-like throbber for network neighbourhood 7 *Changed: Flatened menu structure 4 8 Version 0.9.25 27-06-2009 5 9 +Added: Check free space on TMPDIR -
branches/guitools-2.0/smbmon/smbmon.rc
r315 r334 25 25 icon 47 daemon_off.ico 26 26 icon 48 pid.ico 27 BITMAP 111 eBall_01.bmp 28 BITMAP 112 eBall_02.bmp 29 BITMAP 113 eBall_03.bmp 30 BITMAP 114 eBall_04.bmp 31 BITMAP 115 eBall_05.bmp 32 BITMAP 116 eBall_06.bmp 33 BITMAP 117 eBall_07.bmp 34 BITMAP 118 eBall_08.bmp 35 BITMAP 119 eBall_09.bmp 36 BITMAP 120 eBall_10.bmp 37 BITMAP 121 eBall_11.bmp 38 BITMAP 122 eBall_12.bmp 39 BITMAP 123 eBall_13.bmp 40 BITMAP 124 eBall_14.bmp 41 BITMAP 125 eBall_15.bmp 42 BITMAP 126 eBall_16.bmp 43 BITMAP 127 eBall_17.bmp 44 BITMAP 128 eBall_18.bmp 45 BITMAP 129 eBall_19.bmp 46 BITMAP 130 eBall_20.bmp 47 BITMAP 131 eBall_21.bmp 48 BITMAP 132 eBall_22.bmp 49 BITMAP 133 eBall_23.bmp 50 BITMAP 134 eBall_24.bmp 51 BITMAP 135 eBall_25.bmp -
branches/guitools-2.0/smbmon/smbmon.vrp
r329 r334 7 7 VRXWindow: __VREMainWindow,1,2180,3710,940,8000 8 8 VRXWindow: __VRESectionListWindow,1,2650,12093,9359,3300 9 VRXWindow: __VREToolsWindow,1,2204,1590,6989,16 639 VRXWindow: __VREToolsWindow,1,2204,1590,6989,1659 10 10 VRXWindow: __VREWindListWindow,1,265,12093,2650,3150 11 11 UserFile: 1 -
branches/guitools-2.0/smbmon/smbmon.vrx
r315 r334 198 198 say '_ContainerInit() done.' 199 199 return 200 /*:VRX _ContainerSort 201 */ 202 _ContainerSort: 203 ok = VRMethod( "LB_SortFields", "GetSelectedList", "SortFields." ) 204 if Fields.0 = 0 then return 205 idx = SortFields.1 206 ok = VRset( Container, "DetailSort", Fields.idx ) 207 ok = VRSet( Container, "Sort", SortOrder ) 208 ok = VRMethod( Container, "SortRecords" ) 209 return 210 200 211 /*:VRX _GuessIcon 201 212 */ … … 259 270 call _INILayoutRead "CN_smbtree" 260 271 272 ok = VRset("CN_DAEMONS", "MiniIcons", \advanced.!bigicons) 273 ok = VRset("CN_SMBTREE", "MiniIcons", \advanced.!bigicons) 274 ok = VRset("ContextMenu_Tree_MiniIcons", "Checked", \advanced.!bigicons) 275 ok = VRset("ContextMenu_Daemons_MiniIcons", "Checked", \advanced.!bigicons) 276 261 277 if _ChkTempFreeSpace() < 262144 then do 262 278 Msg.Type = "W" … … 355 371 else ok = VRREdirectStdIO("OFF") 356 372 373 advanced.!bigicons = VRGetIni( "Settings", "BigIcons", OurINI) 374 if advanced.!bigicons = "" then advanced.!bigicons = 0 375 357 376 /* For Browse page */ 358 377 FirstRun = 1 … … 387 406 ok = VRSetIni( "Settings", "TreeView", VRGet("CN_smbtree","View"), OurINI,'NoClose') 388 407 ok = VRSetIni( "Settings", "NoMsgBox", NoMsgBox, OurINI,'NoClose') 408 ok = VRSetIni( "Settings", "BigIcons", \VRGet("CN_SMBTREE", "MiniIcons"),OurINI,'NoClose') 389 409 390 410 ok = VRSetIni( "Options", "Debug", options.!debug, OurINI, 'NoClose' ) … … 483 503 CALL NLVSetText 'CB_NoMsgBox', 'Caption', 27 484 504 485 CALL NLVSetText 'ContextMenu_Daemons_ View', 'Caption', 31505 CALL NLVSetText 'ContextMenu_Daemons_Sort', 'Caption', 35 486 506 CALL NLVSetText 'ContextMenu_Daemons_Ping', 'Caption', 32 487 507 CALL NLVSetText 'ContextMenu_Daemons_Details','Caption', 118 488 508 CALL NLVSetText 'ContextMenu_Daemons_Tree', 'Caption', 120 489 509 490 CALL NLVSetText 'ContextMenu_Service_CloseSHare', 'Caption', 70 510 CALL NLVSetText 'ContextMenu_Files_Sort', 'Caption', 35 511 512 CALL NLVSetText 'ContextMenu_Service_Sort', 'Caption', 35 513 CALL NLVSetText 'ContextMenu_Service_CloseSHare', 'Caption', 70 491 514 492 515 CALL NLVSetText 'ContextMenu_Users_SendMsg', 'Caption', 80 516 CALL NLVSetText 'ContextMenu_Users_Sort', 'Caption', 35 517 493 518 CALL NLVSetText 'ContextMenu_Tree_SendMsg', 'Caption', 80 494 CALL NLVSetText 'ContextMenu_Tree_ View', 'Caption', 31519 CALL NLVSetText 'ContextMenu_Tree_Sort', 'Caption', 35 495 520 CALL NLVSetText 'ContextMenu_Tree_Tree', 'Caption', 120 496 521 CALL NLVSetText 'ContextMenu_Tree_Details', 'Caption', 118 … … 1068 1093 ok = VRSet("TM_refresh","Enabled", 0) 1069 1094 DRH = VRInfo("Record") 1095 OH = VRInfo("Object") 1070 1096 ok = VRset("ContextMenu_Daemons_Sep1","Visible", 0 ) 1071 1097 ok = VRset("ContextMenu_Daemons_Ping","Visible", (DRH <> "") ) … … 1100 1126 else do 1101 1127 RH = VRInfo("Record") 1128 OH = VRInfo("Object") 1102 1129 if RH <> "" then do 1103 /* Does not exist yet 1104 ok = VRMethod( "Contextmenu_Files", "Popup", , , "", "PositionOnItem" ) */ 1130 ok = VRMethod( "Contextmenu_Files", "Popup", , , "", "PositionOnItem" ) 1105 1131 end 1106 1132 end … … 1114 1140 ok = VRSet("TM_refresh","Enabled", 0) 1115 1141 SRH = VRInfo("Record") 1142 OH = VRInfo("Object") 1116 1143 if SRH <> "" then do 1117 1144 Service = VRMethod("CN_Service", "GetFieldData", SRH, ServiceFH) … … 1141 1168 else do 1142 1169 RH = VRInfo("Record") 1170 OH = VRInfo("Object") 1171 say "OH="VRGet(OH,"Name") 1143 1172 if RH <> "" then do 1144 1173 CurMachine = VRMethod( "CN_users", "GetFieldData", RH, UMachineFH ) … … 1227 1256 ok = VRset("ContextMenu_Daemons_Details","Enabled",0) 1228 1257 ok = VRSet("TM_refresh","Enabled", 1) 1258 return 1259 1260 /*:VRX ContextMenu_Daemons_MiniIcons_Click 1261 */ 1262 ContextMenu_Daemons_MiniIcons_Click: 1263 advanced.!bigicons = \advanced.!bigicons 1264 ok = VRset("CN_DAEMONS", "MiniIcons", \advanced.!bigicons) 1265 ok = VRset("CN_SMBTREE", "MiniIcons", \advanced.!bigicons) 1266 ok = VRset("ContextMenu_Tree_MiniIcons", "Checked", \advanced.!bigicons) 1267 ok = VRset("ContextMenu_Daemons_MiniIcons", "Checked", \advanced.!bigicons) 1229 1268 return 1230 1269 … … 1252 1291 return 1253 1292 1293 /*:VRX ContextMenu_Daemons_Sort_Click 1294 */ 1295 ContextMenu_Daemons_Sort_Click: 1296 window = VRLoadSecondary( "SW_SORT", "W" ) 1297 return 1298 1254 1299 /*:VRX ContextMenu_Daemons_Tree_Click 1255 1300 */ … … 1259 1304 ok = VRset("ContextMenu_Daemons_Details","Enabled",1) 1260 1305 ok = VRSet("TM_refresh","Enabled", 1) 1306 return 1307 1308 /*:VRX ContextMenu_Files_Sort_Click 1309 */ 1310 ContextMenu_Files_Sort_Click: 1311 window = VRLoadSecondary( "SW_SORT", "W" ) 1261 1312 return 1262 1313 … … 1277 1328 return 1278 1329 1330 /*:VRX ContextMenu_Service_Sort_Click 1331 */ 1332 ContextMenu_Service_Sort_Click: 1333 window = VRLoadSecondary( "SW_SORT", "W" ) 1334 return 1335 1279 1336 /*:VRX ContextMenu_Tree_Details_Click 1280 1337 */ … … 1284 1341 ok = VRset("ContextMenu_Tree_Details","Enabled",0) 1285 1342 ok = VRset("ContextMenu_Tree_Icons","Enabled",1) 1343 ok = VRset("TM_Throbber", "Enabled", 1) 1344 ok = VRset("Pict_Throbber", "Visible", 0) 1286 1345 call _RefreshTree 1287 1346 return … … 1294 1353 ok = VRset("ContextMenu_Tree_Tree","Enabled",1) 1295 1354 ok = VRset("ContextMenu_Tree_Details","Enabled",1) 1355 ok = VRset("TM_Throbber", "Enabled", 1) 1356 ok = VRset("Pict_Throbber", "Visible", 1) 1296 1357 call _RefreshTree 1358 return 1359 1360 /*:VRX ContextMenu_Tree_MiniIcons_Click 1361 */ 1362 ContextMenu_Tree_MiniIcons_Click: 1363 advanced.!bigicons = \advanced.!bigicons 1364 ok = VRset("CN_DAEMONS", "MiniIcons", \advanced.!bigicons) 1365 ok = VRset("CN_SMBTREE", "MiniIcons", \advanced.!bigicons) 1366 ok = VRset("ContextMenu_Tree_MiniIcons", "Checked", \advanced.!bigicons) 1367 ok = VRset("ContextMenu_Daemons_MiniIcons", "Checked", \advanced.!bigicons) 1297 1368 return 1298 1369 … … 1301 1372 ContextMenu_Tree_SendMsg_Click: 1302 1373 call _SendMsg 1374 return 1375 1376 /*:VRX ContextMenu_Tree_Sort_Click 1377 */ 1378 ContextMenu_Tree_Sort_Click: 1379 window = VRLoadSecondary( "SW_SORT", "W" ) 1303 1380 return 1304 1381 … … 1310 1387 ok = VRset("ContextMenu_Tree_Details","Enabled",1) 1311 1388 ok = VRset("ContextMenu_Tree_Icons","Enabled",1) 1389 ok = VRset("TM_Throbber", "Enabled", 1) 1390 ok = VRset("Pict_Throbber", "Visible", 1) 1312 1391 call _RefreshTree 1313 1392 return … … 1317 1396 ContextMenu_Users_SendMsg_Click: 1318 1397 call _SendMsg 1398 return 1399 1400 /*:VRX ContextMenu_Users_Sort_Click 1401 */ 1402 ContextMenu_Users_Sort_Click: 1403 window = VRLoadSecondary( "SW_SORT", "W" ) 1319 1404 return 1320 1405 … … 1436 1521 return 1437 1522 1523 /*:VRX LB_SortFields_Click 1524 */ 1525 LB_SortFields_Click: 1526 call _ContainerSort 1527 return 1528 1438 1529 /*:VRX Main_Activate 1439 1530 */ … … 1461 1552 call _GUIInit 1462 1553 1463 str = 'call TAB_'CurrentPageNr'_Click'; interpret str 1554 str = 'call TAB_'CurrentPageNr'_Click'; 1555 say str 1556 interpret str 1557 say 'Done 'str 1558 if CurrentPageNr <> 5 then do 1559 ok = VRSet("TM_Throbber", "Enabled", 1) 1560 call _RefreshTree 1561 end 1464 1562 ok = VRMethod("PB_Refresh","SetFocus") 1465 call _Refresh1466 if FirstRun = 1 & CurrentPageNr = 5 then call _RefreshTree1467 1563 return 1468 1564 /*:VRX Main_Deactivate … … 1532 1628 ok = VRset("CN_smbtree","Height", VRGet("Page_5","Height")-120) 1533 1629 1534 1630 ok = VRset("PICT_THROBBER", "Left", VRGet("CN_SMBTREE","Width")%2-240) 1631 ok = VRset("PICT_THROBBER", "Top", VRGet("CN_SMBTREE","Height")%2-200) 1632 1535 1633 1536 1634 ButtonDist= 980 … … 1654 1752 PB_Refresh_Click: 1655 1753 ok = SysSleep(0.3) 1656 if CurrentPageNr = 5 1657 then call _RefreshTree 1658 else call _Refresh 1754 if CurrentPageNr = 5 then do 1755 ok = VRset("Pict_Throbber", "Visible", 1) 1756 ok = VRset("TM_Throbber", "Enabled", 1) 1757 call _RefreshTree 1758 end 1759 else call _Refresh 1760 return 1761 1762 /*:VRX PB_Sort_Cancel_Click 1763 */ 1764 PB_Sort_Cancel_Click: 1765 ok = VRset( Container, "DetailSort", Old.SortField ) 1766 ok = VRSet( Container, "Sort", Old.SortOrder ) 1767 ok = VRMethod( Container, "SortRecords" ) 1768 drop Old. 1769 call SW_SORT_Close 1770 return 1771 1772 /*:VRX PB_Sort_OK_Click 1773 */ 1774 PB_Sort_OK_Click: 1775 drop Old. 1776 call SW_SORT_Close 1659 1777 return 1660 1778 … … 1707 1825 return 1708 1826 1827 /*:VRX RB_Sort_Ascending_Click 1828 */ 1829 RB_Sort_Ascending_Click: 1830 SortOrder = "Ascending" 1831 call _ContainerSort 1832 return 1833 1834 /*:VRX RB_Sort_Descending_Click 1835 */ 1836 RB_Sort_Descending_Click: 1837 SortOrder = "Descending" 1838 call _ContainerSort 1839 return 1840 1841 /*:VRX RB_Sort_None_Click 1842 */ 1843 RB_Sort_None_Click: 1844 SortOrder = "None" 1845 call _ContainerSort 1846 return 1847 1709 1848 /*:VRX SPIN_Intervall_Change 1710 1849 */ … … 1720 1859 return 1721 1860 1861 /*:VRX SW_SORT_Close 1862 */ 1863 SW_SORT_Close: 1864 call SW_SORT_Fini 1865 return 1866 1867 /*:VRX SW_SORT_Create 1868 */ 1869 SW_SORT_Create: 1870 call SW_SORT_Init 1871 1872 CALL NLVSetText 'SW_SORT', 'Caption', 35 1873 CALL NLVSetText 'PB_Sort_OK', 'Caption', 2 1874 CALL NLVSetText 'PB_Sort_Cancel', 'Caption', 3 1875 1876 CALL NLVSetText 'RB_Sort_Ascending', 'Caption', 90 1877 CALL NLVSetText 'RB_Sort_Descending', 'Caption', 91 1878 CALL NLVSetText 'RB_Sort_None', 'Caption', 92 1879 1880 Container = OH 1881 say OH 1882 say Container 1883 ok = VRMethod(Container, "GetFieldList", "Fields." ) 1884 1885 SortOrder = "None" 1886 1887 do I = 1 to Fields.0 1888 ok = VRMethod("LB_SortFields","AddString", VRMethod(Container, "GetFieldAttr", fields.I, "Title" )) 1889 end 1890 Old.SortField = VRGet( Container, "DetailSort" ) 1891 Old.SortOrder = VRGet( Container, "Sort" ) 1892 say Old.SortField 1893 say Old.SortOrder 1894 return 1895 1896 /*:VRX SW_SORT_Fini 1897 */ 1898 SW_SORT_Fini: 1899 window = VRInfo( "Window" ) 1900 call VRDestroy window 1901 drop window 1902 return 1903 /*:VRX SW_SORT_Init 1904 */ 1905 SW_SORT_Init: 1906 window = VRInfo( "Object" ) 1907 if( \VRIsChildOf( window, "Notebook" ) ) then do 1908 call VRMethod window, "CenterWindow" 1909 call VRSet window, "Visible", 1 1910 call VRMethod window, "Activate" 1911 end 1912 drop window 1913 return 1914 1722 1915 /*:VRX TAB_1_Click 1723 1916 */ 1724 1917 TAB_1_Click: 1918 if VRGet("TM_Throbber","Enabled") = 1 then ok = VRset("Pict_Throbber", "Visible", 0) 1725 1919 call Activate 1 1726 1920 return … … 1729 1923 */ 1730 1924 TAB_2_Click: 1925 if VRGet("TM_Throbber","Enabled") = 1 then ok = VRset("Pict_Throbber", "Visible", 0) 1731 1926 call Activate 2 1732 1927 return … … 1735 1930 */ 1736 1931 TAB_3_Click: 1932 if VRGet("TM_Throbber","Enabled") = 1 then ok = VRset("Pict_Throbber", "Visible", 0) 1737 1933 call Activate 3 1738 1934 return … … 1741 1937 */ 1742 1938 TAB_4_Click: 1939 if VRGet("TM_Throbber","Enabled") = 1 then ok = VRset("Pict_Throbber", "Visible", 0) 1743 1940 call Activate 4 1744 1941 return … … 1747 1944 */ 1748 1945 TAB_5_Click: 1946 if VRGet("TM_Throbber", "Enabled") then ok = VRset("Pict_Throbber", "Visible", 1) 1749 1947 call Activate 5 1750 if FirstRun = 1 then call _RefreshTree 1948 if FirstRun = 1 then do 1949 ok = VRset("TM_Throbber", "Enabled", 1) 1950 ok = VRset("Pict_Throbber", "Visible", 1) 1951 call _RefreshTree 1952 end 1751 1953 return 1752 1954 … … 1754 1956 */ 1755 1957 TAB_6_Click: 1958 if VRGet("TM_Throbber","Enabled") = 1 then ok = VRset("Pict_Throbber", "Visible", 0) 1756 1959 call Activate 6 1757 1960 return … … 1770 1973 return 1771 1974 1975 /*:VRX TM_Throbber_Trigger 1976 */ 1977 TM_Throbber_Trigger: 1978 pIdx = VRGet("Pict_Throbber","PicturePath") 1979 parse var pIdx '#' pidx 1980 pidx = pidx + 1 1981 if pidx = 136 then pidx = 111 1982 ok = VRSet("Pict_Throbber","PicturePath","#"pidx) 1983 return 1984 -
branches/guitools-2.0/smbmon/smbmon_de.mkm
r315 r334 39 39 SMM0033I: "%1"-Prozess stoppen 40 40 SMM0034I: Den "%1"-Prozess wirklich stoppen? 41 SMM0035 ?:41 SMM0035I: Sortieren 42 42 SMM0036?: 43 43 SMM0037?: … … 98 98 SMM0088?: 99 99 SMM0089?: 100 SMM0090 ?:101 SMM0091 ?:102 SMM0092 ?:100 SMM0090I: Aufsteigend 101 SMM0091I: Absteigend 102 SMM0092I: Nicht sortieren 103 103 SMM0093?: 104 104 SMM0094?: … … 139 139 SMM0128?: 140 140 SMM0129?: 141 ; User container colum sn141 ; User container columns 142 142 SMM0130I: PID 143 143 SMM0131I: Benutzer -
branches/guitools-2.0/smbmon/smbmon_en.mkm
r315 r334 39 39 SMM0033I: Shutdown "%1"-daemon 40 40 SMM0034I: Really shutdown "%1"-daemon? 41 SMM0035 ?:41 SMM0035I: Sort 42 42 SMM0036?: 43 43 SMM0037?: … … 98 98 SMM0088?: 99 99 SMM0089?: 100 SMM0090 ?:101 SMM0091 ?:102 SMM0092 ?:100 SMM0090I: Ascending 101 SMM0091I: Descending 102 SMM0092I: None 103 103 SMM0093?: 104 104 SMM0094?: -
branches/guitools-2.0/smbmon/smbmon_es.mkm
r315 r334 39 39 SMM0033I: Apagar "%1"-daemon 40 40 SMM0034I: Realmente apagar "%1"-daemon? 41 SMM0035 ?:41 SMM0035I: Ordenar 42 42 SMM0036?: 43 43 SMM0037?: … … 98 98 SMM0088?: 99 99 SMM0089?: 100 SMM0090 ?:101 SMM0091 ?:102 SMM0092 ?:100 SMM0090I: Ascendente 101 SMM0091I: Descendente 102 SMM0092I: Ordenar no 103 103 SMM0093?: 104 104 SMM0094?: -
branches/guitools-2.0/smbmon/smbmon_fr.mkm
r315 r334 41 41 SMM0033I: Arrter le dmon-"%1" 42 42 SMM0034I: Voulez-vous rellement arrter le dmon-"%1" ? 43 SMM0035 ?:43 SMM0035I: Trier 44 44 SMM0036?: 45 45 SMM0037?: … … 101 101 SMM0088?: 102 102 SMM0089?: 103 SMM0090 ?:104 SMM0091 ?:105 SMM0092 ?:103 SMM0090I: Ascendant 104 SMM0091I: Descendant 105 SMM0092I: Ne pas regrouper 106 106 SMM0093?: 107 107 SMM0094?: -
branches/guitools-2.0/smbmon/smbmon_sv.mkm
r315 r334 39 39 SMM0033I: Stng ned "%1" 40 40 SMM0034I: Skall verkligen "%1" stoppas? 41 SMM0035 ?:41 SMM0035I: Sortera 42 42 SMM0036?: 43 43 SMM0037?: … … 98 98 SMM0088?: 99 99 SMM0089?: 100 SMM0090 ?:101 SMM0091 ?:102 SMM0092 ?:100 SMM0090I: Upp 101 SMM0091I: Nere 102 SMM0092I: Sortera inte 103 103 SMM0093?: 104 104 SMM0094?:
Note:
See TracChangeset
for help on using the changeset viewer.