X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fplaylist_selector.h;h=c792179776156e640e9d4ddadac49d823e3f92ec;hb=3e59452fa0182ace7785c62acef83cb0d213cc86;hp=863d6cc7f31e4a821f7f0b8830880deff47e2514;hpb=8f54e410585907cbecd7047cb0c4e1d79d9b9d5f;p=ardour.git diff --git a/gtk2_ardour/playlist_selector.h b/gtk2_ardour/playlist_selector.h index 863d6cc7f3..c792179776 100644 --- a/gtk2_ardour/playlist_selector.h +++ b/gtk2_ardour/playlist_selector.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2004 Paul Davis + Copyright (C) 2004 Paul Davis This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,13 +20,16 @@ #ifndef __ardour_playlist_selector_h__ #define __ardour_playlist_selector_h__ +#include + #include #include #include #include #include -#include +#include "ardour_dialog.h" +#include "ardour/session_handle.h" namespace ARDOUR { class Session; @@ -36,26 +39,27 @@ namespace ARDOUR { class RouteUI; -class PlaylistSelector : public ArdourDialog +class PlaylistSelector : public ArdourDialog { public: PlaylistSelector (); ~PlaylistSelector (); - void set_session (ARDOUR::Session*); void show_for (RouteUI*); + protected: + bool on_unmap_event (GdkEventAny*); + private: - typedef std::map*> DSPL_Map; + typedef std::map >*> TrackPlaylistMap; - ARDOUR::Session* session; Gtk::ScrolledWindow scroller; - DSPL_Map dspl_map; + TrackPlaylistMap trpl_map; RouteUI* rui; sigc::connection select_connection; - void add_playlist_to_map (ARDOUR::Playlist*); + void add_playlist_to_map (boost::shared_ptr); void clear_map (); void close_button_click (); void selection_changed (); @@ -66,7 +70,7 @@ class PlaylistSelector : public ArdourDialog add (playlist); } Gtk::TreeModelColumn text; - Gtk::TreeModelColumn playlist; + Gtk::TreeModelColumn > playlist; }; ModelColumns columns;