System Panel:

- add Network Speed test (thanks Coldy for the idea)
- add AMDtemp, also add app icon into icons32.png

git-svn-id: svn://kolibrios.org@9246 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2021-11-03 22:53:03 +00:00
parent 041b56415a
commit 7015aadd71
6 changed files with 24 additions and 7 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 44 KiB

View File

@ -1,6 +1,6 @@
[Config]
title=KolibriOS System Panel
win_width=670
win_width=680
cell_w=82
cell_h=78
@ -28,13 +28,15 @@ GhostMonitor=gmon,107
SysMonitor=sysmon,57
Processes=cpu,60
Clipboard=develop/clipview,83
PciDevice=pcidev,38
AMDtemp=/k/utils/AMDtemp,128
[Testing]
Protection=test,37
CpuID=cpuid,37
Display=disptest,113
File Speed=fspeed,45
HDDinfo=hdd_info,50
BusOff=kbd,37
GraphicBench=mgb,121
PciDevice=pcidev,38
Protection=test,37
Graphic Bench=mgb,121
Network Speed=network/dl|-test,51

View File

@ -28,13 +28,15 @@ Ghost monitor=gmon,107
‘¨á⥬­ë© ¬®­¨â®à=sysmon,57
<EFBFBD>à®æ¥ááë=cpu,60
<EFBFBD>ãä¥à ®¡¬¥­ =develop/clipview,83
“áâனá⢠ PCI=pcidev,38
AMDtemp=/k/utils/AMDtemp,128
[’¥áâ¨à®¢ ­¨¥]
’Ąáâ § é¨âë=test,37
CpuId=cpuid,37
<EFBFBD>ªà ­=disptest,113
‘ª®à®áâì ”‘=fspeed,45
ˆ­ä®à¬ æ¨ï ® ¤¨áª å=hdd_info,50
˜¨­ =kbd,37
’Ąáâ § é¨âë=test,37
‘ª®à®áâì £à ä¨ª¨=mgb,121
“áâனá⢠ PCI=pcidev,38
‘Ş®ŕ®áâě áĄâ¨=network/dl|-test,51

View File

@ -34,4 +34,5 @@ Complex:
<a href=//artcon.ru>artcon.ru</a>
<a href=//nubo.ru>nubo.ru</a>
<a href=//salinc.ru>salinc.ru</a>
<a href=//electromyne.de>electromyne.de</a>
<a href=//electromyne.de>electromyne.de</a>
<a href=//www.thg.ru/graphic/25year_ati_history>tom's hardware</a>

View File

@ -6,11 +6,13 @@
#define T_CANCEL "Žâ¬¥­ "
#define T_OPEN_DIR "<22>®ª § âì ¢ ¯ ¯ª¥"
#define T_RUN "Žâªàëâì ä ©«"
#define T_SPEED_TEST "’¥áâ ᪮à®áâ¨"
#define FILE_SAVED_AS "'Œ¥­¥¤¦¥à § £à㧮ª\n” ©« á®åà ­¥­ ª ª %s' -Dt"
#define FILE_NOT_SAVED "'Œ¥­¥¤¦¥à § £à㧮ª\nŽè¨¡ª ! ” ©« ­¥ ¬®¦¥â ¡ëâì á®åà ­¥­ ª ª\n%s' -Et"
#define KB_RECEIVED "ˆ¤¥â ᪠稢 ­¨¥... %s ¯®«ã祭®"
#define T_ERROR_STARTING_DOWNLOAD "'<27>¥¢®§¬®¦­® ­ ç âì ᪠稢 ­¨¥.\n<>஢¥àì⥠¢¢¥¤¥­­ë© ¯ãâì ¨ ᮥ¤¨­¥­¨¥ á ˆ­â¥à­¥â®¬.' -E"
#define T_AUTOCLOSE "€¢â®§ ªàë⨥"
#define SPEED_TEST_INFO_MESSAGE "'‘ª®à®áâì § £à㧪¨ ®â®¡à ¦ ¥âáï ¢ ¯®«¥ Download ¯à®£à ¬¬ë Network status.'-Id"
char accept_language[]= "Accept-Language: ru\n";
#else
#define DL_WINDOW_HEADER "Download Manager"
@ -18,11 +20,13 @@
#define T_CANCEL "Cancel"
#define T_OPEN_DIR " Show in folder "
#define T_RUN "Open file"
#define T_SPEED_TEST "Speed test"
#define FILE_SAVED_AS "'Download manager\nFile saved as %s' -Dt"
#define FILE_NOT_SAVED "'Download manager\nError! Can\96t save file as %s' -Et"
#define KB_RECEIVED "Downloading... %s received"
#define T_ERROR_STARTING_DOWNLOAD "'Error while starting download process.\nCheck entered path and Internet connection.' -E"
#define T_AUTOCLOSE "Autoclose"
#define SPEED_TEST_INFO_MESSAGE "'Download speed is shown after `Download`\nlabel in the Network status program.'-Id"
char accept_language[]= "Accept-Language: en\n";
#endif
@ -33,6 +37,8 @@
char save_dir[] = "/tmp0/1/Downloads";
char dl_shared[] = "DL";
#define URL_SPEED_TEST "http://speedtest.tele2.net/100MB.zip"
enum {
BTN_EXIT=1,
BTN_START,

View File

@ -48,6 +48,12 @@ void main()
} else {
strcpy(#uEdit, #param);
}
if (streq(#param, "-test")) {
strcpy(#uEdit, URL_SPEED_TEST);
RunProgram("/sys/network/netstat", NULL);
notify(SPEED_TEST_INFO_MESSAGE);
}
}
if (uEdit[0]) StartDownloading(); else {
edit_box_set_text stdcall (#ed, "http://");