Archive / / / / / / PlaylistTab.h
2008-10-18 01:30:26 UTC
previous next
/* 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 PLAYLISTTAB_H_ #define PLAYLISTTAB_H_ #include "../../db/Playlist.h" #include "PlaySourceTreeModel.h" #include <boost/shared_ptr.hpp> #include <gtkmm.h> class PlaylistTab : public Gtk::ScrolledWindow { public: static boost::shared_ptr<PlaylistTab> create_from_uri(const std::string& uri); static boost::shared_ptr<PlaylistTab> create_blank(const Glib::ustring& name); const Glib::ustring& get_tab_name() { return m_playlist_name; } private: PlaylistTab(PlaySourceRef source); void on_row_activated(const Gtk::TreePath& path, Gtk::TreeViewColumn* column); PlaySourceRef m_source; Glib::ustring m_playlist_name; Glib::RefPtr<PlaySourceTreeModel> m_treemodel; Gtk::TreeView m_treeview; }; #endif /* PLAYLISTTAB_H_ */