Commit Graph

959 Commits

Author SHA1 Message Date
Andrzej Rybczak
e3d731d269 handle height of sorting window properly
before, if terminal was less than 18 lines high, ncmpcpp
would exit at start throwing NCurses::Window::BadSize,
because sort dialog's height was hardcoded. now its size
changes dynamically, depending on actual screen size.
2009-04-26 13:20:01 +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
12fa8a9bf6 count number of applied formatting flags 2009-04-26 12:33:24 +02:00
Andrzej Rybczak
c7251ebb98 improve formatting removal 2009-04-19 22:19:52 +02:00
Andrzej Rybczak
88fa887776 new feature: allow searching in help, lyrics and info screens 2009-04-18 04:34:23 +02:00
Andrzej Rybczak
0978f2c228 prepare for physical song/dir deletion implementation 2009-04-17 13:25:28 +02:00
Andrzej Rybczak
cc78632c03 align functions descriptions in source code to improve readability 2009-04-17 12:35:37 +02:00
Andrzej Rybczak
7a59593814 add info about all 'e' key functions to help screen 2009-04-17 12:33:55 +02:00
Andrzej Rybczak
5455977914 fix compilation with -std=c++0x 2009-04-17 04:26:54 +02:00
Andrzej Rybczak
33b2b829ab fix moving single file within playlist 2009-04-17 03:15:07 +02:00
Andrzej Rybczak
ce73ecae2e real fix for bug 2252 2009-04-14 07:50:21 +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
c8f99be7d0 do not limit year tag to 4 digits 2009-04-09 08:35:05 +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
a1376e8a4e pass small structs and POD types to Window::operator<<() by value 2009-04-03 22:33:00 +02:00
Andrzej Rybczak
2d8b5f7abc rename Screen::Cmp() to Screen::ActiveWindow() as it's more logical 2009-04-03 22:29:03 +02:00
Andrzej Rybczak
1a9c035f0a align \s in macro definitions 2009-04-03 22:22:13 +02:00
Andrzej Rybczak
2eb573bad2 use "" instead of '' in messages 2009-04-03 22:08:44 +02:00
Andrzej Rybczak
6b3b0413ad update NEWS / version bump 2009-04-02 22:57:15 +02:00
Andrzej Rybczak
519a36872a get proper path to "My Documents" folder in WIN32 2009-04-02 21:29:00 +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
89c06db1f4 refresh playlist immediately after highlighting was enabled 2009-04-01 15:50:44 +02:00
Andrzej Rybczak
c64af1fa58 rename --with-pthreads to --with-threads 2009-04-01 15:36:44 +02:00
Andrzej Rybczak
38a00788b4 reorganize configure.in and add default values for all switches 2009-04-01 15:26:13 +02:00
Andrzej Rybczak
61a4768d76 make support for pthreads and iconv optional 2009-04-01 15:22:46 +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
b33c006fe4 improve reconnection handling 2009-04-01 14:18:38 +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
90efaae7cf send commands list while readding local item to playlist 2009-03-30 20:26:06 +02:00
Andrzej Rybczak
310b6c0ecd new feature: cyclic scrolling 2009-03-30 20:03:23 +02:00
Andrzej Rybczak
dda14b9796 fix opportunity to segfault in media library 2009-03-30 17:19:58 +02:00
Andrzej Rybczak
ba58bed5be enable support for curl and taglib automatically if appropriate headers/libs are available 2009-03-29 17:46:31 +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
97b2f9f1fc fix configure.in 2009-03-27 21:08:39 +01:00
Andrzej Rybczak
c4849bf129 redefine KEY_BACKSPACE only if pdcurses is used
this is redundant in ncurses and causes display
bug while pressing backspace in some terminals.
2009-03-27 17:35:50 +01:00
Andrzej Rybczak
7c205e70eb fix displaying update flag ('U') immediately after succesfully sent command 2009-03-27 17:08:15 +01:00
Andrzej Rybczak
21bf4ff91c do not check in local browser if mpd_music_dir var is set 2009-03-27 17:06:17 +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
88c37b581d do not zero allocated space, just append null character at the end of string 2009-03-27 14:47:18 +01:00
Andrzej Rybczak
2649c4a86b if in Lyrics::SwitchTo() lyrics aren't taken yet, take them and continue
if one started fetching lyrics and exited from lyrics screen before
they were taken by Lyrics::Update() and then wanted to switch again,
there was no action visible, because the function just took the lyrics
and exited. for now it continues and fetches them again.
2009-03-27 14:32:10 +01:00
Andrzej Rybczak
d5a63d6b61 make Lyrics::FilenamePath non-static member 2009-03-27 14:17:37 +01:00
Andrzej Rybczak
db0b42b5da fix fetching lyrics without threads 2009-03-27 14:16:56 +01:00
Andrzej Rybczak
e29e5576c7 do not start additional thread if artist's info is available locally 2009-03-27 14:11:18 +01:00
Andrzej Rybczak
8ecd35051a do not start additional thread if lyrics are available locally 2009-03-27 13:21:29 +01:00