Subversion Repositories Kolibri OS

Rev

Rev 5723 | Rev 6008 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5723 Rev 6005
Line 1... Line 1...
1
//Leency 2008-2013
1
//Leency 2008-2016
Line 2... Line 2...
2
 
2
 
3
#define BROWSER_PATH    "/sys/network/webview"
3
#define BROWSER_PATH    "/sys/network/webview"
Line 4... Line 4...
4
#define BROWSER_LINK    "http://kolibri-n.org/index.php"
4
#define BROWSER_LINK    "http://kolibri-n.org/inf/eolite/eolite_p1"
5
 
-
 
6
#ifdef LANG_RUS
5
 
7
	?define INTRO_TEXT_1 "Ž Eolite"
-
 
8
	?define INTRO_TEXT_2 " §à ¡®â稪¨:"
6
#ifdef LANG_RUS
9
	?define INTRO_TEXT_3 "®á¥â¨â¥"
-
 
10
	?define INTRO_TEXT_4 "‡ ªàëâì"
-
 
11
#elif LANG_EST
-
 
12
	?define INTRO_TEXT_1 "Programmis Eolite"
-
 
13
	?define INTRO_TEXT_2 "Arendajad:"
-
 
14
	?define INTRO_TEXT_3 "Külasta"
7
	?define DEVELOPERS_TEXT " §à ¡®â稪¨:\nLeency Veliant PunkJoker Pavelyakov\nKolibriOS Team\n2008-2016"
15
	?define INTRO_TEXT_4 "Sulge"
-
 
16
#else
8
	?define CLOSE_BUTTON_TEXT "‡ ªàëâì"
17
	?define INTRO_TEXT_1 "About Eolite"
-
 
18
	?define INTRO_TEXT_2 "Developers:"
9
#else
19
	?define INTRO_TEXT_3 "Visit"
10
	?define DEVELOPERS_TEXT "Developers:\nLeency Veliant PunkJoker Pavelyakov\nKolibriOS Team\n2008-2016"
Line 20... Line 11...
20
	?define INTRO_TEXT_4 "Close"
11
	?define CLOSE_BUTTON_TEXT "Close"
21
#endif
12
#endif
22
 
13
 
23
void about_dialog()
14
void about_dialog()
Line 24... Line 15...
24
{   
15
{   
25
	byte id;
-
 
26
	proc_info about_form;
16
	byte id;
27
 
17
	proc_info about_form;
28
	IF (active_about){cmd_free = 2;ExitProcess();}
18
 
29
	active_about=1;
19
	if (active_about) {cmd_free=2;ExitProcess();} else active_about=1;
30
	loop() switch(WaitEvent())
20
	loop() switch(WaitEvent())
31
	{
21
	{
32
		case evButton: 
22
		case evButton: 
33
				id=GetButtonID();
23
				id=GetButtonID();
34
				IF (id==1) || (id==10) 
24
				IF (id==1) || (id==10) 
35
				{
25
				{
36
					active_about=0;
26
					active_about=0;
37
					cmd_free = 2;
27
					cmd_free = 2;
Line 38... Line 28...
38
					ExitProcess();
28
					ExitProcess();
39
				}
29
				}
40
				IF (id==23) RunProgram(BROWSER_PATH, BROWSER_LINK);
30
				IF (id==11) RunProgram(BROWSER_PATH, BROWSER_LINK);
Line 48... Line 38...
48
					ExitProcess();
38
					ExitProcess();
49
				}
39
				}
50
				break;
40
				break;
Line 51... Line 41...
51
				
41
				
52
		case evReDraw:
42
		case evReDraw:
53
				DefineAndDrawWindow(Form.left+Form.width/2,Form.top+Form.height/2-114,300,248+GetSkinHeight(),0x34,system.color.work,INTRO_TEXT_1);
43
				DefineAndDrawWindow(Form.left+Form.width/2,Form.top+Form.height/2-114,440,200+GetSkinHeight(),0x34,system.color.work,0);
54
				GetProcessInfo(#about_form, SelfInfo);
44
				GetProcessInfo(#about_form, SelfInfo);
55
				if (Form.status_window>2) break;
-
 
56
				DrawBar(0,0,about_form.cwidth,50,0x8494C4);
45
				if (Form.status_window>2) break;
57
				PutPaletteImage(#logo,85,85,about_form.cwidth/2-43,7,8,#logo_pal);
46
				_PutImage(10, 15, 86, 86, #logo);
58
				WriteTextB(-strlen(ABOUT_TITLE)*12+about_form.cwidth/2,100,0x81,0xBF40BF,ABOUT_TITLE);
47
				WriteTextB(110,15,0x81,0xBF40BF,ABOUT_TITLE);
59
				WriteTextCenter(0,130,about_form.cwidth,0,INTRO_TEXT_2);			
-
 
60
				WriteTextCenter(0,143,about_form.cwidth,0,"Leency Veliant PunkJoker Pavelyakov"); 
-
 
61
				WriteTextCenter(0,156,about_form.cwidth,0,"KolibriOS Team");
48
				WriteTextLines(110,53,10010000b,0,DEVELOPERS_TEXT,21);
62
				WriteTextCenter(0,169,about_form.cwidth,0,"2008-2015");
49
				#ifdef LANG_RUS
63
				WriteTextCenter(10,182,about_form.width-125,0,INTRO_TEXT_3);			
50
				DrawFlatButton(about_form.cwidth-250,about_form.cheight-35,130,22,11,0xE4DFE1,"ˆáâ®à¨ï ࠧࠡ®âª¨");
64
				DrawLink(about_form.cwidth/2-15,182,0x80,23, "kolibri-n.org");
51
				#endif
65
				DrawFlatButton(about_form.cwidth/2-35,about_form.cheight-35,70,22,10,0xE4DFE1, INTRO_TEXT_4);
52
				DrawFlatButton(about_form.cwidth-100,about_form.cheight-35,70,22,10,0xE4DFE1,CLOSE_BUTTON_TEXT);
66
	}
53
	}