Subversion Repositories Kolibri OS

Rev

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

Rev 7183 Rev 7188
Line 34... Line 34...
34
 
34
 
35
//simple open dialog data
35
//simple open dialog data
36
char default_dir[] = "/rd/1";
36
char default_dir[] = "/rd/1";
Line 37... Line 37...
37
od_filter filter2 = { 8, "MP3\0\0" };
37
od_filter filter2 = { 8, "MP3\0\0" };
38
 
38
 
-
 
39
#define ABOUT_MESSAGE "'Pixies Player v2.61
Line 39... Line 40...
39
#define ABOUT_MESSAGE "'Pixies Player v2.6
40
A tiny music folder player.
40
A tiny MP3 folder player.
41
Supports MP3, WAV, XM audio file formats.
41
 
42
 
42
Controls:
43
Controls:
Line 199... Line 200...
199
	char temp_filename[4096];
200
	char temp_filename[4096];
200
	dword text_color, bg_color;
201
	dword text_color, bg_color;
201
	for (i=0; i
202
	for (i=0; i
202
	{
203
	{
203
		strcpy(#temp_filename, files_mas[i + list.first] * 304 + buf + 72);
204
		strcpy(#temp_filename, files_mas[i + list.first] * 304 + buf + 72);
204
		//temp_filename[strlen(#temp_filename)-4] = '\0';
205
		temp_filename[strrchr(#temp_filename, '.')-1] = '\0'; 
205
		//if (strlen(#temp_filename)>47) strcpy(#temp_filename+44, "..."); 
206
		//if (strlen(#temp_filename)>47) strcpy(#temp_filename+44, "..."); 
Line 206... Line 207...
206
		
207
		
Line 207... Line 208...
207
		yyy = i*list.item_h+list.y;
208
		yyy = i*list.item_h+list.y;
Line 262... Line 263...
262
	if (window_mode == WINDOW_MODE_NORMAL)
263
	if (window_mode == WINDOW_MODE_NORMAL)
263
	{
264
	{
264
		button_y = 46;
265
		button_y = 46;
265
		img_draw stdcall(skin.image, 0, 0, skin.w, skin.h, 0, 0);
266
		img_draw stdcall(skin.image, 0, 0, skin.w, skin.h, 0, 0);
266
		if (playback_mode != PLAYBACK_MODE_STOPED) img_draw stdcall(skin.image, 46, button_y, 41, 21, skin.w+1, WIN_H_SMALL+1);
267
		if (playback_mode != PLAYBACK_MODE_STOPED) img_draw stdcall(skin.image, 46, button_y, 41, 21, skin.w+1, WIN_H_SMALL+1);
267
		if (repeat) img_draw stdcall(skin.image, Form.width - 108+8, button_y, 20, 20, skin.w+50, WIN_H_SMALL+1);
268
		if (repeat) img_draw stdcall(skin.image, Form.width - 101-1, button_y+2, 17, 17, skin.w+43, WIN_H_SMALL+1);
268
		if (shuffle) img_draw stdcall(skin.image, Form.width - 81+5, button_y, 20, 20, skin.w+75, WIN_H_SMALL+1);
269
		if (shuffle) img_draw stdcall(skin.image, Form.width - 82-1, button_y+2, 17, 17, skin.w+62, WIN_H_SMALL+1);
Line 269... Line 270...
269
 
270
 
270
		if /*(!list.count) && */ (!work_folder) DrawPixieTitle("Pixie");
271
		if /*(!list.count) && */ (!work_folder) DrawPixieTitle("Pixie");
271
		else DrawPixieTitle(#work_folder + strrchr(#work_folder, '/'));
272
		else DrawPixieTitle(#work_folder + strrchr(#work_folder, '/'));
272
		kfont.WriteIntoWindow(8, 24, theme.color_top_panel_bg, theme.color_top_panel_song_name, list.font_type, GetSongTitle());
273
		kfont.WriteIntoWindow(8, 24, theme.color_top_panel_bg, theme.color_top_panel_song_name, list.font_type, GetSongTitle());
Line 277... Line 278...
277
		//Window control buttons
278
		//Window control buttons
278
		DefineHiddenButton(Form.width - 27, 1, 26, 15, BUTTON_WINDOW_CLOSE);
279
		DefineHiddenButton(Form.width - 27, 1, 26, 15, BUTTON_WINDOW_CLOSE);
279
		DefineHiddenButton(Form.width - 55, 1, 26, 15, BUTTON_WINDOW_MINIMIZE);
280
		DefineHiddenButton(Form.width - 55, 1, 26, 15, BUTTON_WINDOW_MINIMIZE);
280
		DefineHiddenButton(Form.width - 83, 1, 26, 15, BUTTON_WINDOW_REDUCE);
281
		DefineHiddenButton(Form.width - 83, 1, 26, 15, BUTTON_WINDOW_REDUCE);
281
		//Other buttons
282
		//Other buttons
-
 
283
		button_y += 3;
282
		DefineHiddenButton(Form.width - 108,button_y, 23, 23, BUTTON_REPEAT);
284
		DefineHiddenButton(Form.width - 101,button_y, 17, 16, BUTTON_REPEAT);
283
		DefineHiddenButton(Form.width - 81, button_y, 23, 23, BUTTON_SHUFFLE);
285
		DefineHiddenButton(Form.width - 82, button_y, 17, 16, BUTTON_SHUFFLE);
284
		DefineHiddenButton(Form.width - 54, button_y, 23, 23, BUTTON_OPEN_DIALOG);
286
		DefineHiddenButton(Form.width - 54, button_y, 23, 23, BUTTON_OPEN_DIALOG);
285
		DefineHiddenButton(Form.width - 27, button_y, 23, 23, BUTTON_SHOW_VOLUME);
287
		DefineHiddenButton(Form.width - 27, button_y, 23, 23, BUTTON_SHOW_VOLUME);
286
	}
288
	}
287
	else if (window_mode == WINDOW_MODE_SMALL)
289
	else if (window_mode == WINDOW_MODE_SMALL)
288
	{
290
	{