Commit Graph

878 Commits

Author SHA1 Message Date
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
Andrzej Rybczak
27687fd2b1 pass Buffer/Window to ShowTag() by reference
returning new Buffer and passing it to Window by operator<<()
was rather bad idea since it required unnecessary copying.
2009-09-15 16:36:26 +00:00
Andrzej Rybczak
40b9b547dd change version to 0.4.1_pre 2009-09-15 15:53:04 +00:00
Andrzej Rybczak
622482980c update NEWS / version bump 2009-09-10 00:23:16 +02:00
Andrzej Rybczak
b770684ab7 ...or display it only if it's '%', otherwise discard it. 2009-09-09 23:53:47 +02:00
Andrzej Rybczak
e5691b446e song format: if tag type char doesn't match any of supported ones, display it 2009-09-09 23:47:55 +02:00
Andrzej Rybczak
30758d0c44 update man page 2009-09-09 22:53:15 +02:00
Andrzej Rybczak
d7491f8acb limit trigger for mouse actions to prevent execution of the same action twice 2009-09-09 21:47:38 +02:00
Andrzej Rybczak
3992b9aa30 ugh. remove this pattern from list using std::list::remove instead of iteration 2009-09-09 20:02:43 +02:00
Andrzej Rybczak
c6b134cfd3 fix for 6cc4eac0
n/c.
2009-09-09 19:53:42 +02:00
Andrzej Rybczak
4736dd8519 if tag type for column is invalid, display empty column instead of crashing 2009-09-09 19:02:22 +02:00
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.
2009-09-09 18:32:57 +02:00
Andrzej Rybczak
6cc4eac00e fix iteration through list from previous commit
if last item was removed, 'it' would be set to Patterns.end()
and then for loop was incrementing 'it', bypassing conditional
for exit by that.
2009-09-09 17:05:36 +02:00
Andrzej Rybczak
deb23548ce change TagEditor::Patterns from std::deque to std::list 2009-09-09 16:44:15 +02:00
Andrzej Rybczak
8dd2160a6b remove enclosing braces from song_status_format in example config file
it's not needed here, I just didn't remove
it when I copied it from ncmpcpp sources.
2009-09-08 21:22:37 +02:00
Andrzej Rybczak
55f064a59b make NCurses::Menu::Clear() clear used filter 2009-09-08 14:06:38 +02:00
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
2009-09-06 12:55:46 +02:00
Andrzej Rybczak
56be1cb753 make Window::SetColor protected as it doesn't respect stacked colors
it should only be used internally by Window and derives.
2009-09-06 12:51:48 +02:00
Andrzej Rybczak
3aa0f6a03b make color of separators used in alternative user interface customizable 2009-09-06 12:15:39 +02:00
Andrzej Rybczak
7079bf0584 scrollpad: always create pad of minimal height equal visible height 2009-09-06 12:04:54 +02:00
Andrzej Rybczak
c35deb3b94 move override wcwidth with 1 if WIN32 if defined to window.h 2009-09-06 12:00:46 +02:00
Andrzej Rybczak
a83989fbf0 simplify code in NCurses::Scrollpad::Flush() a bit 2009-09-06 11:42:26 +02:00