X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Feditor_group_tabs.h;h=61e0ecfd0fdb15ddd30c5b72a1b11504cd8354b7;hb=e0ff70cf86c01c42f98faf8b0eaf1a8ccf867946;hp=a0ea2183f04390f34d49320af349723dae6d6649;hpb=167929c25a4d2f839e078eeaa50ab40b8f544978;p=ardour.git diff --git a/gtk2_ardour/editor_group_tabs.h b/gtk2_ardour/editor_group_tabs.h index a0ea2183f0..61e0ecfd0f 100644 --- a/gtk2_ardour/editor_group_tabs.h +++ b/gtk2_ardour/editor_group_tabs.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2009 Paul Davis + Copyright (C) 2009 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 @@ -22,7 +22,7 @@ class Editor; -class EditorGroupTabs : public GroupTabs +class EditorGroupTabs : public GroupTabs, public EditorComponent { public: EditorGroupTabs (Editor *); @@ -31,11 +31,10 @@ private: std::list compute_tabs () const; void draw_tab (cairo_t *, Tab const &) const; double primary_coordinate (double, double) const; - void reflect_tabs (std::list const &); + ARDOUR::RouteList routes_for_tab (Tab const *) const; double extent () const { - return _height; + return get_height(); } - Gtk::Menu* get_menu (ARDOUR::RouteGroup* g); - - Editor* _editor; + void add_menu_items (Gtk::Menu *, ARDOUR::RouteGroup *); + ARDOUR::RouteList selected_routes () const; };