Commit Graph

115 Commits

Author SHA1 Message Date
Andrzej Rybczak
5f637103a6 menu: make Menu::drawn return ConstIterator 2012-09-04 23:05:58 +02:00
Andrzej Rybczak
f6fb2ed54c make use of override keyword if available 2012-09-04 20:08:43 +02:00
Andrzej Rybczak
bb121fbe01 make playlist and playlist editor share code responsible for moving items 2012-09-04 18:14:37 +02:00
Andrzej Rybczak
226fbdd2c9 fix shadowing warnings 2012-09-03 15:43:59 +02:00
Andrzej Rybczak
af2cdca3d0 change naming conventions in NC namespace 2012-09-03 15:34:07 +02:00
Andrzej Rybczak
6f918091d9 remove warnings clang generates 2012-09-02 23:24:46 +02:00
Andrzej Rybczak
684d871506 finally kill NC::List 2012-09-02 20:55:32 +02:00
Andrzej Rybczak
d47cad1d50 get rid of 'using namespace NCurses' directive 2012-09-02 15:37:42 +02:00
Andrzej Rybczak
6f59a175ec implement HasSongs interface 2012-09-02 13:52:26 +02:00
Andrzej Rybczak
ad8fef343f menu: fix non-const to const iterator conversion 2012-09-01 18:06:47 +02:00
Andrzej Rybczak
0811e30319 implement Searchable interface / make use of unnamed namespaces 2012-09-01 16:10:52 +02:00
Andrzej Rybczak
1bb3907b50 fix a few typos 2012-09-01 08:56:56 +02:00
Andrzej Rybczak
7d47f16316 menu: fix iterator's operator[] and definitions of reverse value interators 2012-09-01 00:20:44 +02:00
Andrzej Rybczak
4c944085d6 menu: generalize filtering, introduce interfaces 2012-08-31 23:09:56 +02:00
Andrzej Rybczak
f1625c920a menu: get rid of a few List functions 2012-08-31 13:05:48 +02:00
Andrzej Rybczak
1596c8ed40 menu: simplify ItemDisplayer further 2012-08-31 12:20:41 +02:00
Andrzej Rybczak
1c46dec39f menu: a few semantic changes 2012-08-31 11:41:22 +02:00
Andrzej Rybczak
e4f4cd68c0 menu: add value iterator 2012-08-31 09:19:45 +02:00
Andrzej Rybczak
04bbdc53fc menu: get rid of RealChoice 2012-08-31 06:05:29 +02:00
Andrzej Rybczak
970727fab2 menu: make m_highlight/m_beginning unsigned 2012-08-31 05:55:49 +02:00
Andrzej Rybczak
d8b2d20bdb menu: move a few methods to Item class 2012-08-31 04:38:20 +02:00
Andrzej Rybczak
0ba847dc3c menu: make Item more operational 2012-08-30 20:36:15 +02:00
Andrzej Rybczak
74f0864824 menu: normalize indentation 2012-08-30 20:23:58 +02:00
Andrzej Rybczak
7e53654492 menu: implement custom iterator 2012-08-30 20:17:25 +02:00
Andrzej Rybczak
7297b8a9ad use std::bind instead of passing void pointers around 2012-08-30 12:24:19 +02:00
Andrzej Rybczak
798c9b3121 menu: some member name changing 2012-08-30 07:07:19 +02:00
Andrzej Rybczak
181224b837 keybinding system rewrite 2012-08-14 01:44:14 +02:00
Andrzej Rybczak
f8151904f5 update copyright dates 2012-03-17 16:46:55 +01:00
Andrzej Rybczak
ca956c3da3 update copyright dates 2011-11-01 13:43:47 +01:00
Andrzej Rybczak
07c540e67e search engine: fix error occuring while trying to select first album in results 2011-01-09 10:22:34 +01:00
Andrzej Rybczak
f2ac6cac03 menu: fix null pointer dereference in Menu::ReverseSelection() 2010-09-14 23:09:48 +02:00
Andrzej Rybczak
2aa053d7e1 media library: fix filter issues 2010-08-16 13:46:57 +02:00
Andrzej Rybczak
bd64052f11 center cursor directly in Menu class
centering in Screen::Scroll is hacky and works
only for scrolling, not e.g. selecting.
2010-02-05 15:49:20 +01:00
Andrzej Rybczak
08daa61907 update copyright notices 2010-01-30 16:24:24 +01:00
Andrzej Rybczak
444354f860 fix drawing selected_item_{prefix,suffix} 2009-12-31 11:30:12 +01:00
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.
2009-11-13 15:59:18 +01:00
Andrzej Rybczak
35a182d79e add support for scrolling the list with mouse wheel by given number of lines 2009-11-11 00:31:52 +01:00
Andrzej Rybczak
a98eb5e9ac add range support in NCurses::Menu::Sort() 2009-10-17 17:01:48 +02:00
Andrzej Rybczak
21dccc83fd fix compilation --without-taglib
caused by 3551057dbb
2009-10-14 15:22:05 +02:00
Andrzej Rybczak
70910b77ed make ncmpcpp compile with -fno-exceptions 2009-09-21 06:01:21 +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
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
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
8109d26daf refresh main screen only if necessary 2009-09-17 00:59:30 +00:00
Andrzej Rybczak
436dbddc81 simplify NCurses::Menu::Goto() 2009-09-16 19:56:32 +00:00
Andrzej Rybczak
f1ff84302e document NCurses::Menu class 2009-09-16 19:20:10 +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
55f064a59b make NCurses::Menu::Clear() clear used filter 2009-09-08 14:06:38 +02:00