Subversion Repositories Kolibri OS

Rev

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

Rev 6251 Rev 6278
Line 1... Line 1...
1
#ifdef LANG_RUS
1
#ifdef LANG_RUS
2
	?define WINDOW_TITLE_PROPERTIES "‘¢®©á⢠"
2
	?define WINDOW_TITLE_PROPERTIES "‘¢®©á⢠"
3
	?define BTN_CLOSE "‡ ªàëâì"
3
	?define BTN_CLOSE "‡ ªàëâì"
4
	?define BTN_APPLY "à¨¬¥­¨âì"
4
	?define BTN_APPLY "à¨¬¥­¨âì"
5
	?define QUEST_1 "à¨¬¥­¨âì ª® ¢á¥¬ ¢«®¦¥­­ë¬"
5
	?define QUEST_1 "à¨¬¥­¨âì ª® ¢á¥¬ ¢«®¦¥­­ë¬"
6
	?define QUEST_2 "ä ©« ¬ ¨ ¯ ¯ª ¬"
6
	?define QUEST_2 "ä ©« ¬ ¨ ¯ ¯ª ¬?"
7
	?define PR_T_NAME "ˆ¬ï:"
7
	?define PR_T_NAME "ˆ¬ï:"
8
	?define PR_T_DEST " á¯®«®¦¥­¨¥:"
8
	?define PR_T_DEST " á¯®«®¦¥­¨¥:"
9
	?define PR_T_SIZE " §¬¥à:"
9
	?define PR_T_SIZE " §¬¥à:"
10
	?define CREATED_OPENED_MODIFIED "‘®§¤ ­:\nŽâªàëâ:\nˆ§¬¥­¥­:"
10
	?define CREATED_OPENED_MODIFIED "‘®§¤ ­:\nŽâªàëâ:\nˆ§¬¥­¥­:"
11
	?define SET_6 "” ©«®¢: "
11
	?define SET_6 "” ©«®¢: "
Line 19... Line 19...
19
#else // Apply to all subfolders
19
#else // Apply to all subfolders
20
	?define WINDOW_TITLE_PROPERTIES "Properties"
20
	?define WINDOW_TITLE_PROPERTIES "Properties"
21
	?define BTN_CLOSE "Close"
21
	?define BTN_CLOSE "Close"
22
	?define BTN_APPLY "Apply"
22
	?define BTN_APPLY "Apply"
23
	?define QUEST_1 "Apply to all subfolders"
23
	?define QUEST_1 "Apply to all subfolders"
24
	?define QUEST_2 "files and Folders"
24
	?define QUEST_2 "files and Folders?"
25
	?define PR_T_NAME "Name:"
25
	?define PR_T_NAME "Name:"
26
	?define PR_T_DEST "Destination:"
26
	?define PR_T_DEST "Destination:"
27
	?define PR_T_SIZE "Size:"
27
	?define PR_T_SIZE "Size:"
28
	?define CREATED_OPENED_MODIFIED "Created:\nOpened:\nModified:"
28
	?define CREATED_OPENED_MODIFIED "Created:\nOpened:\nModified:"
29
	?define SET_6 "Files: "
29
	?define SET_6 "Files: "
