2015-07-19 20:45:59 +02:00
|
|
|
|
#define BROWSER_PATH "/sys/network/webview"
|
2015-12-26 02:32:07 +01:00
|
|
|
|
#define BROWSER_LINK "http://kolibri-n.org/inf/eolite/eolite_p1"
|
2013-03-11 19:16:24 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void about_dialog()
|
|
|
|
|
{
|
2018-04-19 22:12:07 +02:00
|
|
|
|
int id;
|
2015-02-26 23:29:09 +01:00
|
|
|
|
proc_info about_form;
|
2016-02-14 19:42:49 +01:00
|
|
|
|
int about_x;
|
2015-02-26 23:29:09 +01:00
|
|
|
|
|
2015-12-26 02:32:07 +01:00
|
|
|
|
if (active_about) {cmd_free=2;ExitProcess();} else active_about=1;
|
2013-03-11 19:16:24 +01:00
|
|
|
|
loop() switch(WaitEvent())
|
|
|
|
|
{
|
|
|
|
|
case evButton:
|
|
|
|
|
id=GetButtonID();
|
2016-02-14 19:42:49 +01:00
|
|
|
|
IF (id==1)
|
2013-10-16 23:03:17 +02:00
|
|
|
|
{
|
|
|
|
|
active_about=0;
|
2015-07-16 03:44:30 +02:00
|
|
|
|
cmd_free = 2;
|
2013-10-16 23:03:17 +02:00
|
|
|
|
ExitProcess();
|
|
|
|
|
}
|
2015-12-26 02:32:07 +01:00
|
|
|
|
IF (id==11) RunProgram(BROWSER_PATH, BROWSER_LINK);
|
2013-03-11 19:16:24 +01:00
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case evKey:
|
2017-10-05 11:37:50 +02:00
|
|
|
|
GetKeys();
|
|
|
|
|
IF (key_scancode == SCAN_CODE_ESC)
|
2013-10-16 23:03:17 +02:00
|
|
|
|
{
|
|
|
|
|
active_about=0;
|
2015-07-16 03:44:30 +02:00
|
|
|
|
cmd_free = 2;
|
2013-10-16 23:03:17 +02:00
|
|
|
|
ExitProcess();
|
|
|
|
|
}
|
2013-03-11 19:16:24 +01:00
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case evReDraw:
|
2022-01-08 20:52:20 +01:00
|
|
|
|
DefineAndDrawWindow(Form.left+Form.width/2,Form.top+Form.height/2-114,300,300+skin_h,0x34,sc.work,T_ABOUT,0);
|
2015-02-26 23:29:09 +01:00
|
|
|
|
GetProcessInfo(#about_form, SelfInfo);
|
2016-01-10 21:02:47 +01:00
|
|
|
|
if (about_form.status_window>2) break;
|
2020-04-18 01:52:24 +02:00
|
|
|
|
logo_pal[0] = sc.work;
|
|
|
|
|
ESDWORD[#logo_pal+16] = sc.work_dark;
|
2016-02-14 19:42:49 +01:00
|
|
|
|
PutPaletteImage(#logo,86,86,about_form.cwidth-86/2,10,8,#logo_pal);
|
|
|
|
|
about_x = -strlen(ABOUT_TITLE)*18+about_form.cwidth/2;
|
|
|
|
|
WriteTextB(about_x+2,107,0x82,0xD49CD2,ABOUT_TITLE);
|
|
|
|
|
WriteTextB(about_x,105,0x82,0x9D129D,ABOUT_TITLE);
|
2021-06-05 17:18:11 +02:00
|
|
|
|
WriteTextLines(73,163,0x90,sc.work_text," By Leency\nand KolibriOS Team\n 2008-2021",20);
|
2015-12-26 02:32:07 +01:00
|
|
|
|
#ifdef LANG_RUS
|
2018-05-13 18:06:20 +02:00
|
|
|
|
DrawStandartCaptButton(60,about_form.cheight-38,11,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ࠧࠡ<E0A0A7>⪨");
|
2015-12-26 02:32:07 +01:00
|
|
|
|
#endif
|
2013-03-11 19:16:24 +01:00
|
|
|
|
}
|
2015-08-05 17:30:25 +02:00
|
|
|
|
}
|