X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fncmpc.h;h=c87c84d88fe270777abde35b538854c15f2e3f48;hb=a8c896dcc90efbad043d28d18bd4dad1403fcabd;hp=029498f03469549b8d3a4a406ca935a97605402f;hpb=a11be95c878d124007e00624df3aa34e72579d92;p=ncmpc.git diff --git a/src/ncmpc.h b/src/ncmpc.h index 029498f..c87c84d 100644 --- a/src/ncmpc.h +++ b/src/ncmpc.h @@ -5,8 +5,21 @@ #include "config.h" #endif -#ifdef DEBUG -#define D(format, args...) fprintf(stderr, format, ##args) +#ifndef DISABLE_ARTIST_SCREEN +#define ENABLE_ARTIST_SCREEN 1 +#endif +#ifndef DISABLE_SEARCH_SCREEN +#define ENABLE_SEARCH_SCREEN 1 +#endif +#ifndef DISABLE_KEYDEF_SCREEN +#define ENABLE_KEYDEF_SCREEN 1 +#endif +#ifndef DISABLE_LYRICS_SCREEN +#define ENABLE_LYRICS_SCREEN 1 +#endif + +#ifndef NDEBUG +void D(const char *format, ...); #else #define D(...) #endif @@ -26,24 +39,47 @@ #define YES _("y") #define NO _("n") +/* mpd crossfade time [s] */ +#define DEFAULT_CROSSFADE_TIME 10 + /* welcome message time [s] */ #define SCREEN_WELCOME_TIME 10 +/* screen list */ +#define DEFAULT_SCREEN_LIST "playlist browse" + +/* status message time [s] */ +#define SCREEN_STATUS_MESSAGE_TIME 3 + /* getch() timeout for non blocking read [ms] */ #define SCREEN_TIMEOUT 500 -/* time in seconds between mpd updates (double) */ -#define MPD_UPDATE_TIME 0.5 +/* minumum window size */ +#define SCREEN_MIN_COLS 14 +#define SCREEN_MIN_ROWS 5 + +/* time between mpd updates [s] */ +#define MPD_UPDATE_TIME 0.5 -/* time in milliseconds before trying to reconnect (int) */ +/* time before trying to reconnect [ms] */ #define MPD_RECONNECT_TIME 1500 /* song format - list window */ #define DEFAULT_LIST_FORMAT "%name%|[%artist% - ]%title%|%shortfile%" -#define LIST_FORMAT (options.list_format ? options.list_format : DEFAULT_LIST_FORMAT) +#define LIST_FORMAT (options.list_format ? options.list_format : \ + DEFAULT_LIST_FORMAT) /* song format - status window */ #define DEFAULT_STATUS_FORMAT "[%artist% - ]%title%|%shortfile%" -#define STATUS_FORMAT (options.status_format ? options.status_format : DEFAULT_STATUS_FORMAT) +#define STATUS_FORMAT (options.status_format ? options.status_format : \ + DEFAULT_STATUS_FORMAT) + +#define DEFAULT_LYRICS_TIMEOUT 100 + +#define DEFAULT_SCROLL TRUE +#define DEFAULT_SCROLL_SEP " *** " + +void +sigstop(void); #endif /* NCMPC_H */