Commit Graph

569 Commits

Author SHA1 Message Date
Andrzej Rybczak
d1d1011eeb make function 'clear' in playlist editor clear selected playlist 2009-03-17 18:24:35 +01:00
Andrzej Rybczak
b382784f6a notify about selected items being removed from playlist 2009-03-17 16:58:55 +01:00
Andrzej Rybczak
aea0540f16 a few improvements for 'add selected' function 2009-03-17 16:43:33 +01:00
Andrzej Rybczak
a1b08c5776 add ('a') items to currently selected playlist in playlist editor 2009-03-16 17:10:43 +01:00
Andrzej Rybczak
8a1223aa18 enable playlist highlighting after saving playlist 2009-03-16 16:36:48 +01:00
Andrzej Rybczak
20055afac4 call Song::Localize() in Display::SongInColumns() 2009-03-15 22:42:28 +01:00
Andrzej Rybczak
1e511d1d8d fix now playing update if playlist is filtered 2009-03-15 13:35:18 +01:00
Andrzej Rybczak
31ab01cc1c fix prototype of write_data() function used by curl
maybe this works, but I don't want it to suddenly stop working
some day just because curl guys made their library more strict.
2009-03-14 22:15:25 +01:00
Andrzej Rybczak
24fc414826 fix bolding/unbolding items, if screen is filtered 2009-03-14 18:04:31 +01:00
Andrzej Rybczak
aad83e9b6c fix clearing statusbar if playing is stopped 2009-03-13 15:24:12 +01:00
Andrzej Rybczak
1a7fd6d332 update window title only when playlist or songid changed 2009-03-13 15:11:59 +01:00
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