24 #include "canvas/colors.h"
59 if ((*i)->marked_for_display() ==
false) {
78 y += (*i)->effective_height ();
92 double const arc_radius = get_width();
96 ArdourCanvas::color_to_rgba (tab.
color, r, g, b, a);
103 cairo_set_source_rgba (cr, r, g, b, a);
104 cairo_move_to (cr, 0, tab.
from + arc_radius);
105 cairo_arc (cr, get_width(), tab.
from + arc_radius, arc_radius, M_PI, 3 * M_PI / 2);
106 cairo_line_to (cr, get_width(), tab.
to);
107 cairo_arc (cr, get_width(), tab.
to - arc_radius, arc_radius, M_PI / 2, M_PI);
108 cairo_line_to (cr, 0, tab.
from + arc_radius);
114 cairo_text_extents_t ext;
115 cairo_text_extents (cr, tab.
group->
name().c_str(), &ext);
118 ArdourCanvas::color_to_rgba (c, r, g, b, a);
120 cairo_set_source_rgb (cr, r, g, b);
121 cairo_move_to (cr, get_width() - ext.height / 2, tab.
from + (f.second + tab.
to - tab.
from) / 2);
123 cairo_rotate (cr, - M_PI / 2);
124 cairo_show_text (cr, f.first.c_str());
143 if ((*i)->marked_for_display() ==
false) {
157 if (t->
from < h && t->
to > h) {
158 routes.push_back (rtv->
route ());
162 y += (*i)->effective_height ();
175 MenuList& items = m->items ();
188 rl.push_back (rtv->
route());
void sync_order_keys_from_treeview()
uint32_t effective_height() const
ARDOUR::RouteList selected_routes() const
std::list< Tab > compute_tabs() const
void fit_route_group(ARDOUR::RouteGroup *)
void add_menu_items(Gtk::Menu *, ARDOUR::RouteGroup *)
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)
EditorGroupTabs(Editor *)
void draw_tab(cairo_t *, Tab const &) const
static uint32_t group_color(ARDOUR::RouteGroup *)
ARDOUR::RouteGroup * group
route group
static UIConfiguration * config()
Selection & get_selection() const
TrackViewList track_views
double primary_coordinate(double, double) const
std::list< boost::shared_ptr< Route > > RouteList
ARDOUR::RouteList routes_for_tab(Tab const *) const
boost::shared_ptr< ARDOUR::Route > route() const
LIBARDOUR_API PBD::PropertyDescriptor< bool > color