20 #include <boost/foreach.hpp>
26 #include "canvas/colors.h"
62 for (TreeModel::Children::iterator i = rows.begin(); i != rows.end(); ++i) {
100 double const arc_radius = get_height();
104 ArdourCanvas::color_to_rgba (tab.
color, r, g, b, a);
111 cairo_set_source_rgba (cr, r, g, b, a);
112 cairo_arc (cr, tab.
from + arc_radius, get_height(), arc_radius, M_PI, 3 * M_PI / 2);
113 cairo_line_to (cr, tab.
to - arc_radius, 0);
114 cairo_arc (cr, tab.
to - arc_radius, get_height(), arc_radius, 3 * M_PI / 2, 2 * M_PI);
115 cairo_line_to (cr, tab.
from, get_height());
121 cairo_text_extents_t ext;
122 cairo_text_extents (cr, tab.
group->
name().c_str(), &ext);
125 ArdourCanvas::color_to_rgba (c, r, g, b, a);
127 cairo_set_source_rgb (cr, r, g, b);
128 cairo_move_to (cr, tab.
from + (tab.
to - tab.
from - f.second) / 2, get_height() - ext.height / 2);
130 cairo_show_text (cr, f.first.c_str());
148 for (TreeModel::Children::iterator i = rows.begin(); i != rows.end(); ++i) {
161 double const h = x + s->get_width() / 2;
163 if (t->
from < h && t->
to > h) {
164 routes.push_back (s->
route ());
167 x += s->get_width ();
TrackDisplayModelColumns track_columns
std::list< Tab > compute_tabs() const
Glib::RefPtr< Gtk::ListStore > track_model
RouteProcessorSelection & selection()
Gtk::TreeModelColumn< MixerStrip * > strip
uint32_t contrasting_text_color(uint32_t c)
LIBGTKMM2EXT_API std::string fit_to_pixels(const std::string &, int pixel_width, Pango::FontDescription &font, int &actual_width, bool with_ellipses=false)
ARDOUR::RouteList routes_for_tab(Tab const *) const
ARDOUR::RouteGroup * route_group() const
void draw_tab(cairo_t *, Tab const &) const
static uint32_t group_color(ARDOUR::RouteGroup *)
ARDOUR::RouteGroup * group
route group
static UIConfiguration * config()
ARDOUR::RouteList selected_routes() const
MixerGroupTabs(Mixer_UI *)
double primary_coordinate(double, double) const
bool marked_for_display() const
std::list< boost::shared_ptr< Route > > RouteList
boost::shared_ptr< ARDOUR::Route > route() const
void sync_order_keys_from_treeview()
LIBARDOUR_API PBD::PropertyDescriptor< bool > color