2013-03-20 23:35:57 +01:00
|
|
|
|
//Leency 2008-2013
|
2013-03-11 19:16:24 +01:00
|
|
|
|
|
2015-07-19 20:45:59 +02:00
|
|
|
|
#define BROWSER_PATH "/sys/network/webview"
|
2013-03-11 19:16:24 +01:00
|
|
|
|
#define BROWSER_LINK "http://kolibri-n.org/index.php"
|
|
|
|
|
|
2013-08-04 01:35:59 +02: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 20:50:05 +02: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 01:35:59 +02: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 19:16:24 +01:00
|
|
|
|
|
|
|
|
|
void about_dialog()
|
|
|
|
|
{
|
|
|
|
|
byte id;
|
2015-02-26 23:29:09 +01:00
|
|
|
|
proc_info about_form;
|
|
|
|
|
|
2015-07-16 03:44:30 +02:00
|
|
|
|
IF (active_about){cmd_free = 2;ExitProcess();}
|
2013-10-16 23:03:17 +02:00
|
|
|
|
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();
|
|
|
|
|
}
|
2013-03-11 19:16:24 +01:00
|
|
|
|
IF (id==23) RunProgram(BROWSER_PATH, BROWSER_LINK);
|
|
|
|
|
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-08-05 17:30:25 +02:00
|
|
|
|
DefineAndDrawWindow(Form.left+Form.width/2,Form.top+Form.height/2-114,300,248+GetSkinHeight(),0x34,system.color.work,INTRO_TEXT_1);
|
2015-02-26 23:29:09 +01:00
|
|
|
|
GetProcessInfo(#about_form, SelfInfo);
|
|
|
|
|
if (Form.status_window>2) break;
|
|
|
|
|
DrawBar(0,0,about_form.cwidth,50,0x8494C4);
|
2015-08-05 17:30:25 +02:00
|
|
|
|
PutPaletteImage(#logo,85,85,about_form.cwidth/2-43,7,8,#logo_pal);
|
2015-08-14 16:47:36 +02:00
|
|
|
|
WriteTextB(-strlen(ABOUT_TITLE)*12+about_form.cwidth/2,100,0x81,0xBF40BF,ABOUT_TITLE);
|
2015-08-05 17:30:25 +02:00
|
|
|
|
WriteTextCenter(0,130,about_form.cwidth,0,INTRO_TEXT_2);
|
|
|
|
|
WriteTextCenter(0,143,about_form.cwidth,0,"Leency Veliant PunkJoker Pavelyakov");
|
|
|
|
|
WriteTextCenter(0,156,about_form.cwidth,0,"KolibriOS Team");
|
|
|
|
|
WriteTextCenter(0,169,about_form.cwidth,0,"2008-2015");
|
|
|
|
|
WriteTextCenter(10,182,about_form.width-125,0,INTRO_TEXT_3);
|
|
|
|
|
DrawLink(about_form.cwidth/2-15,182,0x80,23, "kolibri-n.org");
|
|
|
|
|
DrawFlatButton(about_form.cwidth/2-35,about_form.cheight-35,70,22,10,0xE4DFE1, INTRO_TEXT_4);
|
2013-03-11 19:16:24 +01:00
|
|
|
|
}
|
2015-08-05 17:30:25 +02:00
|
|
|
|
}
|