TB2026-YDS Firmware
Loading...
Searching...
No Matches
playlist_browser.c File Reference
#include "playlist_browser.h"
#include "navigator.h"
#include "gfx.h"
#include "status_bar.h"
#include "playlist.h"
#include "player.h"
#include <string.h>
#include <stdio.h>

Macros

#define PB_CONTENT_Y   STATUS_BAR_H /* 16 */
#define PB_ROW_H   12
#define PB_VISIBLE   12 /* rows × 12px = 144px of content */
#define PB_ARROW_X   4
#define PB_TEXT_X   14
#define PB_MARQUEE_PAUSE   2 /* ticks to hold at each end (2 × 250 ms = 500 ms) */
#define PB_POPUP_X   20
#define PB_POPUP_Y   50
#define PB_POPUP_W   136
#define PB_POPUP_H   86

Enumerations

enum  pb_state_t { PB_BROWSE , PB_ACTION }
enum  {
  PB_ACT_PLAY , PB_ACT_UP , PB_ACT_DOWN , PB_ACT_REMOVE ,
  PB_N_ACTIONS
}

Functions

screen_tplaylist_browser_screen (void)
 Get the singleton Playlist Browser screen.

Detailed Description

Note
Développé avec l'assistance de Claude Opus 4.8 (Anthropic), sous la direction de Y. Dos Santos : spécification, revue et validation sur cible par l'auteur.

Macro Definition Documentation

◆ PB_ARROW_X

#define PB_ARROW_X   4

◆ PB_CONTENT_Y

#define PB_CONTENT_Y   STATUS_BAR_H /* 16 */

◆ PB_MARQUEE_PAUSE

#define PB_MARQUEE_PAUSE   2 /* ticks to hold at each end (2 × 250 ms = 500 ms) */

◆ PB_POPUP_H

#define PB_POPUP_H   86

◆ PB_POPUP_W

#define PB_POPUP_W   136

◆ PB_POPUP_X

#define PB_POPUP_X   20

◆ PB_POPUP_Y

#define PB_POPUP_Y   50

◆ PB_ROW_H

#define PB_ROW_H   12

◆ PB_TEXT_X

#define PB_TEXT_X   14

◆ PB_VISIBLE

#define PB_VISIBLE   12 /* rows × 12px = 144px of content */

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
PB_ACT_PLAY 
PB_ACT_UP 
PB_ACT_DOWN 
PB_ACT_REMOVE 
PB_N_ACTIONS 

◆ pb_state_t

enum pb_state_t
Enumerator
PB_BROWSE 
PB_ACTION 

Function Documentation

◆ playlist_browser_screen()

screen_t * playlist_browser_screen ( void )

Get the singleton Playlist Browser screen.

Shows the play queue from the current track onward (current pinned at the top, upcoming tracks below). UP/DOWN navigate; SELECT on an upcoming track opens a move-up / move-down / remove menu. Reached from Now Playing via DOWN; BACK, or UP while at the top, returns to Now Playing.