Subversion Repositories Kolibri OS

Rev

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

Rev 6289 Rev 6290
Line 1... Line 1...
1
#ifdef LANG_RUS
1
#ifdef LANG_RUS
2
	?define EDIT_FILE_ASSOCIATIONS "¥¤ ªâ¨à®¢ âì  áá®æ¨ æ¨¨ ä ©«®¢"
-
 
3
	?define TITLE_SETT " áâனª¨"
2
	?define TITLE_SETT " áâனª¨"
4
	?define SHOW_DEVICE_CLASS "‚뢮¤¨âì ­ §¢ ­¨ï ª« áá  ãáâனáâ¢"
3
	?define SHOW_DEVICE_CLASS "‚뢮¤¨âì ­ §¢ ­¨ï ª« áá  ãáâனáâ¢"
5
	?define SHOW_REAL_NAMES "®ª §ë¢ âì ¨¬¥­  ä ©«®¢ ­¥ ¬¥­ïï ॣ¨áâà"
4
	?define SHOW_REAL_NAMES "®ª §ë¢ âì ¨¬¥­  ä ©«®¢ ­¥ ¬¥­ïï ॣ¨áâà"
-
 
5
	?define NOTIFY_COPY_END "“¢¥¤®¬«ïâì ® § ¢¥à襭¨¨ ª®¯¨à®¢ ­¨ï"
6
	?define FONT_SIZE_LABEL " §¬¥à èà¨äâ "
6
	?define SHOW_BREADCRUMBS "ˆá¯®«ì§®¢ âì 'å«¥¡­ë¥ ªà®èª¨'"
7
	?define USE_TWO_PANELS "„¢¥ ¯ ­¥«¨"
7
	?define USE_TWO_PANELS "„¢¥ ¯ ­¥«¨"
8
	?define smooth_FONT "ˆá¯®«ì§®¢ âì ᣫ ¦¥­­ë© èà¨äâ"
8
	?define FONT_SIZE_LABEL " §¬¥à èà¨äâ "
9
	?define LIST_LINE_HEIGHT "‚ëá®â  áâப¨ ¢ ᯨ᪥"
9
	?define LIST_LINE_HEIGHT "‚ëá®â  áâப¨ ¢ ᯨ᪥"
10
	?define NOTIFY_COPY_END "“¢¥¤®¬«ïâì ® § ¢¥à襭¨¨ ª®¯¨à®¢ ­¨ï"
-
 
11
	?define SAVE_PATH_AS_DEFAULT "‘¤¥« âì ⥪ã騩 ¯ãâì ¤®¬ è­¨¬ ª â «®£®¬"
10
	?define SAVE_PATH_AS_DEFAULT "‘¤¥« âì ⥪ã騩 ¯ãâì ¤®¬ è­¨¬ ª â «®£®¬"
-
 
11
	?define EDIT_FILE_ASSOCIATIONS "¥¤ ªâ¨à®¢ âì  áá®æ¨ æ¨¨ ä ©«®¢"
12
#else
12
#else
13
	?define EDIT_FILE_ASSOCIATIONS "Edit file associations"
-
 
14
	?define TITLE_SETT "Settings"
13
	?define TITLE_SETT "Settings"
15
	?define SHOW_DEVICE_CLASS "Show device class name"
14
	?define SHOW_DEVICE_CLASS "Show device class name"
16
	?define SHOW_REAL_NAMES "Show file names in original case"
15
	?define SHOW_REAL_NAMES "Show file names in original case"
-
 
16
	?define NOTIFY_COPY_END "Notify when copying finished"
17
	?define FONT_SIZE_LABEL "Font size"
17
	?define SHOW_BREADCRUMBS "Show breadcrumbs"
18
	?define USE_TWO_PANELS "Two panels"
18
	?define USE_TWO_PANELS "Two panels"
19
	?define smooth_FONT "Use smooth font"
19
	?define FONT_SIZE_LABEL "Font size"
20
	?define LIST_LINE_HEIGHT "List line height"
20
	?define LIST_LINE_HEIGHT "List line height"
21
	?define NOTIFY_COPY_END "Notify when copying finished"
-
 
22
	?define SAVE_PATH_AS_DEFAULT "Save current path as home folder"
21
	?define SAVE_PATH_AS_DEFAULT "Save current path as home folder"
-
 
22
	?define EDIT_FILE_ASSOCIATIONS "Edit file associations"
23
#endif
23
#endif
Line 24... Line 24...
24
 
24
 
25
char config_section[] = "Config";
25
char config_section[] = "Config";
Line 50... Line 50...
50
				else if (id==22) info_after_copy ^= 1;
50
				else if (id==22) info_after_copy ^= 1;
51
				else if (id==24) two_panels ^= true;
51
				else if (id==24) two_panels ^= true;
52
				else if (id==32) show_breadcrumb ^= true;
52
				else if (id==32) show_breadcrumb ^= true;
