Subversion Repositories Kolibri OS

Rev

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

Rev 7244 Rev 7458
Line 59... Line 59...
59
_ini taskbar_vars_ini = { #taskbar_ini_path, "Variables" };
59
_ini taskbar_vars_ini = { #taskbar_ini_path, "Variables" };
Line 60... Line 60...
60
 
60
 
Line 61... Line 61...
61
_ini docky_ini = { "/sys/settings/docky.ini", "@" };
61
_ini docky_ini = { "/sys/settings/docky.ini", "@" };
-
 
62
 
62
 
63
unsigned char panels_img_data[] = FROM "panels_image.raw";
Line 63... Line 64...
63
unsigned char panels_img_data[] = FROM "panels_image.raw";
64
#define PIMG_W 37
Line 64... Line 65...
64
raw_image panels_img = { 37, 27, #panels_img_data };
65
#define PIMG_H 27 //27*5
65
 
66
 
Line 145... Line 146...
145
				if (Form.status_window>2) break;
146
				if (Form.status_window>2) break;
146
				DrawWindowContent();
147
				DrawWindowContent();
147
	}
148
	}
148
}
149
}
Line -... Line 150...
-
 
150
 
-
 
151
void DrawPanelsImage(dword y, n)
-
 
152
{
-
 
153
	_PutImage(22, y, PIMG_W, PIMG_H, n * PIMG_W * PIMG_H * 3 + #panels_img_data);
-
 
154
}
149
 
155
 
150
void DrawWindowContent()
156
void DrawWindowContent()
151
{
157
{
152
	#define PD 10
158
	#define PD 10
153
	dword frame_y;
159
	dword frame_y;
154
	word win_center_x = Form.cwidth / 2 + 20;
160
	word win_center_x = Form.cwidth / 2 + 20;
Line 155... Line 161...
155
	incn y;
161
	incn y;
156
 
162
 
157
	frame_y = 15;
163
	frame_y = 15;
158
	y.n = frame_y;
164
	y.n = frame_y;
159
	DefineButton(22, y.inc(18), panels_img.w-1, 27-1, 100 + BT_HIDE, 0);
165
	DefineButton(22, y.inc(18), PIMG_W-1, PIMG_H-1, 100 + BT_HIDE, 0);
160
	_PutImage(22, y.n, 37, 27, tbAttachment * 37 * 27 * 3 + panels_img.data);
166
	DrawPanelsImage(y.n, tbAttachment);
161
	WriteText(68, y.inc(7), 0x90, system.color.work_text, CHANGE_POS);
167
	WriteText(68, y.inc(7), 0x90, system.color.work_text, CHANGE_POS);
162
	tbSoftenUp.draw(22, y.inc(35));
168
	tbSoftenUp.draw(22, y.inc(35));
163
	tbClock.draw(win_center_x, y.n);
169
	tbClock.draw(win_center_x, y.n);
Line 171... Line 177...
171
	tbSoftenHeight.draw(22, y.inc(32));
177
	tbSoftenHeight.draw(22, y.inc(32));
172
	tbButtonOffset.draw(22, y.inc(32));
178
	tbButtonOffset.draw(22, y.inc(32));
173
	DrawFrame(PD, frame_y, Form.cwidth-PD-PD, y.inc(32)-frame_y, TASK_FRAME_T);
179
	DrawFrame(PD, frame_y, Form.cwidth-PD-PD, y.inc(32)-frame_y, TASK_FRAME_T);
174
	//DOCKY
180
	//DOCKY
175
	frame_y = calc(y.inc(20));
181
	frame_y = calc(y.inc(20));
176
	DefineButton(22, y.inc(18), panels_img.w-1, 27-1, 200 + BT_HIDE, 0);
182
	DefineButton(22, y.inc(18), PIMG_W-1, PIMG_H-1, 200 + BT_HIDE, 0);
177
	_PutImage(22, y.n,  37, 27, dkLocation + 1 * 37 * 27 * 3 + panels_img.data);
183
	DrawPanelsImage(y.n, dkLocation);
178
	WriteText(68, y.inc(7), 0x90, system.color.work_text, CHANGE_POS);
184
	WriteText(68, y.inc(7), 0x90, system.color.work_text, CHANGE_POS);
179
	dkFsize.draw(22, y.inc(35)); 
185
	dkFsize.draw(22, y.inc(35)); 
180
	dkAshow.draw(win_center_x, y.n);
186
	dkAshow.draw(win_center_x, y.n);
181
	DrawFrame(PD, frame_y, Form.cwidth-PD-PD, Form.cheight-frame_y-PD, DOCK_FRAME_T);
187
	DrawFrame(PD, frame_y, Form.cwidth-PD-PD, Form.cheight-frame_y-PD, DOCK_FRAME_T);
182
}
188
}