Line 39... Line 39...
39
dword mouse_ddd2;
39
dword mouse_ddd2;
40
char path_to_file[4096]="\0";
40
char path_to_file[4096]="\0";
41
char file_name2[4096]="\0";
41
char file_name2[4096]="\0";
42
edit_box file_name_ed = {195,50,25,0xffffff,0x94AECE,0xFFFfff,0xffffff,2,4098,#file_name2,#mouse_ddd2, 1000000000000000b,2,2};
42
edit_box file_name_ed = {195,50,25,0xffffff,0x94AECE,0xFFFfff,0xffffff,2,4098,#file_name2,#mouse_ddd2, 1000000000000000b,2,2};
43
edit_box path_to_file_ed = {145,100,46,0xffffff,0x94AECE,0xFFFfff,0xffffff,2,4098,#path_to_file,#mouse_ddd2, 1000000000000000b,2,2};
43
edit_box path_to_file_ed = {145,100,46,0xffffff,0x94AECE,0xFFFfff,0xffffff,2,4098,#path_to_file,#mouse_ddd2, 1000000000000000b,2,2};
44
frame flags_frame = { 0, 280, 10, 83, 151, 0x000111, 0xFFFfff, 1, FLAGS, 0, 0, 6, 0x000111, 0xFFFFFF };
44
frame flags_frame = { 0, 280, 10, 83, 151, 0x000111, 0xFFFfff, 1, FLAGS, 0, 1, 12, 0x000111, 0xFFFFFF };
Line 45... Line 45...
45
 
45
 
46
int file_count, dir_count, size_dir;
46
int file_count, dir_count, size_dir;
47
char folder_info[200];
47
char folder_info[200];
48
dword element_size;
48
dword element_size;
49
char element_size_label[32];
49
char element_size_label[32];
50
BDVK file_info_general;
50
BDVK file_info_general;
Line 51... Line 51...
51
BDVK file_info_dirsize;
51
BDVK file_info_dirsize;
52
 
52
 
Line 53... Line 53...
53
proc_info settings_form;
53
proc_info settings_form;
54
byte quest_active, atr_readonly, atr_hidden, atr_system;
54
bool quest_active, atr_readonly, atr_hidden, atr_system;
55
 
55
 
56
void SetPropertiesDir(dword way)
56
void SetPropertiesDir(dword way)
Line 140... Line 140...
140
    _not_draw = false;
140
    _not_draw = false;
141
    EventRedrawWindow(Form.left,Form.top);
141
    EventRedrawWindow(Form.left,Form.top);
142
	ExitProcess();
142
	ExitProcess();
143
}
143
}
Line 144... Line 144...
144
 
144
 
145
void Quest()
145
void ShowConfirmQuestionPopin()
-
 
146
{
146
{
147
	quest_active = 1;
147
	DrawPopup(30,80,200,90,1,system.color.work, system.color.work_graph);
148
	DrawPopup(30,80,200,90,1,system.color.work, system.color.work_graph);
148
	WriteText(50, 100, 0x80, 0x000000, QUEST_1);
149
	WriteText(50, 100, 0x80, 0x000000, QUEST_1);
149
	WriteText(80, 115, 0x80, 0x000000, QUEST_2);
150
	WriteText(80, 115, 0x80, 0x000000, QUEST_2);
150
	DrawFlatButton(52,138,70,20,301,T_YES);
151
	DrawFlatButton(52,138,70,20,301,T_YES);
Line 247... Line 248...
247
				id=GetButtonID();
248
				id=GetButtonID();
248
				if (quest_active)
249
				if (quest_active)
249
				{
250
				{
250
					IF (id==301) SetProperties(2);
251
					IF (id==301) SetProperties(2);
251
					IF (id==302) SetProperties(1);
252
					IF (id==302) SetProperties(1);
-
 
253
					quest_active=false;
252
					break;
254
					break;
253
				}
255
				}
254
				if (id==1) || (id==10)
256
				if (id==1) || (id==10)
255
				{
257
				{
256
					cmd_free=3;
258
					cmd_free=3;
Line 258... Line 260...
258
				}
260
				}
259
				IF (id==11) 
261
				IF (id==11) 
260
				{
262
				{
261
					if (selected_count) || (itdir)
263
					if (selected_count) || (itdir)
262
					{
264
					{
263
						quest_active = 1;
-
 
264
						Quest();
265
						ShowConfirmQuestionPopin();
265
					}
266
					}
266
					else 
267
					else 
267
					{
268
					{
268
						SetProperties(0);
269
						SetProperties(0);
269
					}
270
					}
Line 285... Line 286...
285
				
286
				
286
				if (quest_active)
287
				if (quest_active)
287
				{
288
				{
288
					IF (key_scancode==SCAN_CODE_ENTER) SetProperties(2);
289
					IF (key_scancode==SCAN_CODE_ENTER) SetProperties(2);
-
 
290
					IF (key_scancode==SCAN_CODE_ESC) SetProperties(1);
289
					IF (key_scancode==SCAN_CODE_ESC) SetProperties(1);
291
					quest_active=false;
290
					break;
292
					break;
291
				}
293
				}
292
				if (key_scancode==SCAN_CODE_ESC)
294
				if (key_scancode==SCAN_CODE_ESC)
293
				{
295
				{
Line 296... Line 298...
296
				}
298
				}
297
				if (key_scancode==SCAN_CODE_ENTER)
299
				if (key_scancode==SCAN_CODE_ENTER)
298
				{
300
				{
299
					if (selected_count) || (itdir)
301
					if (selected_count) || (itdir)
300
					{
302
					{
301
						quest_active = 1;
-
 
302
						Quest();
303
						ShowConfirmQuestionPopin();
303
					}
304
					}
304
					else 
305
					else 
305
					{
306
					{
306
						SetProperties(0);
307
						SetProperties(0);
307
					}
308
					}
Line 330... Line 331...
330
 
331
 
Line 331... Line 332...
331
	WriteText(10, 65, 0x80, 0x000000, PR_T_SIZE);
332
	WriteText(10, 65, 0x80, 0x000000, PR_T_SIZE);
332
	
333
	
333
	if (selected_count)
334
	if (selected_count)
334
	{
335
	{
335
		Put_icon('', 18, 19, 0xFFFfff, 0);
336
		DrawIconByExtension('', 18, 19, 0xFFFfff);
336
		sprintf(#folder_info,"%s%d%s%d",SET_6,file_count,SET_7,dir_count);
337
		sprintf(#folder_info,"%s%d%s%d",SET_6,file_count,SET_7,dir_count);
337
		WriteText(50, 23, 0x80, 0x000000, #folder_info);
338
		WriteText(50, 23, 0x80, 0x000000, #folder_info);
338
		sprintf(#element_size_label,"%s (%d %s)",ConvertSize(size_dir),size_dir,SET_BYTE_LANG);
339
		sprintf(#element_size_label,"%s (%d %s)",ConvertSize(size_dir),size_dir,SET_BYTE_LANG);
339
		WriteText(100, 65, 0x80, 0x000000, #element_size_label);
340
		WriteText(100, 65, 0x80, 0x000000, #element_size_label);
340
	}
341
	}
341
	else
342
	else
342
	{
343
	{
343
		if ( file_info_general.isfolder )
344
		if ( file_info_general.isfolder )
344
				Put_icon("", 18, 19, 0xFFFfff, 0);
345
				DrawIconByExtension("", 18, 19, 0xFFFfff);
Line 345... Line 346...
345
		else
346
		else
346
				Put_icon(#file_name2+strrchr(#file_name2,'.'), 18, 19, 0xFFFfff, 0);
347
				DrawIconByExtension(#file_name2+strrchr(#file_name2,'.'), 18, 19, 0xFFFfff);
Line 347... Line 348...
347
 
348
 
Line 365... Line 366...
365
		WriteText(100, 65, 0x80, 0x000000, #element_size_label);
366
		WriteText(100, 65, 0x80, 0x000000, #element_size_label);
366
	}
367
	}
367
	flags_frame.size_x = - flags_frame.start_x * 2 + settings_form.cwidth - 2;
368
	flags_frame.size_x = - flags_frame.start_x * 2 + settings_form.cwidth - 2;
368
	flags_frame.font_color = system.color.work_text;
369
	flags_frame.font_color = system.color.work_text;
369
	flags_frame.ext_col = system.color.work_graph;
370
	flags_frame.ext_col = system.color.work_graph;
-
 
371
	flags_frame.font_backgr_color = system.color.work;
370
	frame_draw stdcall (#flags_frame);
372
	frame_draw stdcall (#flags_frame);
371
	DrawPropertiesCheckBoxes();
373
	DrawPropertiesCheckBoxes();
372
}
374
}
Line 373... Line 375...
373
 
375