Commit Graph

1099 Commits

Author SHA1 Message Date
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
Andrzej Rybczak
ff84ba8d9d reverse evaluation order so SetFormatting() won't be invoked if findme is empty 2009-09-16 22:25:40 +00:00
Andrzej Rybczak
6723808c4f remove wrapper for Scrollpad::SetFormating() used with --enable-unicode 2009-09-16 22:21:17 +00:00
Andrzej Rybczak
cf3f8350c0 remove NCurses::Scrollpad::operator<<(std::ostream &(*os)(std::ostream&))
it wasn't used, also if it was, probably it
wouldn't work in this case, so bye bye.
2009-09-16 21:06:37 +00:00
Andrzej Rybczak
d3a9dcf53c document NCurses::Scrollpad class 2009-09-16 21:05:49 +00:00
Andrzej Rybczak
436dbddc81 simplify NCurses::Menu::Goto() 2009-09-16 19:56:32 +00:00
Andrzej Rybczak
d73230cdb2 if GetStringHelper is set in Menu<std::string>, invoke it
previously it always returned raw string and ignored this
helper function, but there might be cases when one would
want to use its own function e.g. to parse the string somehow.
2009-09-16 19:26:56 +00:00
Andrzej Rybczak
f1ff84302e document NCurses::Menu class 2009-09-16 19:20:10 +00:00
Andrzej Rybczak
2cdbee4124 display message about sorting playlist a bit earlier
since actual sorting takes more time than telling mpd how to
sort, message should be displayed before a call to std::sort()
2009-09-16 14:15:52 +00:00
Andrzej Rybczak
84418130fe if Colors struct contains clEnd, remove current color set from stack
previously it just did nothing, which wasn't correct behaviour at all.
2009-09-16 03:28:29 +00:00
Andrzej Rybczak
f734b43229 remove GNUC_UNUSED from Window::Clear() argument
it's not needed since the variable is used.
2009-09-16 03:27:25 +00:00
Andrzej Rybczak
da4457a6e5 update copy contructor of NCurses::Window 2009-09-16 03:27:05 +00:00
Andrzej Rybczak
fc6d367f75 remove Clone() and EmptyClone() methods from NCurses::Window and derives
these functions served no purpose.
2009-09-16 03:10:53 +00:00
Andrzej Rybczak
21468d9537 document class NCurses::Window and remove some unused code from it 2009-09-16 03:08:31 +00:00
Andrzej Rybczak
61a9d6a785 get rid of all mysterious numbers that meant length of string literals 2009-09-15 23:12:45 +00:00
Andrzej Rybczak
6e903f9fc8 remove unneded checks in Lyrics::Update() if Reload is requested
they are checked again in Lyrics::SwitchTo(), so why bother?
2009-09-15 21:12:58 +00:00
Andrzej Rybczak
d6fbb2f657 remove wrapper for Scroller() needed with --enable-unicode 2009-09-15 21:07:37 +00:00
Andrzej Rybczak
b5a49b3fee do not create a bunch of temporary strings in FindSharedDir functions 2009-09-15 20:46:58 +00:00
Andrzej Rybczak
8cf7a7cab6 do not copy strings while doing case insensitive comparison 2009-09-15 18:48:38 +00:00