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
Andrzej Rybczak
c71f07df6d
eliminate remained compiler warnings
18 years ago
Andrzej Rybczak
aac3ce17ee
check if highlighted position is visible
18 years ago
Andrzej Rybczak
0ec93e2d2e
consider highlighEnabled value in Menu::Refresh()
18 years ago
Andrzej Rybczak
563c4530aa
update Window::WriteXY() and related stuff
18 years ago
Andrzej Rybczak
284dd6a5be
update Menu class and related stuff
18 years ago
Andrzej Rybczak
c03bcbe44b
remove color parser / update Window, Scrollpad class and related stuff
18 years ago
unK
48ba7cbcf2
another code clean-ups
18 years ago
unK
f8727b0a10
fix various compiler warnings and a few minor bugs
18 years ago
unK
0d5032c452
support for adding items like in ncmpc (disabled by default)
18 years ago
unK
c54de64176
new option for song format - right align (thx to Nathan Jones)
18 years ago
unK
0060450b10
fixes
18 years ago
unK
226702f23a
simplify adding options in Menu class
18 years ago
unK
e36bf0a3cc
use std::pair instead of two different containters
18 years ago
unK
ecdf23f06a
add albums' editor screen (quite experimental for now)
18 years ago
unK
c997e13091
classes cleaning
18 years ago
unK
5e7e0931a6
start option numeration from 0 instead of 1 (1 was really stupid idea)
18 years ago
unK
9c3bd9dfb7
fix bug in refreshing menus and adding songs from library screen
18 years ago
unK
3b562d5a37
add playlist mode switcher (and some clean-ups ofc)
18 years ago