Andrzej Rybczak
00dcadcc8a
add support for consume mode
...
info about this feature can be found in mpd docs.
2009-04-01 14:51:09 +02:00
Andrzej Rybczak
b33c006fe4
improve reconnection handling
2009-04-01 14:18:38 +02:00
Andrzej Rybczak
9acadd61ec
change notification about changing modes a bit
2009-04-01 14:10:42 +02:00
Andrzej Rybczak
458d4c3004
restore window title after playing song
2009-03-31 21:07:28 +02:00
Andrzej Rybczak
90efaae7cf
send commands list while readding local item to playlist
2009-03-30 20:26:06 +02:00
Andrzej Rybczak
310b6c0ecd
new feature: cyclic scrolling
2009-03-30 20:03:23 +02:00
Andrzej Rybczak
dda14b9796
fix opportunity to segfault in media library
2009-03-30 17:19:58 +02:00
Andrzej Rybczak
ba58bed5be
enable support for curl and taglib automatically if appropriate headers/libs are available
2009-03-29 17:46:31 +02:00
Andrzej Rybczak
18271fb616
revert back to polling mpd twice per second
2009-03-29 16:56:09 +02:00
Andrzej Rybczak
1acca770db
do not use WindowTitle() with pdcurses
2009-03-28 17:29:30 +01:00
Andrzej Rybczak
97b2f9f1fc
fix configure.in
2009-03-27 21:08:39 +01:00
Andrzej Rybczak
c4849bf129
redefine KEY_BACKSPACE only if pdcurses is used
...
this is redundant in ncurses and causes display
bug while pressing backspace in some terminals.
2009-03-27 17:35:50 +01:00
Andrzej Rybczak
7c205e70eb
fix displaying update flag ('U') immediately after succesfully sent command
2009-03-27 17:08:15 +01:00
Andrzej Rybczak
21bf4ff91c
do not check in local browser if mpd_music_dir var is set
2009-03-27 17:06:17 +01:00
Andrzej Rybczak
5f41640cd9
handle single command and remove hacks used as substitute for it
...
mpd-git has single command, which provides functionality
of both "repeat one" and "stop after current track" modes.
repeat one = single && repeat
stop after current track = single && !repeat
2009-03-27 16:40:55 +01:00
Andrzej Rybczak
88c37b581d
do not zero allocated space, just append null character at the end of string
2009-03-27 14:47:18 +01:00
Andrzej Rybczak
2649c4a86b
if in Lyrics::SwitchTo() lyrics aren't taken yet, take them and continue
...
if one started fetching lyrics and exited from lyrics screen before
they were taken by Lyrics::Update() and then wanted to switch again,
there was no action visible, because the function just took the lyrics
and exited. for now it continues and fetches them again.
2009-03-27 14:32:10 +01:00
Andrzej Rybczak
d5a63d6b61
make Lyrics::FilenamePath non-static member
2009-03-27 14:17:37 +01:00
Andrzej Rybczak
db0b42b5da
fix fetching lyrics without threads
2009-03-27 14:16:56 +01:00
Andrzej Rybczak
e29e5576c7
do not start additional thread if artist's info is available locally
2009-03-27 14:11:18 +01:00
Andrzej Rybczak
8ecd35051a
do not start additional thread if lyrics are available locally
2009-03-27 13:21:29 +01:00
Andrzej Rybczak
1daa41bde6
allow for setting host and port with command line switches
2009-03-26 21:50:36 +01:00
Andrzej Rybczak
25f0b4fabc
pass to iconv "utf-8" as name of utf8 encoding instead of "utf8"
...
it seems win32 libiconv doesn't support utf8.
2009-03-26 21:02:38 +01:00
Andrzej Rybczak
49a13222a3
get proper user home dir on WIN32 and adjust folders in this case a bit
2009-03-26 20:23:47 +01:00
Andrzej Rybczak
a670be05fe
fix compilation --without-curl
2009-03-26 19:22:48 +01:00
Andrzej Rybczak
dd471ef1c6
handle iconv() function that takes const char ** instead of char **
2009-03-26 18:37:47 +01:00
Andrzej Rybczak
343f778256
disable detecting currently used encoding as it's extremely ugly
2009-03-26 17:00:00 +01:00
Andrzej Rybczak
344fc21d76
use pthread_t * handlers rather than pthread_t
...
pthread-win32 doesn't accept assigning zero to pthread_t type,
so we need to use pointers instead. this is more semantic anyway.
2009-03-26 16:18:11 +01:00
Andrzej Rybczak
c634059834
put macros definition into parenthesis to avoid bugs
2009-03-26 12:27:57 +01:00
Andrzej Rybczak
a6635322a8
improve handling backspace key
2009-03-26 12:26:22 +01:00
Andrzej Rybczak
cbc452fde5
check for Xinitscr in pdcurses and define XCURSES if available
2009-03-26 12:10:04 +01:00
Andrzej Rybczak
48f3361e2d
improve conversions std::string <=> std::wstring
2009-03-26 12:00:11 +01:00
Andrzej Rybczak
79ac343fc0
fix overriding Clock::Scroll()
2009-03-25 23:15:29 +01:00
Andrzej Rybczak
f04472641b
make it compile under mingw32 --with-curl
2009-03-25 23:13:34 +01:00
Andrzej Rybczak
65f52da949
make it compile under mingw32 --without-curl --without-taglib
...
ncmpcpp can be built for windows \o/
pdcurses and regex libraries are needed for this though.
2009-03-25 22:08:18 +01:00
Andrzej Rybczak
fcf4a44042
allow to choose name another than XCurses for pdcurses library to search for
2009-03-25 20:14:02 +01:00
Andrzej Rybczak
de98176198
make code from Browser::GetLocalDirectory() portable
2009-03-25 19:52:03 +01:00
Andrzej Rybczak
1b22f307ea
add support for pdcurses
2009-03-25 17:47:10 +01:00
Andrzej Rybczak
f24db993aa
fix reapplying filter the same as the last one used
...
I was passing Menu::itsFilter by const reference to Menu::ApplyFilter().
however, the function was clearing all filtering related stuff, including
itsFilter itself, so passed reference was pointing at previously cleared
string. then the function checked if new filter was empty and it obviously
was, so exited then. funny bug.
2009-03-24 19:26:47 +01:00
Andrzej Rybczak
5b36fda511
reapply filter even if it's the same as the last one applied
2009-03-24 18:11:21 +01:00
Andrzej Rybczak
3710d3bafd
fix blocking playlist update
2009-03-24 17:38:48 +01:00
Andrzej Rybczak
e5b9d83a10
add keybinding for opening lyrics in external editor to help screen
2009-03-23 21:35:50 +01:00
Andrzej Rybczak
f78e88e6aa
do not fetch status after succesful setvol command, set it locally
2009-03-23 16:30:12 +01:00
Andrzej Rybczak
8e350292ad
...but at first check if there is callback to invoke.
2009-03-22 20:06:03 +01:00
Andrzej Rybczak
9270a83a78
invoke callback immediately after sending update command succesfully
2009-03-22 20:01:39 +01:00
Andrzej Rybczak
ab265f2fdf
do not fetch mpd_Stats from mpd as it's unneded
2009-03-22 17:52:27 +01:00
Andrzej Rybczak
ffbcfb7e18
poll mpd once per second, no need to do it more often
2009-03-22 16:11:44 +01:00
Andrzej Rybczak
bf71a01b1c
ignore keycodes <10 || >10 && <32 in Window::GetString()
2009-03-22 15:14:12 +01:00
Andrzej Rybczak
cf3746f301
always poll mpd twice per second
2009-03-22 15:10:04 +01:00
Andrzej Rybczak
b58864e682
fix bolding np song with 'repeat one' function enabled
2009-03-21 13:41:53 +01:00