Subversion Repositories Kolibri OS

Rev

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

Rev 5436 Rev 5441
Line 29... Line 29...
29
void settings_dialog()
29
void settings_dialog()
30
{   
30
{   
31
	byte id;
31
	byte id;
32
	unsigned int key;
32
	unsigned int key;
33
	proc_info settings_form;
33
	proc_info settings_form;
34
	dword eolite_ini_path = abspath("Eolite.ini");
-
 
Line 35... Line 34...
35
 
34
 
36
	if (active_about) ExitProcess();
35
	if (active_about) ExitProcess();
Line 37... Line 36...
37
	active_about=1;
36
	active_about=1;
Line 44... Line 43...
44
	{
43
	{
45
		case evButton: 
44
		case evButton: 
46
				id=GetButtonID();
45
				id=GetButtonID();
47
				if (id==10)
46
				if (id==10)
48
				{
47
				{
49
					if ( asm test ShowDeviceName_chb.flags, 2) ini_set_int stdcall (eolite_ini_path, "Config", "ShowDeviceName", 1);
-
 
50
					ELSE  ini_set_int stdcall (eolite_ini_path, "Config", "ShowDeviceName", 0);
48
					SaveIniSettings();
51
					if ( asm test RealFileNamesCase_chb.flags, 2) ini_set_int stdcall (eolite_ini_path, "Config", "RealFileNamesCase", 1);
-
 
52
					ELSE ini_set_int stdcall (eolite_ini_path, "Config", "RealFileNamesCase", 0);
-
 
53
					if (LineHeight_ed.size) ini_set_int stdcall (eolite_ini_path, "Config", "LineHeight", atoi(#lineh_s));
-
 
54
					active_about=0;
49
					active_about=0;
55
					action_buf = 300;
50
					action_buf = 300;
56
					ExitProcess();
51
					ExitProcess();
57
				}					
52
				}					
58
				if (id==1) || (id==11) 
53
				if (id==1) || (id==11) 
Line 107... Line 102...
107
				DrawFlatButton(208, settings_form.cheight - 34, 70, 22, 11, 0xE4DFE1, CANCEL_T);
102
				DrawFlatButton(208, settings_form.cheight - 34, 70, 22, 11, 0xE4DFE1, CANCEL_T);
108
	}
103
	}
109
}
104
}
Line 110... Line 105...
110
 
105
 
111
 
106
 
112
void GetIni()
-
 
113
{
107
void LoadIniSettings()
114
	dword eolite_ini_path = abspath("Eolite.ini"); 
108
{
115
	ini_get_color stdcall (eolite_ini_path, "Config", "SelectionColor", 0x94AECE);
109
	ini_get_color stdcall (eolite_ini_path, "Config", "SelectionColor", 0x94AECE);
116
	edit2.shift_color = EAX;
110
	edit2.shift_color = EAX;
117
	col_selec = EAX;
111
	col_selec = EAX;
Line 121... Line 115...
121
	show_dev_name = EAX;
115
	show_dev_name = EAX;
122
	ini_get_int stdcall (eolite_ini_path, "Config", "RealFileNamesCase", 0);
116
	ini_get_int stdcall (eolite_ini_path, "Config", "RealFileNamesCase", 0);
123
	real_files_names_case = EAX;
117
	real_files_names_case = EAX;
124
}
118
}
Line -... Line 119...
-
 
119
 
-
 
120
void SaveIniSettings()
-
 
121
{
-
 
122
	if (ShowDeviceName_chb.flags==6) show_dev_name=1; else show_dev_name=0;
-
 
123
	if (RealFileNamesCase_chb.flags==6) real_files_names_case=1; else real_files_names_case=0;
-
 
124
	ini_set_int stdcall (eolite_ini_path, "Config", "ShowDeviceName", show_dev_name);
-
 
125
	ini_set_int stdcall (eolite_ini_path, "Config", "RealFileNamesCase", real_files_names_case);
-
 
126
	ini_set_int stdcall (eolite_ini_path, "Config", "LineHeight", atoi(#lineh_s));
-
 
127
}
-
 
128
 
Line 125... Line 129...
125
 
129
 
126
 
130
 
127
void Write_Error(int error_number)
131
void Write_Error(int error_number)
128
{
132
{
Line 145... Line 149...
145
	sc.work_graph  = 0x9098B0; //A0A0B8; //0x819FC5;
149
	sc.work_graph  = 0x9098B0; //A0A0B8; //0x819FC5;
146
	sc.work_button_text = 0x000000;
150
	sc.work_button_text = 0x000000;
147
	col_padding = 0xC8C9C9;
151
	col_padding = 0xC8C9C9;
148
	//col_selec   = 0x94AECE;
152
	//col_selec   = 0x94AECE;
149
	col_lpanel  = 0x00699C;
153
	col_lpanel  = 0x00699C;
150
	/*
-
 
151
	sc.get();
-
 
152
	for (i=0; i<=14; i++) col_palette[i] = sc.work;
-
 
153
	toolbar_pal[0]= goto_about_pal[0] = sc.work = sc.work;
-
 
154
	col_lpanel = sc.work_graph;
-
 
155
	for (i=0; i<=99; i++) blue_hl_pal[i] = sc.work_graph;
-
 
156
	*/
-
 
157
}
154
}
158
>
155
>