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);
|
|
|
|
|
if (Form.status_window>2) break;
|
2015-12-26 02:32:07 +01:00
|
|
|
|
_PutImage(10, 15, 86, 86, #logo);
|
|
|
|
|
WriteTextB(110,15,0x81,0xBF40BF,ABOUT_TITLE);
|
|
|
|
|
WriteTextLines(110,53,10010000b,0,DEVELOPERS_TEXT,21);
|
|
|
|
|
#ifdef LANG_RUS
|
|
|
|
|
DrawFlatButton(about_form.cwidth-250,about_form.cheight-35,130,22,11,0xE4DFE1,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ࠧࠡ<E0A0A7>⪨");
|
|
|
|
|
#endif
|
|
|
|
|
DrawFlatButton(about_form.cwidth-100,about_form.cheight-35,70,22,10,0xE4DFE1,CLOSE_BUTTON_TEXT);
|
2013-03-11 19:16:24 +01:00
|
|
|
|
}
|
2015-08-05 17:30:25 +02:00
|
|
|
|
}
|