2013-03-21 02:35:57 +04:00
|
|
|
|
//Leency 2008-2013
|
2013-03-11 22:16:24 +04:00
|
|
|
|
|
2015-07-19 21:45:59 +03:00
|
|
|
|
#define BROWSER_PATH "/sys/network/webview"
|
2013-03-11 22:16:24 +04:00
|
|
|
|
#define BROWSER_LINK "http://kolibri-n.org/index.php"
|
|
|
|
|
|
2013-08-04 03:35:59 +04:00
|
|
|
|
#ifdef LANG_RUS
|
|
|
|
|
?define INTRO_TEXT_1 "<EFBFBD> Eolite"
|
|
|
|
|
?define INTRO_TEXT_2 "<EFBFBD><EFBFBD><EFBFBD>ࠡ<EFBFBD><EFBFBD>稪<EFBFBD>:"
|
|
|
|
|
?define INTRO_TEXT_3 "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
|
|
|
|
?define INTRO_TEXT_4 "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
2013-09-24 22:50:05 +04:00
|
|
|
|
#elif LANG_EST
|
|
|
|
|
?define INTRO_TEXT_1 "Programmis Eolite"
|
|
|
|
|
?define INTRO_TEXT_2 "Arendajad:"
|
|
|
|
|
?define INTRO_TEXT_3 "K<EFBFBD>lasta"
|
|
|
|
|
?define INTRO_TEXT_4 "Sulge"
|
2013-08-04 03:35:59 +04:00
|
|
|
|
#else
|
|
|
|
|
?define INTRO_TEXT_1 "About Eolite"
|
|
|
|
|
?define INTRO_TEXT_2 "Developers:"
|
|
|
|
|
?define INTRO_TEXT_3 "Visit"
|
|
|
|
|
?define INTRO_TEXT_4 "Close"
|
|
|
|
|
#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-07-16 04:44:30 +03:00
|
|
|
|
IF (active_about){cmd_free = 2;ExitProcess();}
|
2013-10-17 01:03:17 +04:00
|
|
|
|
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();
|
|
|
|
|
}
|
2013-03-11 22:16:24 +04:00
|
|
|
|
IF (id==23) RunProgram(BROWSER_PATH, BROWSER_LINK);
|
|
|
|
|
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-08-04 17:36:07 +03:00
|
|
|
|
DefineAndDrawWindow(Form.left+Form.width/2,Form.top+Form.height/2-114,300,228+GetSkinHeight(),0x34,system.color.work,INTRO_TEXT_1);
|
2015-02-27 01:29:09 +03:00
|
|
|
|
GetProcessInfo(#about_form, SelfInfo);
|
|
|
|
|
if (Form.status_window>2) break;
|
|
|
|
|
DrawBar(0,0,about_form.cwidth,50,0x8494C4);
|
2015-07-16 04:44:30 +03:00
|
|
|
|
PutPaletteImage(#logo,85,85,about_form.width/2-43,7,8,#logo_pal);
|
|
|
|
|
WriteTextB(about_form.width/2-46,100,0x90,0xBF40BF,ABOUT_TITLE);
|
2015-02-27 01:29:09 +03:00
|
|
|
|
WriteTextCenter(0,120,about_form.cwidth,0,INTRO_TEXT_2);
|
2015-07-16 04:44:30 +03:00
|
|
|
|
WriteTextCenter(0,130,about_form.cwidth,0,"Leency Veliant PunkJoker Pavelyakov");
|
2015-02-27 01:29:09 +03:00
|
|
|
|
WriteTextCenter(0,140,about_form.cwidth,0,"KolibriOS Team");
|
|
|
|
|
WriteTextCenter(0,150,about_form.cwidth,0,"2008-2015");
|
2015-07-16 04:44:30 +03:00
|
|
|
|
WriteTextCenter(10,170,about_form.width-125,0,INTRO_TEXT_3);
|
|
|
|
|
DrawLink(about_form.width/2-15,170,0x80,23, "kolibri-n.org");
|
|
|
|
|
DrawFlatButton(about_form.width/2-35,about_form.height-60,70,22,10,0xE4DFE1, INTRO_TEXT_4);
|
2013-03-11 22:16:24 +04:00
|
|
|
|
}
|
|
|
|
|
}
|