Andrzej Rybczak
444354f860
fix drawing selected_item_{prefix,suffix}
16 years ago
Andrzej Rybczak
495ec25a0a
simplify Clear() in Window and its derivatives
...
it removes argument responsible for immediate refreshing.
since after all calls that were refreshing screen there was
call to Refresh() anyway, this switch doesn't make much sense.
17 years ago
Andrzej Rybczak
35a182d79e
add support for scrolling the list with mouse wheel by given number of lines
17 years ago
Andrzej Rybczak
a98eb5e9ac
add range support in NCurses::Menu::Sort()
17 years ago
Andrzej Rybczak
21dccc83fd
fix compilation --without-taglib
...
caused by 3551057dbb
17 years ago
Andrzej Rybczak
70910b77ed
make ncmpcpp compile with -fno-exceptions
17 years ago
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.
17 years ago
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.
17 years ago
Andrzej Rybczak
b47ad169dc
add new function: Menu::CurrentlyDrawedPosition()
...
this'll be used to simplify displaying currently playing item
17 years ago
Andrzej Rybczak
ad685091bc
rename Menu::BoldOption() to Menu::Bold()
17 years ago
Andrzej Rybczak
3bdb798852
clean NCurse::List class a bit and remove a few redundant functions
17 years ago
Andrzej Rybczak
8109d26daf
refresh main screen only if necessary
17 years ago
Andrzej Rybczak
436dbddc81
simplify NCurses::Menu::Goto()
17 years ago
Andrzej Rybczak
f1ff84302e
document NCurses::Menu class
17 years ago
Andrzej Rybczak
fc6d367f75
remove Clone() and EmptyClone() methods from NCurses::Window and derives
...
these functions served no purpose.
17 years ago
Andrzej Rybczak
55f064a59b
make NCurses::Menu::Clear() clear used filter
17 years ago
Andrzej Rybczak
c0fcac9b1d
make guard checks in Menu::Refresh() more readable
17 years ago
Andrzej Rybczak
330f19acbb
make adding to main playlist inactive if selected items are from there
17 years ago
Andrzej Rybczak
9dab25e02c
use prefix ++ instead of postfix where available
17 years ago
Andrzej Rybczak
10a9427270
throw away Menu::GetPosition() as Menu::Choice() does the same
...
oh cool, I forgot that such function already exists under different name ~~
17 years ago
Andrzej Rybczak
d965f4e517
new feature: mouse support
17 years ago
Andrzej Rybczak
ec5a4bb3c2
do not clear last used filter in Menu::Clear()
17 years ago
Andrzej Rybczak
5455977914
fix compilation with -std=c++0x
17 years ago
Andrzej Rybczak
310b6c0ecd
new feature: cyclic scrolling
17 years ago
Andrzej Rybczak
f24db993aa
fix reapplying filter the same as the last one used
...
I was passing Menu::itsFilter by const reference to Menu::ApplyFilter().
however, the function was clearing all filtering related stuff, including
itsFilter itself, so passed reference was pointing at previously cleared
string. then the function checked if new filter was empty and it obviously
was, so exited then. funny bug.
17 years ago
Andrzej Rybczak
5b36fda511
reapply filter even if it's the same as the last one applied
17 years ago
Andrzej Rybczak
a9bad6863b
check if ptr is NULL before dereferencing it in Menu::GetSelected()
17 years ago
Andrzej Rybczak
24fc414826
fix bolding/unbolding items, if screen is filtered
17 years ago
Andrzej Rybczak
d03c4a88b6
fix Menu copy constructor
...
it has to make deep copy of itsOptions.
17 years ago
Andrzej Rybczak
a20469b403
never get full playlist from mpd, always request for changes
17 years ago
Andrzej Rybczak
fd7ac3b3f5
new feature: move item(s) in playlist to given position
17 years ago
Andrzej Rybczak
a80bf2a7bf
use typename keyword instead of class as it's more logical
17 years ago
Andrzej Rybczak
1667079b59
do not include misc.h in menu.h as it's redundant there
17 years ago
Andrzej Rybczak
29f49415dd
add support for regular expressions (basic and extended)
...
it intruduces regex support in search engine
and filtering/searching in all screens
17 years ago
Andrzej Rybczak
6be91a8216
improve searching a bit / fix going to previous found position
17 years ago
Andrzej Rybczak
a3da430f1f
change InternalSorting to class
17 years ago
Andrzej Rybczak
b21ede24f4
move searching to Menu class, also remember last constraint
...
this improvement also make that list of found items is not cleared
if one switches to another screen. it's remebered until the content
of screen changes (e.g. item is deleted from playlist)
17 years ago
Andrzej Rybczak
a4599fffe7
speed up browsing media library
...
the way media library was searching for albums
was wrong and by the way totally inefficient.
17 years ago
Andrzej Rybczak
ea973b6b4a
put classes related to ncurses into NCurses namespace
17 years ago
Andrzej Rybczak
c1ba3bc4ba
apply filter only if the previously applied one was different
17 years ago
Andrzej Rybczak
c827c88993
use ncurses pad instead of ncurses window by default
17 years ago
Andrzej Rybczak
5d2daab416
new feature: apply filter to screen (Ctrl-F)
...
if one applies a filter, only items that contain this
filter will be displayed. works on all screens.
17 years ago
Andrzej Rybczak
2cb9b46135
use vector of pointers to options rather than vector of options
...
this way I can implement options filtering with much less effort.
17 years ago
Andrzej Rybczak
43a8e2284e
provide generic interface for dealing with selected items
17 years ago
Andrzej Rybczak
b43d4dddeb
throw away unneeded code
17 years ago
Andrzej Rybczak
f9f5149b76
includes cleaning
17 years ago
Andrzej Rybczak
791daa1f7e
clear window only if last element is deleted
17 years ago
Andrzej Rybczak
1244223919
if menu is empty, clear it
...
before this if the only element was removed from menu, it was still displayed.
17 years ago
Andrzej Rybczak
0c9e10091f
update fsf address and copyright info
17 years ago
Andrzej Rybczak
2db104f2e1
do not attempt to get/select/whatever item from an empty menu
17 years ago