X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fmixer_group_tabs.h;h=8a2e06bc45f609dba5534dfb6b5b60a31515b2f4;hb=071d1185f62ef003c3f3cf7bf29651ddad396147;hp=fc95b4b1f66a5dec1790c8edc025d8def333947e;hpb=be3aff4bdabbf5ced06db66d7bea4cd6b7ec3572;p=ardour.git diff --git a/gtk2_ardour/mixer_group_tabs.h b/gtk2_ardour/mixer_group_tabs.h index fc95b4b1f6..8a2e06bc45 100644 --- a/gtk2_ardour/mixer_group_tabs.h +++ b/gtk2_ardour/mixer_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 @@ -17,22 +17,28 @@ */ -#include "cairo_widget.h" +#include "group_tabs.h" class Mixer_UI; -class MixerGroupTabs : public CairoWidget +class MixerGroupTabs : public GroupTabs { public: MixerGroupTabs (Mixer_UI *); - void set_session (ARDOUR::Session *); - private: - void on_size_request (Gtk::Requisition *); - bool on_button_press_event (GdkEventButton *); - void render (cairo_t *); - void draw_group (cairo_t *, int32_t, int32_t, ARDOUR::RouteGroup* , Gdk::Color const &); - + std::list compute_tabs () const; + void draw_tab (cairo_t *, Tab const &) const; + double primary_coordinate (double, double) const; + ARDOUR::RouteList routes_for_tab (Tab const *) const; + double extent () const { + return _width; + } + + PBD::PropertyList default_properties () const; + std::string order_key () const; + ARDOUR::RouteList selected_routes () const; + void sync_order_keys (); + Mixer_UI* _mixer; };