libsaria: Remove playlist renderer
I have notifications to handle everything the renderer used to do, and I've removed it from the UI side. Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
parent
68aa523ba8
commit
11b685aeb0
|
@ -23,11 +23,6 @@ enum PlaylistType {
|
|||
PLIST_LIST,
|
||||
};
|
||||
|
||||
#define RENDER(x) \
|
||||
if (renderer) { \
|
||||
renderer->x; \
|
||||
}
|
||||
|
||||
namespace libsaria
|
||||
{
|
||||
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
#ifndef LIBSARIA_PLAYLIST_RENDERER_H
|
||||
#define LIBSARIA_PLAYLIST_RENDERER_H
|
||||
|
||||
#include <libsaria/playlist.h>
|
||||
|
||||
namespace libsaria
|
||||
{
|
||||
class PlaylistRenderer {
|
||||
private:
|
||||
unsigned int flags;
|
||||
|
||||
protected:
|
||||
Playlist *playlist;
|
||||
|
||||
public:
|
||||
PlaylistRenderer(unsigned int);
|
||||
virtual ~PlaylistRenderer();
|
||||
void set_playlist(Playlist *);
|
||||
Playlist *get_playlist();
|
||||
|
||||
bool is_static();
|
||||
};
|
||||
|
||||
}; /* Namespace: libsaria */
|
||||
|
||||
#endif /* LIBSARIA_PLAYLIST_RENDERER_H */
|
|
@ -1,6 +1,5 @@
|
|||
// Copyright (c) 2012 Bryan Schumaker.
|
||||
#include <libsaria/playlist.h>
|
||||
#include <libsaria/renderer.h>
|
||||
#include <libsaria/track.h>
|
||||
#include <libsaria/print.h>
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
// Copyright (c) 2012 Bryan Schumaker.
|
||||
#include <libsaria/playlist.h>
|
||||
#include <libsaria/renderer.h>
|
||||
#include <libsaria/index.h>
|
||||
#include <libsaria/prefs.h>
|
||||
#include <libsaria/print.h>
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#include <libsaria/track.h>
|
||||
#include <libsaria/library.h>
|
||||
#include <libsaria/playlist.h>
|
||||
#include <libsaria/renderer.h>
|
||||
|
||||
namespace libsaria
|
||||
{
|
||||
|
|
|
@ -1,33 +0,0 @@
|
|||
// Copyright (c) 2012 Bryan Schumaker.
|
||||
#include <libsaria/renderer.h>
|
||||
|
||||
namespace libsaria
|
||||
{
|
||||
|
||||
PlaylistRenderer::PlaylistRenderer(unsigned int f)
|
||||
{
|
||||
playlist = NULL;
|
||||
flags = f;
|
||||
}
|
||||
|
||||
PlaylistRenderer::~PlaylistRenderer()
|
||||
{
|
||||
}
|
||||
|
||||
void PlaylistRenderer::set_playlist(Playlist *p)
|
||||
{
|
||||
playlist = p;
|
||||
playlist->set_renderer(this);
|
||||
}
|
||||
|
||||
Playlist *PlaylistRenderer::get_playlist()
|
||||
{
|
||||
return playlist;
|
||||
}
|
||||
|
||||
bool PlaylistRenderer::is_static()
|
||||
{
|
||||
return (flags & PL_STATIC) == PL_STATIC;
|
||||
}
|
||||
|
||||
}; /* Namespace: libsaria */
|
Loading…
Reference in New Issue