Commit Graph

728 Commits

Author SHA1 Message Date
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
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
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
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
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
Andrzej Rybczak
1daa41bde6 allow for setting host and port with command line switches 2009-03-26 21:50:36 +01:00
Andrzej Rybczak
25f0b4fabc pass to iconv "utf-8" as name of utf8 encoding instead of "utf8"
it seems win32 libiconv doesn't support utf8.
2009-03-26 21:02:38 +01:00
Andrzej Rybczak
49a13222a3 get proper user home dir on WIN32 and adjust folders in this case a bit 2009-03-26 20:23:47 +01:00
Andrzej Rybczak
a670be05fe fix compilation --without-curl 2009-03-26 19:22:48 +01:00
Andrzej Rybczak
dd471ef1c6 handle iconv() function that takes const char ** instead of char ** 2009-03-26 18:37:47 +01:00
Andrzej Rybczak
343f778256 disable detecting currently used encoding as it's extremely ugly 2009-03-26 17:00:00 +01:00
Andrzej Rybczak
344fc21d76 use pthread_t * handlers rather than pthread_t
pthread-win32 doesn't accept assigning zero to pthread_t type,
so we need to use pointers instead. this is more semantic anyway.
2009-03-26 16:18:11 +01:00
Andrzej Rybczak
c634059834 put macros definition into parenthesis to avoid bugs 2009-03-26 12:27:57 +01:00