Code

0c72a099f2a2ac9a2ffad728aac4934444fb953b
[ncmpc.git] / src / ncmpc.h
1 #ifndef NCMPC_H
2 #define NCMPC_H
4 #ifndef PACKAGE
5 #include "config.h"
6 #endif
8 #ifndef DISABLE_SEARCH_SCREEN
9 #define ENABLE_SEARCH_SCREEN 1
10 #endif
11 #ifndef DISABLE_KEYDEF_SCREEN
12 #define ENABLE_KEYDEF_SCREEN 1
13 #endif
14 #ifndef DISABLE_CLOCK_SCREEN
15 #define ENABLE_CLOCK_SCREEN 1
16 #endif
18 #ifdef DEBUG
19 void D(char *format, ...);
20 #else
21 #define D(...)
22 #endif
24 /* i18n */
25 #ifdef HAVE_LOCALE_H
26 #include <locale.h>
27 #endif
28 #ifdef ENABLE_NLS
29 #include <libintl.h>
30 #include <glib/gi18n.h>
31 #else
32 #define  _(x) x
33 #define N_(x) x
34 #endif
36 #define YES   _("y")
37 #define NO    _("n")
39 /* mpd crossfade time [s] */
40 #define DEFAULT_CROSSFADE_TIME 10
42 /* welcome message time [s] */
43 #define SCREEN_WELCOME_TIME 10
45 /* status message time [s] */
46 #define SCREEN_STATUS_MESSAGE_TIME 3
48 /* getch() timeout for non blocking read [ms] */
49 #define SCREEN_TIMEOUT 500
51 /* minumum window size */
52 #define SCREEN_MIN_COLS 14
53 #define SCREEN_MIN_ROWS  5
55 /* time between mpd updates [s] */
56 #define MPD_UPDATE_TIME 0.5
58 /* time before trying to reconnect [ms] */
59 #define MPD_RECONNECT_TIME  1500
61 /* song format - list window */
62 #define DEFAULT_LIST_FORMAT "%name%|[%artist% - ]%title%|%shortfile%"
63 #define LIST_FORMAT (options.list_format ? options.list_format : \
64                                            DEFAULT_LIST_FORMAT)
66 /* song format - status window */
67 #define DEFAULT_STATUS_FORMAT "[%artist% - ]%title%|%shortfile%"
68 #define STATUS_FORMAT (options.status_format ? options.status_format : \
69                                                DEFAULT_STATUS_FORMAT)
71 #endif /* NCMPC_H */