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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void about_dialog()
|
|
|
|
|
{
|
|
|
|
|
byte id;
|
2015-02-27 01:29:09 +03:00
|
|
|
|
proc_info about_form;
|
2016-02-14 21:42:49 +03:00
|
|
|
|
int about_x;
|
2015-02-27 01:29:09 +03:00
|
|
|
|
|
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();
|
2016-02-14 21:42:49 +03:00
|
|
|
|
IF (id==1)
|
2013-10-17 01:03:17 +04:00
|
|
|
|
{
|
|
|
|
|
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:
|
2016-11-23 14:37:13 +03:00
|
|
|
|
DefineAndDrawWindow(Form.left+Form.width/2,Form.top+Form.height/2-114,310,300+GetSkinHeight(),0x34,system.color.work,NULL,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;
|
2016-02-14 21:42:49 +03:00
|
|
|
|
PutPaletteImage(#logo,86,86,about_form.cwidth-86/2,10,8,#logo_pal);
|
|
|
|
|
about_x = -strlen(ABOUT_TITLE)*18+about_form.cwidth/2;
|
|
|
|
|
WriteTextB(about_x+2,107,0x82,0xD49CD2,ABOUT_TITLE);
|
|
|
|
|
WriteTextB(about_x,105,0x82,0x9D129D,ABOUT_TITLE);
|
2016-02-22 00:57:22 +03:00
|
|
|
|
DrawRectangle3D(0,154,about_form.cwidth,1,system.color.work_dark,system.color.work_light);
|
2016-03-02 20:44:25 +03:00
|
|
|
|
WriteTextLines(7,163,0x90,system.color.work_text,"KolibriOS File Manager\nAuthors: Leency, Veliant\nPunk_Joker, Pavelyakov\n(c) 2008 - 2016",20);
|
2015-12-26 04:32:07 +03:00
|
|
|
|
#ifdef LANG_RUS
|
2016-11-05 13:13:29 +03:00
|
|
|
|
DrawFlatButton(60,about_form.cheight-38,11,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ࠧࠡ<E0A0A7>⪨");
|
2015-12-26 04:32:07 +03:00
|
|
|
|
#endif
|
2013-03-11 22:16:24 +04:00
|
|
|
|
}
|
2015-08-05 18:30:25 +03:00
|
|
|
|
}
|