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
Andrzej Rybczak
d1d1011eeb
make function 'clear' in playlist editor clear selected playlist
2009-03-17 18:24:35 +01:00
Andrzej Rybczak
b382784f6a
notify about selected items being removed from playlist
2009-03-17 16:58:55 +01:00
Andrzej Rybczak
aea0540f16
a few improvements for 'add selected' function
2009-03-17 16:43:33 +01:00
Andrzej Rybczak
a1b08c5776
add ('a') items to currently selected playlist in playlist editor
2009-03-16 17:10:43 +01:00
Andrzej Rybczak
8a1223aa18
enable playlist highlighting after saving playlist
2009-03-16 16:36:48 +01:00
Andrzej Rybczak
20055afac4
call Song::Localize() in Display::SongInColumns()
2009-03-15 22:42:28 +01:00
Andrzej Rybczak
1e511d1d8d
fix now playing update if playlist is filtered
2009-03-15 13:35:18 +01:00
Andrzej Rybczak
31ab01cc1c
fix prototype of write_data() function used by curl
...
maybe this works, but I don't want it to suddenly stop working
some day just because curl guys made their library more strict.
2009-03-14 22:15:25 +01:00
Andrzej Rybczak
24fc414826
fix bolding/unbolding items, if screen is filtered
2009-03-14 18:04:31 +01:00
Andrzej Rybczak
aad83e9b6c
fix clearing statusbar if playing is stopped
2009-03-13 15:24:12 +01:00
Andrzej Rybczak
1a7fd6d332
update window title only when playlist or songid changed
2009-03-13 15:11:59 +01:00
Andrzej Rybczak
3477c1514d
put check for playlist filtering in macro
2009-03-13 14:35:35 +01:00
Andrzej Rybczak
2c1647d57a
new feature: reverse playlist
2009-03-13 14:22:43 +01:00
Andrzej Rybczak
d03c4a88b6
fix Menu copy constructor
...
it has to make deep copy of itsOptions.
2009-03-13 13:26:29 +01:00
Andrzej Rybczak
a20469b403
never get full playlist from mpd, always request for changes
2009-03-13 12:58:17 +01:00