Commit Graph

658 Commits

Author SHA1 Message Date
Andrzej Rybczak
3477c1514d put check for playlist filtering in macro 2009-03-13 14:35:35 +01:00
Andrzej Rybczak
2c1647d57a new feature: reverse playlist 2009-03-13 14:22:43 +01:00
Andrzej Rybczak
d03c4a88b6 fix Menu copy constructor
it has to make deep copy of itsOptions.
2009-03-13 13:26:29 +01:00
Andrzej Rybczak
a20469b403 never get full playlist from mpd, always request for changes 2009-03-13 12:58:17 +01:00
Andrzej Rybczak
c7689d72d6 improve playlist updating
the case when sizes of mpd's and ncmpcpp's are equal is redundant.
what is more, it caused unneded overhead, because it was comparing
whole playlists. plchanges commands returns only songs that have
really changed, so this piece of code was simply wrong.
2009-03-12 21:26:56 +01:00
Andrzej Rybczak
502ce9be6a handle now playing song properly
np song was sometimes wrongly taken, if user was moving items in playlist.
fix this by taking it directly from mpd, but do this as seldom as possible.
2009-03-12 21:24:00 +01:00
Andrzej Rybczak
0aa36f3fb2 move Global::Timer to Playlist class 2009-03-12 20:20:26 +01:00
Andrzej Rybczak
d5a68a1a60 make Keypressed() funcion inline 2009-03-12 19:29:38 +01:00
Andrzej Rybczak
6768e3cdaa change char * to const char * in libmpdclient where appropriate to avoid casts 2009-03-12 18:29:13 +01:00
Andrzej Rybczak
24c37eb592 do not store commands list in MPD::Connection
it should have sent commandlist begin and end commands from the beginning,
having separated functions just to handle queueing commands was plainly ugly.
2009-03-12 17:30:25 +01:00
Andrzej Rybczak
8a4ee22b61 swap songs internally while sorting to keep their properties 2009-03-12 13:46:00 +01:00
Andrzej Rybczak
2bb0aaef18 if selected items are separated, group them while moving 2009-03-12 13:32:24 +01:00
Andrzej Rybczak
c0d227a0c8 move selected items to actual cursor position, not to given one
this is much better as no position couting is needed.
2009-03-11 21:31:41 +01:00
Andrzej Rybczak
fd7ac3b3f5 new feature: move item(s) in playlist to given position 2009-03-11 20:27:55 +01:00
Andrzej Rybczak
a80bf2a7bf use typename keyword instead of class as it's more logical 2009-03-10 22:47:39 +01:00
Andrzej Rybczak
d50dcac5a2 return value, not const reference, if return type is POD or ptr
returning reference to POD types can be in fact slower than returning value.
2009-03-10 22:20:09 +01:00
Andrzej Rybczak
5e29d251c3 add man page 2009-03-10 21:02:47 +01:00
Andrzej Rybczak
1667079b59 do not include misc.h in menu.h as it's redundant there 2009-03-10 17:26:03 +01:00
Andrzej Rybczak
5f114abd2c clear screen only after getting song info to avoid flickering 2009-03-09 11:43:27 +01:00
Andrzej Rybczak
2f68c48eb0 make SearchEngine::CaseSensitive regex flag 2009-03-09 11:23:55 +01:00
Andrzej Rybczak
14a817e83e fix memory leak in search engine
while performing case insensitive and exact match searching Song was
really copied, so clearing its internal mpd_Song ptr resulted in memleak.
2009-03-09 11:09:13 +01:00
Andrzej Rybczak
29f49415dd add support for regular expressions (basic and extended)
it intruduces regex support in search engine
and filtering/searching in all screens
2009-03-08 22:16:18 +01:00
Andrzej Rybczak
6be91a8216 improve searching a bit / fix going to previous found position 2009-03-08 17:45:28 +01:00
Andrzej Rybczak
2c30387a91 limit scope of unallowed_chars and make it static 2009-03-08 16:43:40 +01:00
Andrzej Rybczak
09ea91e548 check if setlocale() returns NULL 2009-03-08 15:55:41 +01:00
Andrzej Rybczak
7f2a635ac5 use inline functions instead of macros in charset.h 2009-03-08 15:53:15 +01:00
Andrzej Rybczak
a3da430f1f change InternalSorting to class 2009-03-08 13:27:14 +01:00
Andrzej Rybczak
eed4fb03ff use CamelCase for variables in Global namespace / some cleaning 2009-03-08 01:58:49 +01:00
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)
2009-03-07 18:23:31 +01:00
Andrzej Rybczak
c5f24f402f improve fetching albums by tag editor 2009-03-07 15:03:22 +01:00
Andrzej Rybczak
3523caa592 some fixes for non-unicode locales 2009-03-07 13:26:36 +01:00
Andrzej Rybczak
a4599fffe7 speed up browsing media library
the way media library was searching for albums
was wrong and by the way totally inefficient.
2009-03-07 12:26:16 +01:00
Andrzej Rybczak
93fd687ec1 consider "ignore leading 'the' word" function while sorting playlist 2009-03-06 18:14:01 +01:00
Andrzej Rybczak
e209a86e8e allow for position go to in %, mm:ss format and numer of seconds 2009-03-06 14:12:40 +01:00
Andrzej Rybczak
1b74324e68 fix duplicating albums in media library 2009-03-05 18:55:11 +01:00
Andrzej Rybczak
556d0f7a3c hide cursor after return from external console editor 2009-03-05 18:06:53 +01:00
Andrzej Rybczak
eef59c9099 rename Song::__Count_Last_Slash_Position() 2009-03-05 17:45:43 +01:00
Andrzej Rybczak
ea973b6b4a put classes related to ncurses into NCurses namespace 2009-03-05 17:43:13 +01:00
Andrzej Rybczak
8f092d5490 move some functions to TagEditor class / outside 2009-03-04 22:47:48 +01:00
Andrzej Rybczak
31dcb27789 fix handling external console editor 2009-03-04 22:21:32 +01:00
Andrzej Rybczak
6ad80aeed5 write ID3v2 tags in utf8 2009-03-04 21:33:56 +01:00
Andrzej Rybczak
76701883e9 support for multiple composer, performer and disc tags 2009-03-04 21:14:11 +01:00
Andrzej Rybczak
67b7aaae8a define mDialog as object, not ptr to object 2009-03-04 16:18:48 +01:00
Andrzej Rybczak
2d74931a9a use static_cast in Scrollpad::Flush() instead of reinterpret_cast 2009-03-04 15:39:52 +01:00
Andrzej Rybczak
d8a6993ec2 add support for external console editor 2009-03-04 15:34:04 +01:00
Andrzej Rybczak
73f7980019 make blocking search constraints change after successful searching optional
it's still enabled by default though.
2009-03-03 21:13:02 +01:00
Andrzej Rybczak
339bbb4925 while converting item in columns to string, if title is empty, use filename 2009-03-03 19:44:00 +01:00
Andrzej Rybczak
3d6765f896 make BasicScreen::{Enter,Space}Pressed() pure virtual 2009-03-03 18:39:09 +01:00
Andrzej Rybczak
c3f2857dab use private where appropriate 2009-03-03 18:33:37 +01:00
Sebastian Peters
e0a9a6cb9c fix: show again multiple album without year in media library 2009-03-02 00:01:32 +01:00