2015-12-26 04:32:07 +03:00
|
|
|
|
//Leency 2008-2016
|
2013-03-11 22:16:24 +04:00
|
|
|
|
|
2015-07-19 21:45:59 +03:00
|
|
|
|
#define BROWSER_PATH "/sys/network/webview"
|
2015-12-26 04:32:07 +03:00
|
|
|
|
#define BROWSER_LINK "http://kolibri-n.org/inf/eolite/eolite_p1"
|
2013-03-11 22:16:24 +04:00
|
|
|
|
|
2013-08-04 03:35:59 +04:00
|
|
|
|
#ifdef LANG_RUS
|
2015-12-26 04:32:07 +03: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 03:35:59 +04:00
|
|
|
|
#else
|
2015-12-26 04:32:07 +03:00
|
|
|
|
?define DEVELOPERS_TEXT "Developers:\nLeency Veliant PunkJoker Pavelyakov\nKolibriOS Team\n2008-2016"
|
|
|
|
|
?define CLOSE_BUTTON_TEXT "Close"
|
2013-08-04 03:35:59 +04:00
|
|
|
|
#endif
|
2013-03-11 22:16:24 +04:00
|
|
|
|
|
|
|
|
|
void about_dialog()
|
|
|
|
|
{
|
|
|
|
|
byte id;
|
2015-02-27 01:29:09 +03:00
|
|
|
|
proc_info about_form;
|
|
|
|
|
|
2015-12-26 04:32:07 +03:00
|
|
|
|
if (active_about) {cmd_free=2;ExitProcess();} else active_about=1;
|
2013-03-11 22:16:24 +04:00
|
|
|
|
loop() switch(WaitEvent())
|
|
|
|
|
{
|
|
|
|
|
case evButton:
|
|
|
|
|
id=GetButtonID();
|
2013-10-17 01:03:17 +04:00
|
|
|
|
IF (id==1) || (id==10)
|
|
|
|
|
{
|
|
|
|
|
active_about=0;
|
2015-07-16 04:44:30 +03:00
|
|
|
|
cmd_free = 2;
|
2013-10-17 01:03:17 +04:00
|
|
|
|
ExitProcess();
|
|
|
|
|
}
|
2015-12-26 04:32:07 +03:00
|
|
|
|
IF (id==11) RunProgram(BROWSER_PATH, BROWSER_LINK);
|
2013-03-11 22:16:24 +04:00
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case evKey:
|
2013-10-17 01:03:17 +04:00
|
|
|
|
IF (GetKey()==27)
|
|
|
|
|
{
|
|
|
|
|
active_about=0;
|
2015-07-16 04:44:30 +03:00
|
|
|
|
cmd_free = 2;
|
2013-10-17 01:03:17 +04:00
|
|
|
|
ExitProcess();
|
|
|
|
|
}
|
2013-03-11 22:16:24 +04:00
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case evReDraw:
|
2015-12-26 04:32:07 +03:00
|
|
|
|
DefineAndDrawWindow(Form.left+Form.width/2,Form.top+Form.height/2-114,440,200+GetSkinHeight(),0x34,system.color.work,0);
|
2015-02-27 01:29:09 +03:00
|
|
|
|
GetProcessInfo(#about_form, SelfInfo);
|
2016-01-10 23:02:47 +03:00
|
|
|
|
if (about_form.status_window>2) break;
|
2016-02-11 04:07:04 +03:00
|
|
|
|
logo_pal[0] = system.color.work;
|
|
|
|
|
PutPaletteImage(#logo,86,86,10,23,8,#logo_pal);
|
2016-01-10 23:02:47 +03:00
|
|
|
|
WriteTextB(112,16,0x82,0xD49CD2,ABOUT_TITLE);
|
|
|
|
|
WriteTextB(110,14,0x82,0xBF40BF,ABOUT_TITLE);
|
2015-12-26 04:32:07 +03:00
|
|
|
|
WriteTextLines(110,53,10010000b,0,DEVELOPERS_TEXT,21);
|
|
|
|
|
#ifdef LANG_RUS
|
2016-01-10 23:02:47 +03:00
|
|
|
|
DrawFlatButton(about_form.cwidth-310,about_form.cheight-38,180,26,11,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ࠧࠡ<E0A0A7>⪨");
|
2015-12-26 04:32:07 +03:00
|
|
|
|
#endif
|
2016-01-10 23:02:47 +03:00
|
|
|
|
DrawFlatButton(about_form.cwidth-110,about_form.cheight-38, 90,26,10,CLOSE_BUTTON_TEXT);
|
2013-03-11 22:16:24 +04:00
|
|
|
|
}
|
2015-08-05 18:30:25 +03:00
|
|
|
|
}
|