Andrzej Rybczak
7c75be82bd
browser: if current dir doesn't exists, go down one level automatically
16 years ago
Andrzej Rybczak
b6e6ab1f61
fix statusbar scrolling speed with idle mode and bitrate displayed
...
with this combination scrolling was twice as fast as it should be.
16 years ago
Andrzej Rybczak
e6757c4b20
visualizer: set refresh rate to 0.5 sec if mpd is not playing
16 years ago
Andrzej Rybczak
6b396bfbf2
fix error codes handling
...
MPD_ERROR_* and MPD_SERVER_ERROR_* flags can have the same
value, so we need to store it separately in error_code.
16 years ago
Andrzej Rybczak
80290c183b
reload lyrics with single mode active if track is changed with ncmpcpp
16 years ago
Andrzej Rybczak
6df8ae1694
make displaying volume level in statusbar optional
16 years ago
Andrzej Rybczak
08daa61907
update copyright notices
16 years ago
Andrzej Rybczak
dac2458e1f
rename misc.{cpp,h} to sel_items_adder.{cpp,h}
16 years ago
Andrzej Rybczak
9e5700cfd0
fix redrawing bottom line with alternate UI and mpd stopped
16 years ago
Andrzej Rybczak
a27332a825
get rid of using directives
...
these in ncmpcpp.cpp stay since a lot of memebers are used.
16 years ago
Andrzej Rybczak
0d05a550c2
display 'U' in status flags while update is running if idle support is off
16 years ago
Andrzej Rybczak
43dcc8bd54
fix refreshing player state with classic user interface
16 years ago
Andrzej Rybczak
73f9c8c320
display message properly
16 years ago
Andrzej Rybczak
5f6f915a3a
switch from selected items adder to old screen if db was updated
...
not doing so inctroduces a very obscure bug: db update forces modification
of browser, media library etc by clearing them and letting theirs Update()
function populate them. but since selected items adder is active at the
moment, this function is never called and we end up trying to add songs
from screen that is empty, which in most cases leads to an out_of_range
exception being thrown.
16 years ago
Andrzej Rybczak
055cf43af3
handle update "properly" (as it's possible) with <mpd-0.16
...
<mpd-0.16 doesn't support MPD_IDLE_UPDATE, so we need another
extra hack to support that. This whole idle things really starts
to pissing me off.
16 years ago
Andrzej Rybczak
d2d716fd35
fix updating bitrate of current song
17 years ago
Andrzej Rybczak
fdb9bfcd4f
remove a piece of code that was overwriting statusbar without any checks
...
maybe it made a difference in the past, but it's redundant now.
17 years ago
Andrzej Rybczak
9a5a053ec3
improve handling columns in media library a bit
...
given column should clear only the first column on its right, not all.
17 years ago
Andrzej Rybczak
495ec25a0a
simplify Clear() in Window and its derivatives
...
it removes argument responsible for immediate refreshing.
since after all calls that were refreshing screen there was
call to Refresh() anyway, this switch doesn't make much sense.
17 years ago
Andrzej Rybczak
d4fddf4466
update directory after db update only if current screen is browser
17 years ago
Andrzej Rybczak
c6e26e121f
do not ask if one wants to enter password, just ask for password
17 years ago
Andrzej Rybczak
0a95aebd7c
improve elapsed time handling
...
this also throws away hack that was used to count elapsed
time locally while polling mpd, it's not needed anymore.
17 years ago
Andrzej Rybczak
db5efc6eb9
update screen in TraceMpdStatus(), not in the main loop
...
this makes screen update even if ncmpcpp is in Window::GetString().
17 years ago
Andrzej Rybczak
95ce4065ae
add event handler for MPD_IDLE_OUTPUT notification
17 years ago
Andrzej Rybczak
164d32c079
use one global timer instead of several local ones
17 years ago
Andrzej Rybczak
dd04406ee5
poll both stdin and mpd using one select()
...
this allows for immediate reading mpd events
17 years ago
Andrzej Rybczak
3e99bba5b8
use idle notifications instead of polling mpd all the time
17 years ago
Andrzej Rybczak
75c4c791fd
clear and refresh statusbar immediately after unlock if mpd is stopped
17 years ago
Andrzej Rybczak
aebc5db0e1
fix segfault that occured if mpd was stopped and window had to be resized
...
we all love null pointer dereferences, don't we?
some methods from Song class need assertion guards to deal with that.
17 years ago
Andrzej Rybczak
e84a8ddf98
set max progressbar width to screen width
17 years ago
Andrzej Rybczak
45884e0895
fix a few bugs progressbar related (redrawing, colors)
17 years ago
Andrzej Rybczak
01c138e680
make sure null pointer won't be dereferenced
...
Song::Empty() does the check.
17 years ago
Andrzej Rybczak
e304a6b7de
WIN32 compilation fix
17 years ago
Andrzej Rybczak
dec7bd9c0e
make ncmpcpp use external libmpdclient (--without-taglib and --without-iconv)
17 years ago
Andrzej Rybczak
5a887861d7
move code responsible for marking song as now playing to display functions
17 years ago
Andrzej Rybczak
ad685091bc
rename Menu::BoldOption() to Menu::Bold()
17 years ago
Andrzej Rybczak
2f971147b1
change all Mpd.GetState </> psPlay/psStop to (!)Mpd.isPlaying()
17 years ago
Andrzej Rybczak
e78c355ece
fix displaying messages if player is stopped
17 years ago
Andrzej Rybczak
d36f57cc16
if playlist is empty, clear its window
17 years ago
Andrzej Rybczak
4426442ed0
refresh statusbar only if necessary
17 years ago
Andrzej Rybczak
8109d26daf
refresh main screen only if necessary
17 years ago
Andrzej Rybczak
30b8622776
get total time from mpd status, not from currently playing track
...
it seems that even if track info doesn't provide total track length,
mpd status does, which allows for seeking and displaying progressbar.
17 years ago
Andrzej Rybczak
55f064a59b
make NCurses::Menu::Clear() clear used filter
17 years ago
Andrzej Rybczak
3108fbf0c0
fix two minor bugs with colors
...
1. I used statusbar_color instead of header_color by accident
2. state_line_color has to be explicitely turned off before setting new color
17 years ago
Andrzej Rybczak
56be1cb753
make Window::SetColor protected as it doesn't respect stacked colors
...
it should only be used internally by Window and derives.
17 years ago
Andrzej Rybczak
6843b98627
throw away all NULLs and replace them by 0s
17 years ago
Andrzej Rybczak
0a22debf0e
block displaying elapsed time while seeking properly (alternative ui)
17 years ago
Andrzej Rybczak
18e611bee2
make sorting window use main ncmpcpp loop
17 years ago
Andrzej Rybczak
ab54ceaf71
do not display '>' char if progressbar's width is equal to screen's width
17 years ago
Andrzej Rybczak
bc1a8a2d1a
allow for unicode characters in progressbar_look
17 years ago