2015-12-26 02:32:07 +01:00
|
|
|
|
//Leency 2008-2016
|
2013-03-11 19:16:24 +01:00
|
|
|
|
|
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
|
|
|
|
|
2013-08-04 01:35:59 +02:00
|
|
|
|
#ifdef LANG_RUS
|
2015-12-26 02:32:07 +01:00
|
|
|
|
?define DEVELOPERS_TEXT "<EFBFBD><EFBFBD><EFBFBD>ࠡ<EFBFBD><EFBFBD>稪<EFBFBD>:\nLeency Veliant PunkJoker Pavelyakov\nKolibriOS Team\n2008-2016"
|
|
|
|
|
?define CLOSE_BUTTON_TEXT "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
2013-08-04 01:35:59 +02:00
|
|
|
|
#else
|
2015-12-26 02:32:07 +01:00
|
|
|
|
?define DEVELOPERS_TEXT "Developers:\nLeency Veliant PunkJoker Pavelyakov\nKolibriOS Team\n2008-2016"
|
|
|
|
|
?define CLOSE_BUTTON_TEXT "Close"
|
2013-08-04 01:35:59 +02:00
|
|
|
|
#endif
|
2013-03-11 19:16:24 +01:00
|
|
|
|
|
|
|
|
|
void about_dialog()
|
|
|
|
|
{
|
|
|
|
|
byte id;
|
2015-02-26 23:29:09 +01:00
|
|
|
|
proc_info about_form;
|
|
|
|
|
|
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();
|
2013-10-16 23:03:17 +02:00
|
|
|
|
IF (id==1) || (id==10)
|
|
|
|
|
{
|
|
|
|
|
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:
|
2013-10-16 23:03:17 +02:00
|
|
|
|
IF (GetKey()==27)
|
|
|
|
|
{
|
|
|
|
|
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:
|
2015-12-26 02:32:07 +01:00
|
|
|
|
DefineAndDrawWindow(Form.left+Form.width/2,Form.top+Form.height/2-114,440,200+GetSkinHeight(),0x34,system.color.work,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;
|
|
|
|
|
_PutImage(10, 23, 86, 86, #logo);
|
|
|
|
|
WriteTextB(112,16,0x82,0xD49CD2,ABOUT_TITLE);
|
|
|
|
|
WriteTextB(110,14,0x82,0xBF40BF,ABOUT_TITLE);
|
2015-12-26 02:32:07 +01:00
|
|
|
|
WriteTextLines(110,53,10010000b,0,DEVELOPERS_TEXT,21);
|
|
|
|
|
#ifdef LANG_RUS
|
2016-01-10 21:02:47 +01:00
|
|
|
|
DrawFlatButton(about_form.cwidth-310,about_form.cheight-38,180,26,11,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ࠧࠡ<E0A0A7>⪨");
|
2015-12-26 02:32:07 +01:00
|
|
|
|
#endif
|
2016-01-10 21:02:47 +01:00
|
|
|
|
DrawFlatButton(about_form.cwidth-110,about_form.cheight-38, 90,26,10,CLOSE_BUTTON_TEXT);
|
2013-03-11 19:16:24 +01:00
|
|
|
|
}
|
2015-08-05 17:30:25 +02:00
|
|
|
|
}
|