Commit Graph

171 Commits

Author SHA1 Message Date
Andrzej Rybczak
56be1cb753 make Window::SetColor protected as it doesn't respect stacked colors
it should only be used internally by Window and derives.
2009-09-06 12:51:48 +02:00
Andrzej Rybczak
6843b98627 throw away all NULLs and replace them by 0s 2009-08-30 17:43:13 +02:00
Andrzej Rybczak
0a22debf0e block displaying elapsed time while seeking properly (alternative ui) 2009-08-30 06:53:15 +02:00
Andrzej Rybczak
18e611bee2 make sorting window use main ncmpcpp loop 2009-08-30 02:47:46 +02:00
Andrzej Rybczak
ab54ceaf71 do not display '>' char if progressbar's width is equal to screen's width 2009-08-29 21:34:24 +02:00
Andrzej Rybczak
bc1a8a2d1a allow for unicode characters in progressbar_look 2009-08-26 18:13:33 +02:00
Andrzej Rybczak
b13479e014 do not restrict statusbar_visibility option if alternative ui is active 2009-08-26 05:11:20 +02:00
Andrzej Rybczak
d92d7779e2 make progressbar look customizable 2009-08-26 03:25:06 +02:00
Andrzej Rybczak
8c3760111d new feature: display remaining time of song instead of elapsed time 2009-08-26 03:06:27 +02:00
Andrzej Rybczak
cef5433d5f do not block elapsed time counter update if message is displayed 2009-08-24 22:55:23 +02:00
Andrzej Rybczak
216b0b6af6 new feature: display bitrate in statusbar (optional, disabled by default) 2009-08-24 01:37:44 +02:00
Andrzej Rybczak
deaa456383 redraw white line after message is gone if alternative ui is active 2009-08-24 00:40:08 +02:00
Andrzej Rybczak
56fd7bd7fc do not support song format for command that is executed on song change 2009-08-23 21:42:54 +02:00
Andrzej Rybczak
42fee12eb0 allow for colors in song_status_format 2009-08-13 18:10:41 +02:00
Andrzej Rybczak
5a9369b585 convert alternative header text to proper locale if needed 2009-08-13 03:38:11 +02:00
Andrzej Rybczak
101f01941d new feature: alternative user interface 2009-08-12 02:08:13 +02:00
Andrzej Rybczak
837560c536 do not show messages if statusbar unlock is not allowed 2009-08-02 09:44:24 +02:00
Andrzej Rybczak
26326de2c8 fix setting format flags in Window::operator<<(Format)
I though static variables are created for each class object,
but apparently they aren't, which makes the previous design
utterly broken. I'm suprised it somehow worked before.
2009-07-12 15:42:30 +02:00
Andrzej Rybczak
1c3cd3b90b fix compilation --without-taglib 2009-07-06 07:32:02 +02:00
Andrzej Rybczak
df051bf674 remove using declarations 2009-07-05 12:19:22 +02:00
Andrzej Rybczak
9dab25e02c use prefix ++ instead of postfix where available 2009-07-04 06:41:35 +02:00
Andrzej Rybczak
2eb913fe22 define MPD::Connection handler as an object, not pointer 2009-07-04 06:07:00 +02:00
Andrzej Rybczak
ff3e90d91d fix database update 2009-06-29 02:19:40 +02:00
Andrzej Rybczak
774dbaf859 clear statusbar immediately after unlock if player is stopped 2009-06-17 14:51:27 +02:00
Andrzej Rybczak
5519e5c9bc if volume < 0, display 'n/a' instead of '-1%' 2009-05-26 22:09:13 +02:00
Andrzej Rybczak
ecd4c8cc17 get rid of C style casts 2009-05-21 23:51:56 +02:00
Andrzej Rybczak
7eb74a6da2 new feature: custom command execution on song change 2009-05-21 23:05:53 +02:00
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