Commit Graph

178 Commits

Author SHA1 Message Date
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
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
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
ffbcfb7e18 poll mpd once per second, no need to do it more often 2009-03-22 16:11:44 +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
1e511d1d8d fix now playing update if playlist is filtered 2009-03-15 13:35:18 +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
a20469b403 never get full playlist from mpd, always request for changes 2009-03-13 12:58:17 +01:00
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.
2009-03-12 21:26:56 +01:00
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.
2009-03-12 21:24:00 +01:00
Andrzej Rybczak
0aa36f3fb2 move Global::Timer to Playlist class 2009-03-12 20:20:26 +01:00
Andrzej Rybczak
eed4fb03ff use CamelCase for variables in Global namespace / some cleaning 2009-03-08 01:58:49 +01:00
Andrzej Rybczak
b9cbacebff new function: stop playing after current song 2009-03-01 11:26:39 +01:00
Andrzej Rybczak
2856d5cd78 make playlist's stats scrollable, also display remaining time on demand 2009-02-20 15:30:30 +01:00
Andrzej Rybczak
3b32d84a76 make Playlist::NowPlayingSong() return pointer, not reference 2009-02-19 00:00:31 +01:00
Andrzej Rybczak
b210d3f270 change var = time(NULL) to time(&var) 2009-02-18 20:12:40 +01:00
Andrzej Rybczak
f162a7b880 new feature: playlist sorting (Ctrl-V by default) 2009-02-18 20:08:50 +01:00
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.
2009-02-17 17:57:55 +01:00
Andrzej Rybczak
32f959d1ec use streams instead of Window::WriteXY() 2009-02-16 19:32:43 +01:00
Andrzej Rybczak
ba6c2db0b1 improve resizing 2009-02-16 00:37:03 +01:00
Andrzej Rybczak
f9cdfa5d2b another externs removed 2009-02-15 23:08:15 +01:00
Andrzej Rybczak
26365d9832 rename status_checker -> status / + some cleaning 2009-02-15 22:56:41 +01:00