cmm: clean up

git-svn-id: svn://kolibrios.org@8509 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2021-01-03 23:02:07 +00:00
parent a0d5358c87
commit 0565849c3f
12 changed files with 1 additions and 105 deletions

View File

@ -6,7 +6,7 @@
#include "..\lib\obj\proc_lib.h" #include "..\lib\obj\proc_lib.h"
#include "..\lib\patterns\simple_open_dialog.h" #include "..\lib\patterns\simple_open_dialog.h"
#include "..\lib\patterns\restart_process.h" #include "..\lib\patterns\restart_process.h"
#include "..\lib\added_sysdir.c" #include "added_sysdir.c"
#ifndef AUTOBUILD #ifndef AUTOBUILD
#include "lang.h--" #include "lang.h--"

View File

@ -10,5 +10,4 @@ tup.rule("rgb.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD
tup.rule("console.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "console.com") tup.rule("console.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "console.com")
tup.rule("info.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "info.com") tup.rule("info.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "info.com")
tup.rule("pigex.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "pigex.com") tup.rule("pigex.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "pigex.com")
tup.rule("netcheck.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "netcheck.com")
tup.rule("math.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "math.com") tup.rule("math.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "math.com")

View File

@ -1,101 +0,0 @@
/*
* Network testing utility
* Leency 2018
*/
#define MEMSIZE 4096*10
#include "../lib/fs.h"
#include "../lib/gui.h"
#include "../lib/events.h"
//===================================================//
// //
// DATA //
// //
//===================================================//
char download_file[] = "-d http://kolibri-n.org/files/KolibriN9.zip";
EVENTS button;
EVENTS key;
//===================================================//
// //
// CODE //
// //
//===================================================//
void main()
{
loop() switch(WaitEvent())
{
case evButton:
button.press( GetButtonID() );
break;
case evKey:
GetKeys();
key.press( key_scancode );
break;
case evReDraw:
draw_window();
break;
}
}
void draw_window()
{
sc.get();
DefineAndDrawWindow(215, 100, 350, 300, 0x34, sc.work, "Network testing utility",0);
button.init(10);
key.init(10);
WriteText(10,10, 0x90, sc.work_text, "Download via:");
AddEvent(10, 30, #EventRunAsmDownloader, SCAN_CODE_F1, "ASM Downloader [F1]");
AddEvent(10, 60, #EventRunCmmDownloader, SCAN_CODE_F2, "C-- Downloader [F2]");
AddEvent(10, 120, #EventRunNetStat, SCAN_CODE_F3, "NetStat [F3]");
AddEvent(10, 150, #EventRunNetCfg, SCAN_CODE_F4, "NetCfg [F4]");
AddEvent(10, 180, #EventRunBoard, SCAN_CODE_F5, "Board [F5]");
button.add_n(1, #ExitProcess);
key.add_n(SCAN_CODE_ESC, #ExitProcess);
}
void AddEvent(dword bx, by, event, hotkey, text)
{
DrawStandartCaptButton(bx, by, button.add(event), text);
key.add_n(hotkey, event);
}
//===================================================//
// //
// EVENTS //
// //
//===================================================//
void EventRunAsmDownloader()
{
RunProgram("/sys/network/downloader", #download_file+3);
}
void EventRunCmmDownloader()
{
RunProgram("/sys/network/webview", #download_file);
}
void EventRunNetStat()
{
RunProgram("/sys/network/netstat", NULL);
}
void EventRunNetCfg()
{
RunProgram("/sys/network/netcfg", NULL);
}
void EventRunBoard()
{
RunProgram("/sys/develop/board", NULL);
}

View File

@ -114,8 +114,6 @@ void DrawLogo()
void EventInstall() void EventInstall()
{ {
//#include "..\lib\added_sysdir.c";
//SetAdditionalSystemDirectory("kolibrios", abspath("install/kolibrios")+1);
ini_set_int stdcall ("/sys/settings/taskbar.ini", "Flags", "Attachment", 0); ini_set_int stdcall ("/sys/settings/taskbar.ini", "Flags", "Attachment", 0);
copyf("/kolibrios/KolibriNext/settings", "/sys/settings"); copyf("/kolibrios/KolibriNext/settings", "/sys/settings");