53
				else if (id==25) { files.item_h++; files_active.item_h = files_inactive.item_h = files.item_h; }
53
				else if (id==25) { files.item_h++; files_active.item_h = files_inactive.item_h = files.item_h; }
54
				else if (id==26) && (files.item_h>18) files.item_h--;
54
				else if (id==26) && (files.item_h>16) files.item_h--;
55
				else if (id==30) { label.size.pt++; IF(!label.changeSIZE()) label.size.pt--; BigFontsChange(); }
55
				else if (id==30) { label.size.pt++; IF(!label.changeSIZE()) label.size.pt--; BigFontsChange(); }
56
				else if (id==31) { label.size.pt--; IF(!label.changeSIZE()) label.size.pt++; BigFontsChange(); }
56
				else if (id==31) { label.size.pt--; IF(!label.changeSIZE()) label.size.pt++; BigFontsChange(); }
57
				EventRedrawWindow(Form.left,Form.top);
57
				EventRedrawWindow(Form.left,Form.top);
58
				//DrawSettingsCheckBoxes();
58
			break;
59
			break;
-
 
60
					
59
					
Line 61... Line 60...
61
			case evKey:
60
			case evKey:
62
				GetKeys();
61
				GetKeys();
63
				if (key_scancode==SCAN_CODE_ESC) ExitSettings();
62
				if (key_scancode==SCAN_CODE_ESC) ExitSettings();
64
				break;
63
				break;
Line 65... Line 64...
65
				
64
				
66
			case evReDraw:
65
			case evReDraw:
67
				DefineAndDrawWindow(Form.left + Form.width/2-10, Form.top + Form.height/2 - 75, 370, 282+GetSkinHeight(),0x34,system.color.work,TITLE_SETT);
66
				DefineAndDrawWindow(Form.cwidth-300/2+Form.left, Form.cheight-292/2+Form.top, 376, 292+GetSkinHeight(),0x34,system.color.work,TITLE_SETT);
68
				DrawSettingsCheckBoxes();
67
				DrawSettingsCheckBoxes();
69
		}
68
		}
70
	}
69
	}
Line 80... Line 79...
80
 
79
 
Line 81... Line 80...
81
void DrawSettingsCheckBoxes()
80
void DrawSettingsCheckBoxes()
82
{
81
{
83
	incn y;
82
	incn y;
-
 
83
	int x=11;
84
	y.n = 0;
84
	y.n = 0;
85
	CheckBox(10, y.inc(13), 20, SHOW_DEVICE_CLASS,  show_dev_name);
85
	CheckBox(x, y.inc(14), 20, SHOW_DEVICE_CLASS,  show_dev_name);
86
	CheckBox(10, y.inc(24), 21, SHOW_REAL_NAMES,  real_files_names_case);
86
	CheckBox(x, y.inc(25), 21, SHOW_REAL_NAMES,  real_files_names_case);
87
	CheckBox(10, y.inc(24), 22, NOTIFY_COPY_END,  info_after_copy);
87
	CheckBox(x, y.inc(25), 22, NOTIFY_COPY_END,  info_after_copy);
88
	CheckBox(10, y.inc(24), 24, USE_TWO_PANELS,  two_panels);
88
	CheckBox(x, y.inc(25), 32, SHOW_BREADCRUMBS,  show_breadcrumb);
89
	CheckBox(10, y.inc(24), 32, "Show breadcrumbs",  show_breadcrumb);
89
	CheckBox(x, y.inc(25), 24, USE_TWO_PANELS,  two_panels);
90
	MoreLessBox(10, y.inc(30), 25, 26, files.item_h, LIST_LINE_HEIGHT);
90
	MoreLessBox(x, y.inc(31), 30, 31, label.size.pt, FONT_SIZE_LABEL);
91
	if (label.font) MoreLessBox(10, y.inc(30), 30, 31, label.size.pt, FONT_SIZE_LABEL);
91
	MoreLessBox(x, y.inc(31), 25, 26, files.item_h, LIST_LINE_HEIGHT);
92
	DrawFlatButton(9, y.inc(35), strlen(SAVE_PATH_AS_DEFAULT)+3*8, 24, 6, SAVE_PATH_AS_DEFAULT);
92
	DrawFlatButton(x-1, y.inc(36), strlen(SAVE_PATH_AS_DEFAULT)+3*8, 24, 6, SAVE_PATH_AS_DEFAULT);
93
	DrawFlatButton(9, y.inc(35), strlen(EDIT_FILE_ASSOCIATIONS)+3*8, 24, 5, EDIT_FILE_ASSOCIATIONS);
93
	DrawFlatButton(x-1, y.inc(36), strlen(EDIT_FILE_ASSOCIATIONS)+3*8, 24, 5, EDIT_FILE_ASSOCIATIONS);
94
}
94
}
Line 95... Line 95...
95
 
95
 
96
 
96