Commit Graph

967 Commits

Author SHA1 Message Date
Andrzej Rybczak
e84a8ddf98 set max progressbar width to screen width 2009-09-30 19:34:55 +02:00
Andrzej Rybczak
45884e0895 fix a few bugs progressbar related (redrawing, colors) 2009-09-30 18:59:36 +02:00
Andrzej Rybczak
cada9f4355 bold expected keys while waiting for keypress 2009-09-30 16:25:24 +02:00
Andrzej Rybczak
9e20858977 do not show cursor while waiting for only one keypress 2009-09-27 15:50:31 +02:00
Andrzej Rybczak
048fd2ffce refresh status window immediately after prompting user
this fixes #2537.
2009-09-27 15:48:03 +02:00
Andrzej Rybczak
c7c6b2c321 lyrics: check if data returned by curl contains opening and closing tag 2009-09-26 23:12:56 +02:00
Andrzej Rybczak
dca6642a7f warn about consequences from using song format without any braces 2009-09-26 20:18:52 +02:00
Andrzej Rybczak
4efaa18927 ignore special chars that occurs in tag values
ncmpcpp shouldn't treat '$' characters that
are part of a tag as special format chars.
2009-09-26 18:29:52 +02:00
Andrzej Rybczak
3e75ff6455 always try to link with ncursesw 2009-09-26 00:38:22 +02:00
Andrzej Rybczak
0d9f6fab7d add MPD::Connection::Toggle() and throw away MPD::Connection::Execute() 2009-09-23 05:47:51 +02:00
Andrzej Rybczak
d2f516d15c replace the last one mpd_song_get_uri with MyFilename() 2009-09-23 04:29:52 +02:00
Andrzej Rybczak
01c138e680 make sure null pointer won't be dereferenced
Song::Empty() does the check.
2009-09-23 04:28:26 +02:00
Andrzej Rybczak
08cb912424 fix Connection::AddSong() 2009-09-23 04:12:53 +02:00
Andrzej Rybczak
5866cd6343 if iconv conversion failed, restore input buffer to its initial state 2009-09-23 03:43:59 +02:00
Andrzej Rybczak
e99b1c63e9 fix very nasty bug that could cause billion of segfaults 2009-09-23 03:33:56 +02:00
Andrzej Rybczak
04f822b44a fix very nasty bug that could cause billion of segfaults 2009-09-23 03:31:39 +02:00
Andrzej Rybczak
e304a6b7de WIN32 compilation fix 2009-09-23 02:50:10 +02:00
Andrzej Rybczak
66d4883728 fix compilation --with-iconv 2009-09-23 02:45:48 +02:00
Andrzej Rybczak
24627d8493 fix compilation --with-taglib 2009-09-22 23:12:19 +02:00
Andrzej Rybczak
dec7bd9c0e make ncmpcpp use external libmpdclient (--without-taglib and --without-iconv) 2009-09-22 22:37:33 +02:00
Andrzej Rybczak
aad9146397 make use of CaseInsensitiveStringComparison() instead of copying strings 2009-09-22 00:56:51 +02:00
Andrzej Rybczak
31a5363434 search engine: throw away SearchedPattern class and generalize the code 2009-09-22 00:31:22 +02:00
Andrzej Rybczak
dbc9b5a216 get rid of warnings about signed and unsigned integer comparison 2009-09-21 21:53:29 +02:00
Andrzej Rybczak
0a1d2e37ae add -fno-exceptions to CXXFLAGS if compiler supports it 2009-09-21 17:37:06 +02:00
Andrzej Rybczak
70910b77ed make ncmpcpp compile with -fno-exceptions 2009-09-21 06:01:21 +02:00
Andrzej Rybczak
14a774b8a3 window: move some members from protected to private section 2009-09-21 01:44:38 +02:00
Andrzej Rybczak
1a3dcbfe17 set attributes in Menu::Refresh() by operators<<()
this also makes Window::{Bold,UnderLine,Reverse,Altcharset} private.
these should only be called by internals of Window class.
2009-09-21 01:34:37 +02:00
Andrzej Rybczak
ec18a34513 apply selected item prefix to menu before clearing the line
if selected item prefix turned on a color or other format flag
it should be appended to the whole line, not only the part that
is going to be drawn using item displayer.
2009-09-21 01:20:02 +02:00
Andrzej Rybczak
ead5255df1 new feature: support for custom prefix/suffix of now playing song 2009-09-21 01:17:54 +02:00
Andrzej Rybczak
5a887861d7 move code responsible for marking song as now playing to display functions 2009-09-20 23:52:43 +02:00
Andrzej Rybczak
b47ad169dc add new function: Menu::CurrentlyDrawedPosition()
this'll be used to simplify displaying currently playing item
2009-09-20 22:23:03 +02:00
Andrzej Rybczak
d995b9f065 define NCURSES_MOUSE_VERSION as 1 (not 2) if pdcurses is used 2009-09-20 21:02:22 +02:00
Andrzej Rybczak
91ffdf9799 redefine BUTTON2_PRESSED if ncurses is used 2009-09-20 19:14:00 +02:00
Andrzej Rybczak
20b0bcc85e define NCURSES_MOUSE_VERSION if pdcurses is used 2009-09-20 18:56:30 +02:00
Andrzej Rybczak
487b2fc1c9 reimplement Window::hasCoords if pdcurses is used 2009-09-20 16:38:04 +02:00
Andrzej Rybczak
d48403057d do not attempt to include fftw3.h if configure didn't found it 2009-09-20 06:53:13 +02:00
Andrzej Rybczak
4d99d11cfe --now-playing should return string converted to current locale 2009-09-20 03:30:35 +02:00
Andrzej Rybczak
310ea04f3e detect system charset encoding automatically 2009-09-19 22:22:12 +02:00
Andrzej Rybczak
f0b2c690ef document NCurses::basic_buffer class 2009-09-19 04:52:28 +02:00
Andrzej Rybczak
0a2a7290f6 new feature: support for underlined text 2009-09-19 03:35:58 +02:00
Andrzej Rybczak
ad685091bc rename Menu::BoldOption() to Menu::Bold() 2009-09-19 02:44:44 +02:00
Andrzej Rybczak
3bdb798852 clean NCurse::List class a bit and remove a few redundant functions 2009-09-19 01:18:41 +02:00
Andrzej Rybczak
2f971147b1 change all Mpd.GetState </> psPlay/psStop to (!)Mpd.isPlaying() 2009-09-18 02:17:30 +00:00
Andrzej Rybczak
7c9363c174 refresh window after lyrics/artist info was (not) downloaded 2009-09-18 01:46:53 +00:00
Andrzej Rybczak
e6a64b9c63 document BasicScreen and Screen classse 2009-09-18 01:25:52 +00:00
Andrzej Rybczak
e78c355ece fix displaying messages if player is stopped 2009-09-17 15:32:44 +00:00
Andrzej Rybczak
d36f57cc16 if playlist is empty, clear its window 2009-09-17 15:24:00 +00:00
Andrzej Rybczak
eee80427fe change prototype of Window::Recreate() and throw away almost-duplicated code 2009-09-17 02:36:40 +00:00
Andrzej Rybczak
4426442ed0 refresh statusbar only if necessary 2009-09-17 02:11:18 +00:00
Andrzej Rybczak
8109d26daf refresh main screen only if necessary 2009-09-17 00:59:30 +00:00