Andrzej Rybczak
eb3b08b45e
clear window title at exit
2009-05-21 11:59:21 +02:00
Andrzej Rybczak
0c34b37328
do not clear statusbar if it's locked
2009-05-11 02:15:47 +02:00
Andrzej Rybczak
6177d49f9f
new feature: two columns view in media library (albums and songs)
2009-05-03 19:02:31 +02:00
Andrzej Rybczak
ab7dbe9cbe
redraw statusbar after terminal resize
...
previous changes broke this, so here is the fix.
2009-04-28 16:22:06 +02:00
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)
2009-04-26 12:58:04 +02:00
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.
2009-04-26 12:55:15 +02:00
Andrzej Rybczak
c7251ebb98
improve formatting removal
2009-04-19 22:19:52 +02:00
Andrzej Rybczak
97b9f15898
Revert "fix bug 2252"
...
This reverts commit 206c2570d0 .
2009-04-14 07:16:21 +02:00
Andrzej Rybczak
bf3e2546d8
fix displaying window title is mpd is not playing
2009-04-14 07:13:08 +02:00
Andrzej Rybczak
206c2570d0
fix bug 2252
2009-04-14 07:01:22 +02:00
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.
2009-04-12 18:22:41 +02:00
Andrzej Rybczak
57cab87a36
fetch now playing song and set window title if it's empty
2009-04-04 16:53:49 +02:00
Andrzej Rybczak
7f85a0dcd1
use flag to force status update rather than doing additional update
2009-04-01 16:15:19 +02:00
Andrzej Rybczak
00dcadcc8a
add support for consume mode
...
info about this feature can be found in mpd docs.
2009-04-01 14:51:09 +02:00
Andrzej Rybczak
9acadd61ec
change notification about changing modes a bit
2009-04-01 14:10:42 +02:00
Andrzej Rybczak
458d4c3004
restore window title after playing song
2009-03-31 21:07:28 +02:00
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