separate some code from ncmpcpp.cpp

This commit is contained in:
Andrzej Rybczak
2009-02-13 17:24:06 +01:00
parent 29301aefd5
commit 8ba72bc78a
29 changed files with 2956 additions and 2168 deletions

View File

@@ -26,6 +26,12 @@
#include "scrollpad.h"
#include "misc.h"
#define CLEAR_FIND_HISTORY \
do { \
found_pos = -1; \
vFoundPositions.clear(); \
} while (0)
typedef std::pair<std::string, std::string> string_pair;
enum NcmpcppScreen
@@ -33,14 +39,20 @@ enum NcmpcppScreen
csHelp,
csPlaylist,
csBrowser,
# ifdef HAVE_TAGLIB_H
csTinyTagEditor,
# endif // HAVE_TAGLIB_H
csInfo,
csSearcher,
csLibrary,
csLyrics,
csPlaylistEditor,
# ifdef HAVE_TAGLIB_H
csTagEditor,
# endif // HAVE_TAGLIB_H
# ifdef ENABLE_CLOCK
csClock,
# endif // ENABLE_CLOCK
csOther
};
@@ -48,5 +60,7 @@ const int ncmpcpp_window_timeout = 500;
const std::string home_folder = getenv("HOME") ? getenv("HOME") : "";
const char * const message_part_of_songs_added = "Only part of requested songs' list added to playlist!";
#endif