Code

removed the clock screen
[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_ARTIST_SCREEN
9 #define ENABLE_ARTIST_SCREEN 1
10 #endif
11 #ifndef DISABLE_SEARCH_SCREEN
12 #define ENABLE_SEARCH_SCREEN 1
13 #endif
14 #ifndef DISABLE_KEYDEF_SCREEN
15 #define ENABLE_KEYDEF_SCREEN 1
16 #endif
17 #ifndef DISABLE_LYRICS_SCREEN
18 #define ENABLE_LYRICS_SCREEN 1
19 #endif
21 #ifndef NDEBUG
22 void D(const char *format, ...);
23 #else
24 #define D(...)
25 #endif
27 /* i18n */
28 #ifdef HAVE_LOCALE_H
29 #include <locale.h>
30 #endif
31 #ifdef ENABLE_NLS
32 #include <libintl.h>
33 #include <glib/gi18n.h>
34 #else
35 #define  _(x) x
36 #define N_(x) x
37 #endif
39 #define YES   _("y")
40 #define NO    _("n")
42 /* mpd crossfade time [s] */
43 #define DEFAULT_CROSSFADE_TIME 10
45 /* welcome message time [s] */
46 #define SCREEN_WELCOME_TIME 10
48 /* screen list */
49 #define DEFAULT_SCREEN_LIST "playlist browse"
51 /* status message time [s] */
52 #define SCREEN_STATUS_MESSAGE_TIME 3
54 /* getch() timeout for non blocking read [ms] */
55 #define SCREEN_TIMEOUT 500
57 /* minumum window size */
58 #define SCREEN_MIN_COLS 14
59 #define SCREEN_MIN_ROWS  5
61 /* time between mpd updates [s] */
62 #define MPD_UPDATE_TIME 0.5
64 /* time before trying to reconnect [ms] */
65 #define MPD_RECONNECT_TIME  1500
67 /* song format - list window */
68 #define DEFAULT_LIST_FORMAT "%name%|[%artist% - ]%title%|%shortfile%"
69 #define LIST_FORMAT (options.list_format ? options.list_format : \
70                                            DEFAULT_LIST_FORMAT)
72 /* song format - status window */
73 #define DEFAULT_STATUS_FORMAT "[%artist% - ]%title%|%shortfile%"
74 #define STATUS_FORMAT (options.status_format ? options.status_format : \
75                                                DEFAULT_STATUS_FORMAT)
76                                                                                            
77 #define DEFAULT_LYRICS_TIMEOUT 100
79 #define DEFAULT_SCROLL TRUE
80 #define DEFAULT_SCROLL_SEP " *** "
82 void
83 sigstop(void);
85 #endif /* NCMPC_H */