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
Andrzej Rybczak
b13479e014
do not restrict statusbar_visibility option if alternative ui is active
17 years ago
Andrzej Rybczak
d92d7779e2
make progressbar look customizable
17 years ago
Andrzej Rybczak
8c3760111d
new feature: display remaining time of song instead of elapsed time
17 years ago
Andrzej Rybczak
cef5433d5f
do not block elapsed time counter update if message is displayed
17 years ago
Andrzej Rybczak
216b0b6af6
new feature: display bitrate in statusbar (optional, disabled by default)
17 years ago
Andrzej Rybczak
deaa456383
redraw white line after message is gone if alternative ui is active
17 years ago
Andrzej Rybczak
56fd7bd7fc
do not support song format for command that is executed on song change
17 years ago
Andrzej Rybczak
42fee12eb0
allow for colors in song_status_format
17 years ago
Andrzej Rybczak
5a9369b585
convert alternative header text to proper locale if needed
17 years ago
Andrzej Rybczak
101f01941d
new feature: alternative user interface
17 years ago
Andrzej Rybczak
837560c536
do not show messages if statusbar unlock is not allowed
17 years ago
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.
17 years ago
Andrzej Rybczak
1c3cd3b90b
fix compilation --without-taglib
17 years ago
Andrzej Rybczak
df051bf674
remove using declarations
17 years ago
Andrzej Rybczak
9dab25e02c
use prefix ++ instead of postfix where available
17 years ago
Andrzej Rybczak
2eb913fe22
define MPD::Connection handler as an object, not pointer
17 years ago
Andrzej Rybczak
ff3e90d91d
fix database update
17 years ago
Andrzej Rybczak
774dbaf859
clear statusbar immediately after unlock if player is stopped
17 years ago
Andrzej Rybczak
5519e5c9bc
if volume < 0, display 'n/a' instead of '-1%'
17 years ago
Andrzej Rybczak
ecd4c8cc17
get rid of C style casts
17 years ago
Andrzej Rybczak
7eb74a6da2
new feature: custom command execution on song change
17 years ago
Andrzej Rybczak
eb3b08b45e
clear window title at exit
17 years ago
Andrzej Rybczak
0c34b37328
do not clear statusbar if it's locked
17 years ago
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