Subversion Repositories Kolibri OS

Rev

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

Rev 8956 Rev 8983
Line 1... Line -...
1
#ifdef LANG_RUS
-
 
2
	?define WINDOW_TITLE_PROPERTIES "‘¢®©á⢠"
-
 
3
	?define T_CLOSE "‡ ªàëâì"
-
 
4
	?define T_APPLY "à¨¬¥­¨âì"
-
 
5
	?define QUEST_1 "à¨¬¥­¨âì ª® ¢á¥¬ ¢«®¦¥­­ë¬"
-
 
6
	?define QUEST_2 "ä ©« ¬ ¨ ¯ ¯ª ¬?"
-
 
7
	?define PR_T_NAME "ˆ¬ï:"
-
 
8
	?define PR_T_DEST " á¯®«®¦¥­¨¥:"
-
 
9
	?define PR_T_SIZE " §¬¥à:"
-
 
10
	?define CREATED_OPENED_MODIFIED "‘®§¤ ­:\nŽâªàëâ:\nˆ§¬¥­¥­:"
-
 
11
	?define SET_6 "” ©«®¢: "
-
 
12
	?define SET_7 "  ¯®ª: "
-
 
13
	?define PR_T_CONTAINS "‘®¤¥à¦¨â: "
-
 
14
	?define FLAGS " €ââਡãâë "
-
 
15
	?define PR_T_HIDDEN "‘ªàëâë©"
-
 
16
	?define PR_T_SYSTEM "‘¨á⥬­ë©"
-
 
17
	?define PR_T_ONLY_READ "’®«ìª® ç⥭¨¥"
-
 
18
	?define SET_BYTE_LANG "¡ ©â"
-
 
19
#else // Apply to all subfolders
-
 
20
	?define WINDOW_TITLE_PROPERTIES "Properties"
-
 
21
	?define T_CLOSE "Close"
-
 
22
	?define T_APPLY "Apply"
-
 
23
	?define QUEST_1 "Apply to all subfolders"
-
 
24
	?define QUEST_2 "files and Folders?"
-
 
25
	?define PR_T_NAME "Name:"
-
 
26
	?define PR_T_DEST "Destination:"
-
 
27
	?define PR_T_SIZE "Size:"
-
 
28
	?define CREATED_OPENED_MODIFIED "Created:\nOpened:\nModified:"
-
 
29
	?define SET_6 "Files: "
-
 
30
	?define SET_7 " Folders: "
-
 
31
	?define PR_T_CONTAINS "Contains: "
-
 
32
	?define FLAGS " Attributes "
-
 
33
	?define PR_T_HIDDEN "Hidden"
-
 
34
	?define PR_T_SYSTEM "System"
-
 
35
	?define PR_T_ONLY_READ "Read-only"
-
 
36
	?define SET_BYTE_LANG "byte"
-
 
37
#endif
-
 
38
 
-
 
39
#define B_SETINGS_APPLY_SUBFOLDER 301
-
 
40
#define B_SETINGS_APPLY_NO_SUBFOLDER 302
-
 
41
#define B_APPLY 11
-
 
42
#define B_CLOSE 12
-
 
Line 43... Line 1...
43
 
1
char path_to_file[4096];
44
char path_to_file[4096];
2
char file_name2[4096];
45
char file_name2[4096];
3
edit_box file_name_ed = {230,59,32,0xffffff,0x94AECE,0xFFFfff,0xffffff,0x10000000,sizeof(file_name2)-2,#file_name2,NULL, 0b,2,2};
46
edit_box file_name_ed = {230,59,32,0xffffff,0x94AECE,0xFFFfff,0xffffff,0x10000000,sizeof(file_name2)-2,#file_name2,NULL, 0b,2,2};
4
edit_box path_to_file_ed = {160,120,79,0xffffff,0x94AECE,0xFFFfff,0xffffff,2,sizeof(path_to_file)-2,#path_to_file,NULL, 0b,2,2};
Line 107... Line 65...
107
	}
65
 
Line 108... Line 66...
108
 
66
	if (SET_PROPERTIES_ALL_SUBFOLDER == mode)
109
	if (SET_PROPERTIES_ALL_SUBFOLDER == mode)
67
	|| (SET_PROPERTIES_NO_SUBFOLDER == mode)
110
	|| (SET_PROPERTIES_NO_SUBFOLDER == mode)
68
	{
111
	{
69
		if (getSelectedCount())
112
		if (selected_count)
70
		{
113
		{
71
			for (i=0; i
114
			for (i=0; i
72
			{
115
			{
73
				if (getElementSelectedFlag(i) == true) 
116
				if (getElementSelectedFlag(i) == true) 
74
				{
Line 172... Line 130...
172
 
130
void properties_dialog()
173
void properties_dialog()
131
{
174
{
132
	int id;
Line 175... Line 133...
175
	int id;
133
	
176
	
134
	if (getSelectedCount())
177
	if (selected_count)
135
	{
178
	{
136
		more_files_count.get(NULL);
179
		more_files_count.get(NULL);
137
		GetSizeMoreFiles(path);
180
		GetSizeMoreFiles(path);
138
		ch_read_only.checked = 0;
Line 278... Line 236...
278
	WriteText(10, 78, 0x90, sc.work_text, PR_T_DEST);
236
	edit_box_draw stdcall (#path_to_file_ed);
279
	edit_box_draw stdcall (#path_to_file_ed);
237
 
Line 280... Line 238...
280
 
238
	WriteText(10, 97, 0x90, sc.work_text, PR_T_SIZE);
Line 281... Line 239...
281
	WriteText(10, 97, 0x90, sc.work_text, PR_T_SIZE);
239
	
282
	
240
	if (getSelectedCount())
283
	if (selected_count)
241
	{
284
	{
242
		PropertiesDrawIcon(NULL, "");
285
		PropertiesDrawIcon(NULL, "");
243
		sprintf(#folder_info,"%s%d%s%d",SET_6,more_files_count.files,SET_7,more_files_count.folders);
286
		sprintf(#folder_info,"%s%d%s%d",SET_6,more_files_count.files,SET_7,more_files_count.folders);
244
		WriteText(file_name_ed.left+4, 30, 0x90, sc.work_text, #folder_info);
Line 332... Line 290...
332
	DrawIconByExtension(file_path, extension, -icon_size/2+28, -icon_size/2+38, 0xFFFfff);
290
}
333
}
291
 
Line 334... Line 292...
334
 
292
void EventApplyProperties()
335
void EventApplyProperties()
293
{
336
{
294
	if (getSelectedCount()) || (itdir) {
337
	if (selected_count) || (itdir) {
295
		ShowConfirmQuestionPopin();
338
		ShowConfirmQuestionPopin();
296
	} else {
339
	} else {
297
		SetProperties(SET_PROPERTIES_SINGLE_FILE);
340
		SetProperties(SET_PROPERTIES_SINGLE_FILE);
298
	}
341
	}
299
}
342
}
300