Commit Graph

569 Commits

Author SHA1 Message Date
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
Andrzej Rybczak
b2317df843 provide file with locales and corresponding encodings 2009-03-20 20:33:35 +01:00
Andrzej Rybczak
23567ed4f1 show notification if given value is out of bounds 2009-03-20 18:19:24 +01:00
Andrzej Rybczak
3d5e62aa65 change default behaviour of 'go to given position' function
before that number without any other signs was treated as time
in seconds to go, now it's threated as %. treating a number as
seconds needs you to type 's' after numeric value.
2009-03-20 17:53:32 +01:00
Andrzej Rybczak
eeb1951547 fix for clock misrendering
clearing screen explicitely before displaying it apparently
fixes the problem with last digits being misrendered sometimes.
2009-03-20 17:44:02 +01:00
Andrzej Rybczak
5cfe75a0c2 Revert "limit clear and crop function to playlist/playlist editor"
This was silly idea, I did this so no one could clear the playlist
by accident, but I forgot about the common situation when one can
just clear playlist and add new songs e.g. form browser immediately.

This reverts commit 047dabd41a.
2009-03-19 18:48:58 +01:00
Andrzej Rybczak
a1a2ba4eed show columns' titles if browser displays them at start 2009-03-18 18:42:36 +01:00
Andrzej Rybczak
503c4964d5 Revert "use inline functions instead of macros in charset.h"
This reverts commit 7f2a635ac5.
2009-03-17 23:57:36 +01:00
Andrzej Rybczak
42b11910cc update NEWS / version bump 2009-03-17 19:58:24 +01:00
Andrzej Rybczak
a9bad6863b check if ptr is NULL before dereferencing it in Menu::GetSelected() 2009-03-17 19:48:34 +01:00
Andrzej Rybczak
204189fe33 update man and example config 2009-03-17 19:44:27 +01:00
Andrzej Rybczak
047dabd41a limit clear and crop function to playlist/playlist editor
this will minimize the risk of unwanted clearing of playlist e.g. by
pressing 'c' key accidentaly in other screen than playlist/playlist editor.
2009-03-17 18:25:44 +01:00