Subversion Repositories Kolibri OS

Rev

Rev 7386 | Rev 7606 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7386 Rev 7462
1
#define BROWSER_PATH    "/sys/network/webview"
1
#define BROWSER_PATH    "/sys/network/webview"
2
#define BROWSER_LINK    "http://kolibri-n.org/inf/eolite/eolite_p1"
2
#define BROWSER_LINK    "http://kolibri-n.org/inf/eolite/eolite_p1"
3
 
3
 
4
 
4
 
5
void about_dialog()
5
void about_dialog()
6
{   
6
{   
7
	int id;
7
	int id;
8
	proc_info about_form;
8
	proc_info about_form;
9
	int about_x;
9
	int about_x;
10
 
10
 
11
	if (active_about) {cmd_free=2;ExitProcess();} else active_about=1;
11
	if (active_about) {cmd_free=2;ExitProcess();} else active_about=1;
12
	loop() switch(WaitEvent())
12
	loop() switch(WaitEvent())
13
	{
13
	{
14
		case evButton: 
14
		case evButton: 
15
				id=GetButtonID();
15
				id=GetButtonID();
16
				IF (id==1)
16
				IF (id==1)
17
				{
17
				{
18
					active_about=0;
18
					active_about=0;
19
					cmd_free = 2;
19
					cmd_free = 2;
20
					ExitProcess();
20
					ExitProcess();
21
				}
21
				}
22
				IF (id==11) RunProgram(BROWSER_PATH, BROWSER_LINK);
22
				IF (id==11) RunProgram(BROWSER_PATH, BROWSER_LINK);
23
				break;
23
				break;
24
				
24
				
25
		case evKey:
25
		case evKey:
26
				GetKeys();
26
				GetKeys();
27
				IF (key_scancode == SCAN_CODE_ESC)
27
				IF (key_scancode == SCAN_CODE_ESC)
28
				{
28
				{
29
					active_about=0;
29
					active_about=0;
30
					cmd_free = 2;
30
					cmd_free = 2;
31
					ExitProcess();
31
					ExitProcess();
32
				}
32
				}
33
				break;
33
				break;
34
				
34
				
35
		case evReDraw:
35
		case evReDraw:
36
				DefineAndDrawWindow(Form.left+Form.width/2,Form.top+Form.height/2-114,310,300+skin_height,0x34,system.color.work,NULL,0);
36
				DefineAndDrawWindow(Form.left+Form.width/2,Form.top+Form.height/2-114,300,300+skin_height,0x34,system.color.work,T_ABOUT,0);
37
				GetProcessInfo(#about_form, SelfInfo);
37
				GetProcessInfo(#about_form, SelfInfo);
38
				if (about_form.status_window>2) break;
38
				if (about_form.status_window>2) break;
39
				logo_pal[0] = system.color.work;
39
				logo_pal[0] = system.color.work;
-
 
40
				ESDWORD[#logo_pal+16] = system.color.work_dark;
40
				PutPaletteImage(#logo,86,86,about_form.cwidth-86/2,10,8,#logo_pal);
41
				PutPaletteImage(#logo,86,86,about_form.cwidth-86/2,10,8,#logo_pal);
41
				about_x = -strlen(ABOUT_TITLE)*18+about_form.cwidth/2;
42
				about_x = -strlen(ABOUT_TITLE)*18+about_form.cwidth/2;
42
				WriteTextB(about_x+2,107,0x82,0xD49CD2,ABOUT_TITLE);
43
				WriteTextB(about_x+2,107,0x82,0xD49CD2,ABOUT_TITLE);
43
				WriteTextB(about_x,105,0x82,0x9D129D,ABOUT_TITLE);
44
				WriteTextB(about_x,105,0x82,0x9D129D,ABOUT_TITLE);
44
				DrawRectangle3D(0,154,about_form.cwidth,1,system.color.work_dark,system.color.work_light);
45
				DrawRectangle3D(0,154,about_form.cwidth,1,system.color.work_dark,system.color.work_light);
45
				WriteTextLines(7,163,0x90,system.color.work_text,"KolibriOS File Manager\nAuthors: Leency, Veliant\nPunk_Joker, Pavelyakov\n(c) 2008 - 2018",20);
46
				WriteTextLines(7,163,0x90,system.color.work_text,"KolibriOS File Manager\nAuthors: Leency, Veliant\nPunk_Joker, Pavelyakov\n2008 - 2018",20);
46
				#ifdef LANG_RUS
47
				#ifdef LANG_RUS
47
				DrawStandartCaptButton(60,about_form.cheight-38,11,"ˆáâ®à¨ï ࠧࠡ®âª¨");
48
				DrawStandartCaptButton(60,about_form.cheight-38,11,"ˆáâ®à¨ï ࠧࠡ®âª¨");
48
				#endif
49
				#endif
49
	}
50
	}
50
}
51
}