Archive / / / / / / TabPane.h
2008-10-06 17:14:44 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 TABPANE_H_ #define TABPANE_H_ #include "NowPlayingTab.h" #include "LibraryTab.h" #include "PlaylistTab.h" #include <vector> #include <string> #include <boost/shared_ptr.hpp> #include <gtkmm.h> class TabPane : public Gtk::Notebook { public: TabPane(); void open_now_playing(); void open_library(LibraryRef library); void add_playlist_from_uri(const std::string& uri); void add_blank_playlist(); private: void open_tab(Gtk::Widget& child, const Glib::ustring& title, const Glib::ustring& icon); bool on_tab_click(GdkEventButton* event, Gtk::Widget* child); NowPlayingTab m_now_playing_tab; std::list<boost::shared_ptr<LibraryTab> > m_library_tabs; std::list<boost::shared_ptr<PlaylistTab> > m_playlist_tabs; }; #endif /* TABPANE_H_ */