Subversion Repositories Kolibri OS

Rev

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

Rev 5581 Rev 5582
Line 33... Line 33...
33
{   
33
{   
34
	byte id;
34
	byte id;
35
	unsigned int key;
35
	unsigned int key;
36
	proc_info settings_form;
36
	proc_info settings_form;
Line -... Line 37...
-
 
37
	
-
 
38
	dword save_show_dev_name,save_real_files_names_case, save_info_after_copy, save_use_big_fonts, save_files_h, save_DBLTime;
37
	
39
	
-
 
40
	if (active_settings){
-
 
41
		EXIT_SETTING: 
-
 
42
		show_dev_name = save_show_dev_name;
-
 
43
		real_files_names_case = save_real_files_names_case;
-
 
44
		info_after_copy = save_info_after_copy;
-
 
45
		use_big_fonts = save_use_big_fonts;
-
 
46
		files.line_h = save_files_h;
-
 
47
		MOUSE_TIME = save_DBLTime;
-
 
48
		cmd_free = 4;
-
 
49
		ExitProcess();
38
	if (active_settings){cmd_free = 4;ExitProcess();}
50
	}
-
 
51
	active_settings=1;
-
 
52
	
-
 
53
	save_show_dev_name = show_dev_name;
-
 
54
	save_real_files_names_case = real_files_names_case;
-
 
55
	save_info_after_copy = info_after_copy;
-
 
56
	save_use_big_fonts = use_big_fonts;
-
 
57
	save_files_h = files.line_h;
-
 
58
	save_DBLTime = MOUSE_TIME;
39
	active_settings=1;
59
	
Line 40... Line 60...
40
	SetEventMask(0x27);
60
	//SetEventMask(0x27);
41
	
61
	
42
	loop(){
62
	loop(){
43
	switch(WaitEvent())
63
	switch(WaitEvent())
Line 44... Line 64...
44
	{
64
	{
45
		case evMouse:
65
		/*case evMouse:
46
			
66
			
47
		break;
67
		break;*/
48
		case evButton: 
68
		case evButton: 
49
				id=GetButtonID();
69
				id=GetButtonID();
Line 56... Line 76...
56
					ExitProcess();
76
					ExitProcess();
57
				}					
77
				}					
58
				if (id==1) || (id==11) 
78
				if (id==1) || (id==11) 
59
				{
79
				{
60
					active_settings=0;
80
					active_settings=0;
61
					cmd_free = 4;
-
 
62
					ExitProcess();
81
					goto EXIT_SETTING;
63
				}
82
				}
64
				if (id==5)
83
				if (id==5)
65
				{
84
				{
66
					RunProgram("tinypad", "/sys/settings/assoc.ini");
85
					RunProgram("tinypad", "/sys/settings/assoc.ini");
67
					break;
86
					break;
Line 72... Line 91...
72
				if (id==23) use_big_fonts ^= 1;
91
				if (id==23) use_big_fonts ^= 1;
73
				if (id==25) files.line_h++;
92
				if (id==25) files.line_h++;
74
				if (id==26) && (files.line_h>8) files.line_h--;
93
				if (id==26) && (files.line_h>8) files.line_h--;
75
				if (id==27) MOUSE_TIME++;
94
				if (id==27) MOUSE_TIME++;
76
				if (id==28) && (MOUSE_TIME>30) MOUSE_TIME--;
95
				if (id==28) && (MOUSE_TIME>30) MOUSE_TIME--;
-
 
96
				RefreshWindow(Form.ID,settings_form.ID);
77
				DrawSettingsCheckBoxes();
97
				DrawSettingsCheckBoxes();
78
				break;
98
				break;
Line 79... Line 99...
79
				
99
				
80
		case evKey:
100
		case evKey:
81
				key = GetKey();
101
				key = GetKey();
82
				if (key==27)
102
				if (key==27)
83
				{
103
				{
84
					active_settings = 0;
104
					active_settings = 0;
85
					action_buf = 300;
-
 
86
					cmd_free = 4;
105
					action_buf = 300;
87
					ExitProcess();
106
					goto EXIT_SETTING;
88
				}
107
				}
Line 89... Line 108...
89
				break;
108
				break;
90
			
109