Subversion Repositories Kolibri OS

Rev

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

Rev 6805 Rev 6806
Line 49... Line 49...
49
 
49
 
50
 
50
 
51
void main()
51
void main()
52
{   
52
{   
53
	dword id;
53
	dword id;
54
	label.init(DEFAULT_FONT);
54
	kfont.init(DEFAULT_FONT);
55
	load_dll(libio,  #libio_init,1);
55
	load_dll(libio,  #libio_init,1);
Line 56... Line 56...
56
	load_dll(libimg, #libimg_init,1);
56
	load_dll(libimg, #libimg_init,1);
Line 133... Line 133...
133
	icon_char_pos = strchr(key_value, ',');
133
	icon_char_pos = strchr(key_value, ',');
134
	if (icon_char_pos) icon_id = atoi(icon_char_pos+1); else icon_id = default_icon;
134
	if (icon_char_pos) icon_id = atoi(icon_char_pos+1); else icon_id = default_icon;
135
	img_draw stdcall(skin.image, col*list.item_w+tmp-10, row*list.item_h+5 + list_pos, 32, 32, 0, icon_id*32);
135
	img_draw stdcall(skin.image, col*list.item_w+tmp-10, row*list.item_h+5 + list_pos, 32, 32, 0, icon_id*32);
136
	if (icon_char_pos) ESBYTE[icon_char_pos] = '\0'; //delete icon from string
136
	if (icon_char_pos) ESBYTE[icon_char_pos] = '\0'; //delete icon from string
137
	app_path_collection.add(key_value);
137
	app_path_collection.add(key_value);
138
	//label.WriteIntoWindowCenter(col*list.item_w+7,row*list.item_h+47 + list_pos, list.item_w,0, LIST_BACKGROUND_COLOR, 0xDCDCDC, 12, key_name);
138
	//kfont.WriteIntoWindowCenter(col*list.item_w+7,row*list.item_h+47 + list_pos, list.item_w,0, LIST_BACKGROUND_COLOR, 0xDCDCDC, 12, key_name);
139
	label.WriteIntoWindowCenter(col*list.item_w+6,row*list.item_h+46 + list_pos, list.item_w,0, LIST_BACKGROUND_COLOR, 0x000000, 12, key_name);
139
	kfont.WriteIntoWindowCenter(col*list.item_w+6,row*list.item_h+46 + list_pos, list.item_w,0, LIST_BACKGROUND_COLOR, 0x000000, 12, key_name);
140
	if (list.cur_y == list.count) DrawWideRectangle(col*list.item_w+6, row*list.item_h + list_pos,list.item_w,list.item_h-5, 2, 0x0080FF);
140
	if (list.cur_y == list.count) DrawWideRectangle(col*list.item_w+6, row*list.item_h + list_pos,list.item_w,list.item_h-5, 2, 0x0080FF);
141
	list.count++;
141
	list.count++;
142
	col++;
142
	col++;
143
	return true;
143
	return true;
144
}
144
}
Line 159... Line 159...
159
		row++;
159
		row++;
160
	}
160
	}
161
	col = 0;
161
	col = 0;
162
	old_row = row;
162
	old_row = row;
163
	DrawBar(0, row * list.item_h + list_pos, Form.cwidth , 29, LIST_BACKGROUND_COLOR);
163
	DrawBar(0, row * list.item_h + list_pos, Form.cwidth , 29, LIST_BACKGROUND_COLOR);
164
	text_len = label.WriteIntoWindow(10, row * list.item_h + 10 + list_pos, LIST_BACKGROUND_COLOR, 0, 15, sec_name);
164
	text_len = kfont.WriteIntoWindow(10, row * list.item_h + 10 + list_pos, LIST_BACKGROUND_COLOR, 0, 15, sec_name);
165
	DrawBar(text_len+20, row * list.item_h + list_pos + 20, Form.cwidth-text_len-20, 1, 0xDCDCDC);
165
	DrawBar(text_len+20, row * list.item_h + list_pos + 20, Form.cwidth-text_len-20, 1, 0xDCDCDC);
166
	DrawBar(text_len+20, row * list.item_h + list_pos + 21, Form.cwidth-text_len-20, 1, 0xFCFCFC);
166
	DrawBar(text_len+20, row * list.item_h + list_pos + 21, Form.cwidth-text_len-20, 1, 0xFCFCFC);
167
	list_pos += 29;
167
	list_pos += 29;
168
	ini_enum_keys stdcall (f_name, sec_name, #draw_icons_from_section);
168
	ini_enum_keys stdcall (f_name, sec_name, #draw_icons_from_section);
169
	return true;
169
	return true;
Line 172... Line 172...
172
void draw_top_bar()
172
void draw_top_bar()
173
{
173
{
174
	DrawBar(0,0,Form.cwidth, list.y-2, system.color.work);
174
	DrawBar(0,0,Form.cwidth, list.y-2, system.color.work);
175
	DrawBar(0,list.y-2, Form.cwidth, 1, MixColors(system.color.work, system.color.work_graph, 180));
175
	DrawBar(0,list.y-2, Form.cwidth, 1, MixColors(system.color.work, system.color.work_graph, 180));
176
	DrawBar(0,list.y-1, Form.cwidth, 1, system.color.work_graph);
176
	DrawBar(0,list.y-1, Form.cwidth, 1, system.color.work_graph);
177
	label.WriteIntoWindowCenter(0,5, Form.cwidth, list.y, system.color.work, system.color.work_text, 16, #window_title);
177
	kfont.WriteIntoWindowCenter(0,5, Form.cwidth, list.y, system.color.work, system.color.work_text, 16, #window_title);
178
}
178
}
Line 179... Line 179...
179
 
179
 
180
void EventRunApp(dword appid)
180
void EventRunApp(dword appid)
181
{
181
{