Subversion Repositories Kolibri OS

Rev

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

Rev 5651 Rev 5674
Line 64... Line 64...
64
char docky_ini_path[] = "/sys/settings/docky.ini";
64
char docky_ini_path[] = "/sys/settings/docky.ini";
Line 65... Line 65...
65
 
65
 
66
unsigned char panels_img_data[] = FROM "panels_image.raw";
66
unsigned char panels_img_data[] = FROM "panels_image.raw";
Line 67... Line -...
67
raw_image panels_img = { 37, 27, #panels_img_data };
-
 
68
 
67
raw_image panels_img = { 37, 27, #panels_img_data };
Line 69... Line 68...
69
system_colors sc;
68
 
70
proc_info Form;
69
proc_info Form;
71
 
70
 
Line 147... Line 146...
147
				key = GetKey();
146
				key = GetKey();
148
				if (key==27) ExitProcess();
147
				if (key==27) ExitProcess();
149
				break;
148
				break;
Line 150... Line 149...
150
			
149
			
151
		case evReDraw:
150
		case evReDraw:
152
				sc.get();
151
				system.color.get();
153
				DefineAndDrawWindow(130, 150, 400, 300+GetSkinHeight(),0x34,sc.work,WINDOW_TITLE);
152
				DefineAndDrawWindow(130, 150, 400, 300+GetSkinHeight(),0x34,system.color.work,WINDOW_TITLE);
154
				GetProcessInfo(#Form, SelfInfo);
153
				GetProcessInfo(#Form, SelfInfo);
155
				if (Form.status_window>2) break;
154
				if (Form.status_window>2) break;
156
				taskbar_frame.size_x = docky_frame.size_x = - taskbar_frame.start_x * 2 + Form.cwidth;
155
				taskbar_frame.size_x = docky_frame.size_x = - taskbar_frame.start_x * 2 + Form.cwidth;
157
				taskbar_frame.font_color = docky_frame.font_color = sc.work_text;
156
				taskbar_frame.font_color = docky_frame.font_color = system.color.work_text;
158
				taskbar_frame.font_backgr_color = docky_frame.font_backgr_color = sc.work;
157
				taskbar_frame.font_backgr_color = docky_frame.font_backgr_color = system.color.work;
159
				taskbar_frame.ext_col = docky_frame.ext_col = sc.work_graph;
158
				taskbar_frame.ext_col = docky_frame.ext_col = system.color.work_graph;
160
				DrawWindowContent(ALL);
159
				DrawWindowContent(ALL);
161
	}
160
	}
Line 173... Line 172...
173
	}
172
	}
174
	if (panel_type==ALL) || (panel_type==TASKBAR)
173
	if (panel_type==ALL) || (panel_type==TASKBAR)
175
	{
174
	{
176
		DefineButton(22, taskbar_frame.start_y + 12, panels_img.w-1, 27-1, 100 + BT_HIDE, 0);
175
		DefineButton(22, taskbar_frame.start_y + 12, panels_img.w-1, 27-1, 100 + BT_HIDE, 0);
177
		_PutImage(22, taskbar_frame.start_y + 12,  37, 27, taskbar_cfg.Attachment * 37 * 27 * 3 + panels_img.data);
176
		_PutImage(22, taskbar_frame.start_y + 12,  37, 27, taskbar_cfg.Attachment * 37 * 27 * 3 + panels_img.data);
178
		WriteText(68, taskbar_frame.start_y + 20, 0x80, sc.work_text, CHANGE_POS);
177
		WriteText(68, taskbar_frame.start_y + 20, 0x80, system.color.work_text, CHANGE_POS);
179
		PanelCfg_CheckBox(22, taskbar_frame.start_y +  48, 105, SOFTEN_UP, taskbar_cfg.SoftenUp);
178
		PanelCfg_CheckBox(22, taskbar_frame.start_y +  48, 105, SOFTEN_UP, taskbar_cfg.SoftenUp);
180
		PanelCfg_CheckBox(22, taskbar_frame.start_y +  68, 106, SOFTEN_DOWN, taskbar_cfg.SoftenDown);
179
		PanelCfg_CheckBox(22, taskbar_frame.start_y +  68, 106, SOFTEN_DOWN, taskbar_cfg.SoftenDown);
181
		PanelCfg_CheckBox(22, taskbar_frame.start_y +  88, 107, MIN_LEFT_BUTTON, taskbar_cfg.MinLeftButton);
180
		PanelCfg_CheckBox(22, taskbar_frame.start_y +  88, 107, MIN_LEFT_BUTTON, taskbar_cfg.MinLeftButton);
182
		PanelCfg_CheckBox(22, taskbar_frame.start_y + 108, 108, MIN_RIGHT_BUTTON, taskbar_cfg.MinRightButton);
181
		PanelCfg_CheckBox(22, taskbar_frame.start_y + 108, 108, MIN_RIGHT_BUTTON, taskbar_cfg.MinRightButton);
183
		win_center_x = Form.cwidth / 2;
182
		win_center_x = Form.cwidth / 2;
Line 191... Line 190...
191
	}
190
	}
192
	if (panel_type==ALL) || (panel_type==DOCKY)
191
	if (panel_type==ALL) || (panel_type==DOCKY)
193
	{
192
	{
194
		DefineButton(22, docky_frame.start_y + 12, panels_img.w-1, 27-1, 200 + BT_HIDE, 0);
193
		DefineButton(22, docky_frame.start_y + 12, panels_img.w-1, 27-1, 200 + BT_HIDE, 0);
195
		_PutImage(22, docky_frame.start_y + 12,  37, 27, docky_cfg.location + 1 * 37 * 27 * 3 + panels_img.data);
194
		_PutImage(22, docky_frame.start_y + 12,  37, 27, docky_cfg.location + 1 * 37 * 27 * 3 + panels_img.data);
196
		WriteText(68, docky_frame.start_y + 20, 0x80, sc.work_text, CHANGE_POS);
195
		WriteText(68, docky_frame.start_y + 20, 0x80, system.color.work_text, CHANGE_POS);
197
		PanelCfg_CheckBox(22, docky_frame.start_y + 48, 201, FSIZE,  docky_cfg.fsize);
196
		PanelCfg_CheckBox(22, docky_frame.start_y + 48, 201, FSIZE,  docky_cfg.fsize);
198
		PanelCfg_CheckBox(win_center_x, docky_frame.start_y + 48, 202, ASHOW, docky_cfg.ashow);
197
		PanelCfg_CheckBox(win_center_x, docky_frame.start_y + 48, 202, ASHOW, docky_cfg.ashow);
199
	}
198
	}
200
}
199
}
Line 265... Line 264...
265
}
264
}
Line 266... Line 265...
266
 
265
 
267
 
266
 
268
 
267
 
Line 269... Line 268...
269
void PanelCfg_CheckBox(dword x, y, id, text, byte value) {
268
void PanelCfg_CheckBox(dword x, y, id, text, byte value) {
270
	CheckBox(x, y, 14, 14, id, text, sc.work_graph, sc.work_text, value);
269
	CheckBox(x, y, 14, 14, id, text, system.color.work_graph, system.color.work_text, value);
271
}
270
}
Line 272... Line 271...
272
 
271
 
273
void PanelCfg_MoreLessBox(dword x, y, id_more, id_less; byte value; dword text) {
272
void PanelCfg_MoreLessBox(dword x, y, id_more, id_less; byte value; dword text) {