2009-06-20 09:47:10 -04:00
|
|
|
/*
|
2019-08-02 17:26:43 -04:00
|
|
|
* Copyright (C) 2009-2010 Carl Hetherington <carl@carlh.net>
|
|
|
|
* Copyright (C) 2011-2016 Paul Davis <paul@linuxaudiosystems.com>
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
2009-06-20 09:47:10 -04:00
|
|
|
|
2015-12-07 17:08:19 -05:00
|
|
|
#ifndef __gtk_ardour_editor_group_tabs_h__
|
|
|
|
#define __gtk_ardour_editor_group_tabs_h__
|
|
|
|
|
2009-06-21 15:59:56 -04:00
|
|
|
#include <gtkmm/menu.h>
|
|
|
|
#include "group_tabs.h"
|
2009-06-20 09:44:47 -04:00
|
|
|
|
|
|
|
class Editor;
|
|
|
|
|
2010-07-19 17:47:07 -04:00
|
|
|
class EditorGroupTabs : public GroupTabs, public EditorComponent
|
2009-06-20 09:44:47 -04:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
EditorGroupTabs (Editor *);
|
|
|
|
|
|
|
|
private:
|
2009-06-21 18:17:17 -04:00
|
|
|
std::list<Tab> compute_tabs () const;
|
2017-05-04 13:15:18 -04:00
|
|
|
void draw_tab (cairo_t *, Tab const &);
|
2009-06-21 18:17:17 -04:00
|
|
|
double primary_coordinate (double, double) const;
|
2009-12-01 10:32:42 -05:00
|
|
|
ARDOUR::RouteList routes_for_tab (Tab const *) const;
|
2010-07-19 17:47:07 -04:00
|
|
|
void add_menu_items (Gtk::Menu *, ARDOUR::RouteGroup *);
|
|
|
|
ARDOUR::RouteList selected_routes () const;
|
2024-06-21 22:46:09 -04:00
|
|
|
|
|
|
|
double visible_extent () const {
|
|
|
|
return get_height();
|
|
|
|
}
|
2009-06-20 09:44:47 -04:00
|
|
|
};
|
2015-12-07 17:08:19 -05:00
|
|
|
|
|
|
|
#endif // __gtk_ardour_editor_group_tabs_h__
|