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:
|
2017-10-05 11:37:50 +02:00
|
|
|
|
DefineAndDrawWindow(Form.left+Form.width/2,Form.top+Form.height/2-114,310,300+skin_height,0x34,system.color.work,NULL,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;
|
2016-02-11 02:07:04 +01:00
|
|
|
|
logo_pal[0] = system.color.work;
|
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);
|
2016-02-21 22:57:22 +01:00
|
|
|
|
DrawRectangle3D(0,154,about_form.cwidth,1,system.color.work_dark,system.color.work_light);
|
2017-07-04 17:14:51 +02:00
|
|
|
|
WriteTextLines(7,163,0x90,system.color.work_text,"KolibriOS File Manager\nAuthors: Leency, Veliant\nPunk_Joker, Pavelyakov\n(c) 2008 - 2017",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
|
|
|
|
}
|