Andrzej Rybczak
6177d49f9f
new feature: two columns view in media library (albums and songs)
17 years ago
Andrzej Rybczak
ab7dbe9cbe
redraw statusbar after terminal resize
...
previous changes broke this, so here is the fix.
17 years ago
Andrzej Rybczak
b5b5d64c80
try polling mpd once per second once again
...
I reverted this becaause elapsed time counter was not
synchronized with mpd and it sometimes stalled and then
increased by 2 seconds. for now I count elapsed time locally,
so I can apply it again (until something else pops out, lol)
17 years ago
Andrzej Rybczak
c78d2f296c
fix drawing statusbar if player was stopped at start
...
this also adds "by accident" scrolling of currently
playing song in statusbar if player is paused.
17 years ago
Andrzej Rybczak
c7251ebb98
improve formatting removal
17 years ago
Andrzej Rybczak
97b9f15898
Revert "fix bug 2252"
...
This reverts commit 206c2570d0 .
17 years ago
Andrzej Rybczak
bf3e2546d8
fix displaying window title is mpd is not playing
17 years ago
Andrzej Rybczak
206c2570d0
fix bug 2252
17 years ago
Andrzej Rybczak
104cd0a6e8
count elapsed time locally (experimental)
...
this eliminates really annoying stalling of counter
but let's see if there are some side effects of it.
17 years ago
Andrzej Rybczak
57cab87a36
fetch now playing song and set window title if it's empty
17 years ago
Andrzej Rybczak
7f85a0dcd1
use flag to force status update rather than doing additional update
17 years ago
Andrzej Rybczak
00dcadcc8a
add support for consume mode
...
info about this feature can be found in mpd docs.
17 years ago
Andrzej Rybczak
9acadd61ec
change notification about changing modes a bit
17 years ago
Andrzej Rybczak
458d4c3004
restore window title after playing song
17 years ago
Andrzej Rybczak
18271fb616
revert back to polling mpd twice per second
17 years ago
Andrzej Rybczak
1acca770db
do not use WindowTitle() with pdcurses
17 years ago
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
17 years ago
Andrzej Rybczak
1b22f307ea
add support for pdcurses
17 years ago
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.
17 years ago
Andrzej Rybczak
5b36fda511
reapply filter even if it's the same as the last one applied
17 years ago
Andrzej Rybczak
3710d3bafd
fix blocking playlist update
17 years ago
Andrzej Rybczak
ffbcfb7e18
poll mpd once per second, no need to do it more often
17 years ago
Andrzej Rybczak
cf3746f301
always poll mpd twice per second
17 years ago
Andrzej Rybczak
b58864e682
fix bolding np song with 'repeat one' function enabled
17 years ago
Andrzej Rybczak
1e511d1d8d
fix now playing update if playlist is filtered
17 years ago
Andrzej Rybczak
aad83e9b6c
fix clearing statusbar if playing is stopped
17 years ago
Andrzej Rybczak
1a7fd6d332
update window title only when playlist or songid changed
17 years ago
Andrzej Rybczak
a20469b403
never get full playlist from mpd, always request for changes
17 years ago
Andrzej Rybczak
c7689d72d6
improve playlist updating
...
the case when sizes of mpd's and ncmpcpp's are equal is redundant.
what is more, it caused unneded overhead, because it was comparing
whole playlists. plchanges commands returns only songs that have
really changed, so this piece of code was simply wrong.
17 years ago
Andrzej Rybczak
502ce9be6a
handle now playing song properly
...
np song was sometimes wrongly taken, if user was moving items in playlist.
fix this by taking it directly from mpd, but do this as seldom as possible.
17 years ago
Andrzej Rybczak
0aa36f3fb2
move Global::Timer to Playlist class
17 years ago
Andrzej Rybczak
eed4fb03ff
use CamelCase for variables in Global namespace / some cleaning
17 years ago
Andrzej Rybczak
b9cbacebff
new function: stop playing after current song
17 years ago
Andrzej Rybczak
2856d5cd78
make playlist's stats scrollable, also display remaining time on demand
17 years ago
Andrzej Rybczak
3b32d84a76
make Playlist::NowPlayingSong() return pointer, not reference
17 years ago
Andrzej Rybczak
b210d3f270
change var = time(NULL) to time(&var)
17 years ago
Andrzej Rybczak
f162a7b880
new feature: playlist sorting (Ctrl-V by default)
17 years ago
Andrzej Rybczak
5d2daab416
new feature: apply filter to screen (Ctrl-F)
...
if one applies a filter, only items that contain this
filter will be displayed. works on all screens.
17 years ago
Andrzej Rybczak
32f959d1ec
use streams instead of Window::WriteXY()
17 years ago
Andrzej Rybczak
ba6c2db0b1
improve resizing
17 years ago
Andrzej Rybczak
f9cdfa5d2b
another externs removed
17 years ago
Andrzej Rybczak
26365d9832
rename status_checker -> status / + some cleaning
17 years ago
Andrzej Rybczak
9dd21b7653
get rid of some externs
17 years ago
Andrzej Rybczak
e6bd98e0a7
general code cleaning
17 years ago
Andrzej Rybczak
17352e821c
change namespace Lyrics into class
17 years ago
Andrzej Rybczak
d6a6bca3e6
change namespace TagEditor into class
17 years ago
Andrzej Rybczak
7148762b0c
change namespace PlaylistEditor into class
17 years ago
Andrzej Rybczak
5a06f2a4fc
change namespace MediaLibrary into class
17 years ago
Andrzej Rybczak
111652e2d6
change namespace SearchEngine into class
17 years ago
Andrzej Rybczak
11622b7ba5
remove extern int now_playing
17 years ago