Rev 6191 | Rev 6278 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6191 | Rev 6218 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | //Leency 2008-2016 |
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 | #define BROWSER_LINK "http://kolibri-n.org/inf/eolite/eolite_p1" |
- | |
5 | - | ||
6 | #ifdef LANG_RUS |
- | |
7 | ?define DEVELOPERS_TEXT " §à ¡®â稪¨:\nLeency Veliant PunkJoker Pavelyakov\nKolibriOS Team\n2008-2016" |
- | |
8 | ?define CLOSE_BUTTON_TEXT " ªàëâì" |
- | |
9 | #else |
- | |
10 | ?define DEVELOPERS_TEXT "Developers:\nLeency Veliant PunkJoker Pavelyakov\nKolibriOS Team\n2008-2016" |
- | |
Line 11... | Line 4... | ||
11 | ?define CLOSE_BUTTON_TEXT "Close" |
4 | #define BROWSER_LINK "http://kolibri-n.org/inf/eolite/eolite_p1" |
12 | #endif |
5 | |
13 | 6 | ||
14 | void about_dialog() |
7 | void about_dialog() |
- | 8 | { |
|
Line 15... | Line 9... | ||
15 | { |
9 | byte id; |
16 | byte id; |
10 | proc_info about_form; |
17 | proc_info about_form; |
11 | int about_x; |
18 | 12 | ||
19 | if (active_about) {cmd_free=2;ExitProcess();} else active_about=1; |
13 | if (active_about) {cmd_free=2;ExitProcess();} else active_about=1; |
20 | loop() switch(WaitEvent()) |
14 | loop() switch(WaitEvent()) |
21 | { |
15 | { |
22 | case evButton: |
16 | case evButton: |
23 | id=GetButtonID(); |
17 | id=GetButtonID(); |
24 | IF (id==1) || (id==10) |
18 | IF (id==1) |
25 | { |
19 | { |
Line 38... | Line 32... | ||
38 | ExitProcess(); |
32 | ExitProcess(); |
39 | } |
33 | } |
40 | break; |
34 | break; |
Line 41... | Line 35... | ||
41 | 35 | ||
42 | case evReDraw: |
36 | case evReDraw: |
43 | DefineAndDrawWindow(Form.left+Form.width/2,Form.top+Form.height/2-114,440,200+GetSkinHeight(),0x34,system.color.work,0); |
37 | DefineAndDrawWindow(Form.left+Form.width/2,Form.top+Form.height/2-114,310,300+GetSkinHeight(),0x34,system.color.work,0); |
44 | GetProcessInfo(#about_form, SelfInfo); |
38 | GetProcessInfo(#about_form, SelfInfo); |
45 | if (about_form.status_window>2) break; |
39 | if (about_form.status_window>2) break; |
46 | logo_pal[0] = system.color.work; |
40 | logo_pal[0] = system.color.work; |
- | 41 | PutPaletteImage(#logo,86,86,about_form.cwidth-86/2,10,8,#logo_pal); |
|
47 | PutPaletteImage(#logo,86,86,10,23,8,#logo_pal); |
42 | about_x = -strlen(ABOUT_TITLE)*18+about_form.cwidth/2; |
48 | WriteTextB(112,16,0x82,0xD49CD2,ABOUT_TITLE); |
43 | WriteTextB(about_x+2,107,0x82,0xD49CD2,ABOUT_TITLE); |
49 | WriteTextB(110,14,0x82,0xBF40BF,ABOUT_TITLE); |
44 | WriteTextB(about_x,105,0x82,0x9D129D,ABOUT_TITLE); |
- | 45 | DrawRectangle3D(0,154,about_form.cwidth/5*3,1,system.color.work_dark,system.color.work_light); |
|
50 | WriteTextLines(110,53,10010000b,0,DEVELOPERS_TEXT,21); |
46 | WriteTextLines(7,163,0x90,system.color.work_text,"KolibriOS File Manager\nAuthors: Leency, Veliant\nPunkJoker, Pavelyakov\n(c) 2008 - 2016",20); |
51 | #ifdef LANG_RUS |
47 | #ifdef LANG_RUS |
52 | DrawFlatButton(about_form.cwidth-310,about_form.cheight-38,180,26,11,"áâ®à¨ï à §à ¡®âª¨"); |
48 | DrawFlatButton(about_form.cwidth-180/2,about_form.cheight-38,180,26,11,"áâ®à¨ï à §à ¡®âª¨"); |
53 | #endif |
- | |
54 | DrawFlatButton(about_form.cwidth-110,about_form.cheight-38, 90,26,10,CLOSE_BUTTON_TEXT); |
49 | #endif |
55 | } |
50 | } |