Rev 7742 | Rev 7995 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7742 | Rev 7765 | ||
---|---|---|---|
Line 337... | Line 337... | ||
337 | if (strlen(#title)>30) strcpy(#title+30, "..."); |
337 | if (strlen(#title)>30) strcpy(#title+30, "..."); |
338 | kfont.WriteIntoWindow(8, 5, theme.color_top_panel_bg, |
338 | kfont.WriteIntoWindow(8, 5, theme.color_top_panel_bg, |
339 | theme.color_top_panel_folder_name, list.font_type, #title); |
339 | theme.color_top_panel_folder_name, list.font_type, #title); |
340 | } |
340 | } |
Line -... | Line 341... | ||
- | 341 | ||
- | 342 | void DrawAboutWindow() |
|
- | 343 | { |
|
- | 344 | proc_info pop_up; |
|
- | 345 | loop() switch(WaitEvent()) |
|
- | 346 | { |
|
- | 347 | case evButton: |
|
- | 348 | ExitProcess(); |
|
- | 349 | break; |
|
- | 350 | case evKey: |
|
- | 351 | GetKeys(); |
|
- | 352 | if (key_scancode == SCAN_CODE_ESC) ExitProcess(); |
|
- | 353 | break; |
|
- | 354 | case evReDraw: |
|
- | 355 | DefineDragableWindow(150, 200, 400, 400); |
|
- | 356 | GetProcessInfo(#pop_up, SelfInfo); |
|
- | 357 | ||
- | 358 | DrawBar(0, 0, pop_up.width, pop_up.height, theme.color_top_panel_bg); |
|
- | 359 | DrawRectangle(0, 0, pop_up.width, pop_up.height, theme.color_list_border); |
|
- | 360 | ||
- | 361 | DefineHiddenButton(pop_up.width - 27, 1, 26, 15, BUTTON_WINDOW_CLOSE); |
|
- | 362 | //img_draw stdcall(skin.image, pop_up.width-28, 0, 28, 18, skin.w - 29, 0); |
|
- | 363 | DrawCaptButton(pop_up.width-10-80, pop_up.height - 34, 80, 24, 2, |
|
- | 364 | 0x171717, 0xF5EFB3, "Cool"); |
|
- | 365 | ||
- | 366 | WriteText(131,16, 0x81, 0x8E7C61, "Pixie Player"); |
|
- | 367 | WriteText(130,15, 0x81, 0xF5EFB3, "Pixie Player"); |
|
- | 368 | ||
- | 369 | WriteTextLines(10, 40, 0x90, theme.color_top_panel_song_name, ABOUT_MESSAGE, 19); |
|
- | 370 | DrawIcon32(45, 15, theme.color_top_panel_bg, 65); |
|
- | 371 | DrawIcon32(pop_up.width-32-45, 15, theme.color_top_panel_bg, 65); |
|
- | 372 | ||
- | 373 | } |
|
- | 374 | } |
|
341 | 375 | ||
342 | //===================================================// |
376 | //===================================================// |
343 | // // |
377 | // // |
344 | // EVENTS // |
378 | // EVENTS // |
345 | // // |
379 | // // |
Line 406... | Line 440... | ||
406 | strlcpy(#current_filename, GetPlayingItemName(), sizeof(current_filename)); |
440 | strlcpy(#current_filename, GetPlayingItemName(), sizeof(current_filename)); |
407 | sprintf(#item_path,"-h %s/%s",#work_folder,#current_filename); |
441 | sprintf(#item_path,"-h %s/%s",#work_folder,#current_filename); |
408 | current_filename[strrchr(#current_filename, '.')-1] = '\0'; |
442 | current_filename[strrchr(#current_filename, '.')-1] = '\0'; |
409 | DrawPlayList(); |
443 | DrawPlayList(); |
410 | DrawTopPanel(); |
444 | DrawTopPanel(); |
- | 445 | //start_playing_time = |
|
411 | player_run_id = RunProgram("/sys/media/ac97snd", #item_path); |
446 | player_run_id = RunProgram("/sys/media/ac97snd", #item_path); |
- | 447 | //player_run_id = RunProgram("/kolibrios/media/minimp3", #item_path); |
|
412 | sprintf(#notify_message,"'Now playing:\n%s' -St",#current_filename); |
448 | sprintf(#notify_message,"'Now playing:\n%s' -St",#current_filename); |
413 | if (!repeat) && (window_mode==WINDOW_MODE_SMALL) |
449 | if (!repeat) && (window_mode==WINDOW_MODE_SMALL) |
414 | { |
450 | { |
415 | for (i=2; i |
451 | for (i=2; i |
416 | { |
452 | { |
Line 536... | Line 572... | ||
536 | EventRemoveItemFromList(); |
572 | EventRemoveItemFromList(); |
537 | } |
573 | } |
Line 538... | Line 574... | ||
538 | 574 | ||
539 | void EventShowAbout() |
575 | void EventShowAbout() |
540 | { |
576 | { |
541 | CreateThread(#ShowAboutThread,#menu_stak+4092); |
- | |
542 | } |
- | |
543 | - | ||
544 | void ShowAboutThread() |
- | |
545 | { |
- | |
546 | proc_info pop_up; |
- | |
547 | loop() switch(WaitEvent()) |
- | |
548 | { |
- | |
549 | case evButton: |
- | |
550 | ExitProcess(); |
- | |
551 | break; |
- | |
552 | case evKey: |
- | |
553 | GetKeys(); |
- | |
554 | if (key_scancode == SCAN_CODE_ESC) ExitProcess(); |
- | |
555 | break; |
- | |
556 | case evReDraw: |
- | |
557 | DefineDragableWindow(150, 200, 400, 400); |
- | |
558 | GetProcessInfo(#pop_up, SelfInfo); |
- | |
559 | - | ||
560 | DrawBar(0, 0, pop_up.width, pop_up.height, theme.color_top_panel_bg); |
- | |
561 | DrawRectangle(0, 0, pop_up.width, pop_up.height, theme.color_list_border); |
- | |
562 | - | ||
563 | DefineHiddenButton(pop_up.width - 27, 1, 26, 15, BUTTON_WINDOW_CLOSE); |
- | |
564 | //img_draw stdcall(skin.image, pop_up.width-28, 0, 28, 18, skin.w - 29, 0); |
- | |
565 | DrawCaptButton(pop_up.width-10-80, pop_up.height - 34, 80, 24, 2, |
- | |
566 | 0x171717, 0xF5EFB3, "Cool"); |
- | |
567 | - | ||
568 | WriteText(131,16, 0x81, 0x8E7C61, "Pixie Player"); |
- | |
569 | WriteText(130,15, 0x81, 0xF5EFB3, "Pixie Player"); |
- | |
570 | - | ||
571 | WriteTextLines(10, 40, 0x90, theme.color_top_panel_song_name, ABOUT_MESSAGE, 19); |
- | |
572 | DrawIcon32(45, 15, theme.color_top_panel_bg, 65); |
- | |
573 | DrawIcon32(pop_up.width-32-45, 15, theme.color_top_panel_bg, 65); |
- | |
574 | - | ||
575 | } |
577 | CreateThread(#DrawAboutWindow,#menu_stak+4092); |
Line 576... | Line 578... | ||
576 | } |
578 | } |
577 | 579 | ||
578 | /* |
580 | /* |