Code

the updated sources
[ncmpc.git] / src / ncmpc.h
index 6efe55af60a8f2760a25f9c9a87a027576daa4b6..7bc99a1d68ca07add65f08bb92506ca408e9f9e9 100644 (file)
@@ -5,10 +5,26 @@
 #include "config.h"
 #endif
 
+#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_CLOCK_SCREEN
+#define ENABLE_CLOCK_SCREEN 1
+#endif
+#ifndef DISABLE_LYRICS_SCREEN
+#define ENABLE_LYRICS_SCREEN 1
+#endif
+
 #ifdef DEBUG
-#define D(x, args...) fprintf(stderr, x,  ##args)
+void D(char *format, ...);
 #else
-#define D(x,...)
+#define D(...)
 #endif
 
 /* i18n */
 #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%|%file%"
-#define LIST_FORMAT (options.list_format ? options.list_format : DEFAULT_LIST_FORMAT)
+#define DEFAULT_LIST_FORMAT "%name%|[%artist% - ]%title%|%shortfile%"
+#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
 
 #endif /* NCMPC_H */