/* Echo Media Player
* Copyright (C) 2008 Shane O'Connell
*
* [ The original file includes a copyright header in this location describing
* the file as being released under the terms of the GNU General Public
* License. It has been removed in order to display the file as part of the
* archive. ]
*/
#ifndef SOURCESPANE_H_
#define SOURCESPANE_H_
#include "../db/Library.h"
#include <gtkmm.h>
class SourcesPane : public Gtk::ScrolledWindow
{
public:
SourcesPane();
private:
Gtk::TreeView m_treeview;
Glib::RefPtr<Gtk::TreeStore> m_treestore;
class TreeViewColumns : public Gtk::TreeModelColumnRecord
{
public:
Gtk::TreeModelColumn<Glib::ustring> source_name;
Gtk::TreeModelColumn<Glib::RefPtr<Gdk::Pixbuf> > source_icon;
TreeViewColumns() { add(source_name); add(source_icon); }
};
TreeViewColumns m_tree_columns;
void on_row_activated(const Gtk::TreePath& path, Gtk::TreeViewColumn* column);
// ------------ Signals ------------
public:
sigc::signal<void, LibraryRef> signal_library_opened()
{ return _signal_library_opened; }
sigc::signal<void> signal_now_playing_opened()
{ return _signal_now_playing_opened; }
private:
sigc::signal<void, LibraryRef> _signal_library_opened;
sigc::signal<void> _signal_now_playing_opened;
};
#endif /* SOURCESPANE_H_ */