diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2012-09-01 16:10:52 +0200 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2012-09-01 16:10:52 +0200 |
commit | 0811e3031914b1971e73fcedee8acadc72d6a95e (patch) | |
tree | 41291af57be5efb0be163a17ac2295cc2cdf199a /src/playlist_editor.h | |
parent | 12ca0033505a1167012436f653163993e91d8d4f (diff) |
implement Searchable interface / make use of unnamed namespaces
Diffstat (limited to 'src/playlist_editor.h')
-rw-r--r-- | src/playlist_editor.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/playlist_editor.h b/src/playlist_editor.h index f9116a1e..98d2dc62 100644 --- a/src/playlist_editor.h +++ b/src/playlist_editor.h @@ -24,7 +24,7 @@ #include "playlist.h" #include "ncmpcpp.h" -class PlaylistEditor : public Screen<Window>, public Filterable +class PlaylistEditor : public Screen<Window>, public Filterable, public Searchable { public: virtual void SwitchTo(); @@ -47,9 +47,15 @@ class PlaylistEditor : public Screen<Window>, public Filterable virtual void ReverseSelection() { Content->ReverseSelection(); } virtual void GetSelectedSongs(MPD::SongList &); + /// Filterable implementation virtual std::string currentFilter(); virtual void applyFilter(const std::string &filter); - + + /// Searchable implementation + virtual bool search(const std::string &constraint); + virtual void nextFound(bool wrap); + virtual void prevFound(bool wrap); + virtual void Locate(const std::string &); virtual List *GetList(); @@ -73,11 +79,6 @@ class PlaylistEditor : public Screen<Window>, public Filterable private: void AddToPlaylist(bool); - - static size_t LeftColumnStartX; - static size_t LeftColumnWidth; - static size_t RightColumnStartX; - static size_t RightColumnWidth; }; extern PlaylistEditor *myPlaylistEditor; |