Subversion Repositories Kolibri OS

Rev

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

Rev 5654 Rev 5674
Line 1... Line 1...
1
#ifndef AUTOBUILD
1
#ifndef AUTOBUILD
2
#include "lang.h--"
2
#include "lang.h--"
3
#endif
3
#endif
Line 4... Line 4...
4
 
4
 
5
#define MEMSIZE 0x23E80
-
 
6
#include "..\lib\kolibri.h" 
5
#define MEMSIZE 0x23E80
7
#include "..\lib\strings.h" 
6
#include "..\lib\strings.h" 
8
#include "..\lib\mem.h" 
7
#include "..\lib\mem.h" 
9
#include "..\lib\file_system.h"
-
 
10
#include "..\lib\dll.h"
8
#include "..\lib\file_system.h"
11
#include "..\lib\gui.h"
9
#include "..\lib\gui.h"
12
#include "..\lib\obj\libio_lib.h"
10
#include "..\lib\obj\libio_lib.h"
13
#include "..\lib\obj\box_lib.h"
11
#include "..\lib\obj\box_lib.h"
Line 38... Line 36...
38
 
36
 
39
 
37
 
Line 40... Line -...
40
unsigned char panels_img_data[] = FROM "mouse_image.raw";
-
 
41
raw_image panels_img = { 59, 101, #panels_img_data };
38
unsigned char panels_img_data[] = FROM "mouse_image.raw";
Line 42... Line 39...
42
 
39
raw_image panels_img = { 59, 101, #panels_img_data };
43
system_colors sc;
40
 
Line 125... Line 122...
125
		case evKey:
122
		case evKey:
126
				if (GetKey()==27) ExitProcess();
123
				if (GetKey()==27) ExitProcess();
127
				break;
124
				break;
Line 128... Line 125...
128
			
125
			
129
		case evReDraw:
126
		case evReDraw:
130
				sc.get();
127
				system.color.get();
131
				DefineAndDrawWindow(430, 150, 360, 280+GetSkinHeight(),0x34,sc.work,WINDOW_TITLE);
128
				DefineAndDrawWindow(430, 150, 360, 280+GetSkinHeight(),0x34,system.color.work,WINDOW_TITLE);
132
				GetProcessInfo(#Form, SelfInfo);
129
				GetProcessInfo(#Form, SelfInfo);
133
				if (Form.status_window>2) break;
130
				if (Form.status_window>2) break;
134
				SetFrameColors();
131
				SetFrameColors();
135
				DefineButton(mouse_frame.start_x+2, mouse_frame.start_y+2, mouse_frame.size_x-4, 
132
				DefineButton(mouse_frame.start_x+2, mouse_frame.start_y+2, mouse_frame.size_x-4, 
Line 141... Line 138...
141
				DrawControls();
138
				DrawControls();
142
	}
139
	}
143
}
140
}
Line 144... Line 141...
144
 
141
 
145
void PanelCfg_CheckBox(dword x, y, id, text, byte value) {
142
void PanelCfg_CheckBox(dword x, y, id, text, byte value) {
146
	CheckBox(x, y, 14, 14, id, text, sc.work_graph, sc.work_text, value);
143
	CheckBox(x, y, 14, 14, id, text, system.color.work_graph, system.color.work_text, value);
Line 147... Line 144...
147
}
144
}
148
 
145
 
149
 
146
 
Line 150... Line 147...
150
void PanelCfg_MoreLessBox(dword x, y, id_more, id_less; byte value; dword text) {
147
void PanelCfg_MoreLessBox(dword x, y, id_more, id_less; byte value; dword text) {
151
	MoreLessBox(x, y, 18, id_more, id_less, #sc, value, text);
148
	MoreLessBox(x, y, 18, id_more, id_less, #system.color, value, text);
152
}
149
}
Line 163... Line 160...
163
	PanelCfg_CheckBox(pos_x, mouse_frame.start_y + 226, 101, MADMOUSE, mouse_cfg.madmouse);
160
	PanelCfg_CheckBox(pos_x, mouse_frame.start_y + 226, 101, MADMOUSE, mouse_cfg.madmouse);
164
}
161
}
Line 165... Line 162...
165
 
162
 
166
void SetFrameColors() {
163
void SetFrameColors() {
167
	mouse_frame.size_x = - mouse_frame.start_x * 2 + Form.cwidth;
164
	mouse_frame.size_x = - mouse_frame.start_x * 2 + Form.cwidth;
168
	mouse_frame.font_color = sc.work_text;
165
	mouse_frame.font_color = system.color.work_text;
169
	mouse_frame.font_backgr_color = sc.work;
166
	mouse_frame.font_backgr_color = system.color.work;
170
	mouse_frame.ext_col = sc.work_graph;
167
	mouse_frame.ext_col = system.color.work_graph;
Line 171... Line 168...
171
}
168
}
172
 
169
 
173
void LoadCfg() {
170
void LoadCfg() {