2009-06-20 13:15:33 -04:00
|
|
|
/*
|
2009-10-14 12:10:01 -04:00
|
|
|
Copyright (C) 2009 Paul Davis
|
2009-06-20 13:15:33 -04:00
|
|
|
|
|
|
|
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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2009-06-21 15:59:56 -04:00
|
|
|
#include "group_tabs.h"
|
2009-06-20 13:15:33 -04:00
|
|
|
|
|
|
|
class Mixer_UI;
|
|
|
|
|
2009-06-21 15:59:56 -04:00
|
|
|
class MixerGroupTabs : public GroupTabs
|
2009-06-20 13:15:33 -04:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
MixerGroupTabs (Mixer_UI *);
|
|
|
|
|
|
|
|
private:
|
2009-06-21 18:17:17 -04:00
|
|
|
std::list<Tab> compute_tabs () const;
|
|
|
|
void draw_tab (cairo_t *, Tab const &) const;
|
|
|
|
double primary_coordinate (double, double) const;
|
|
|
|
void reflect_tabs (std::list<Tab> const &);
|
|
|
|
double extent () const {
|
|
|
|
return _width;
|
|
|
|
}
|
2009-06-21 21:25:21 -04:00
|
|
|
Gtk::Menu* get_menu (ARDOUR::RouteGroup* g);
|
|
|
|
|
|
|
|
void edit_group (ARDOUR::RouteGroup *);
|
|
|
|
void remove_group (ARDOUR::RouteGroup *);
|
2009-06-25 16:46:39 -04:00
|
|
|
void make_subgroup (ARDOUR::RouteGroup *);
|
|
|
|
void destroy_subgroup (ARDOUR::RouteGroup *);
|
|
|
|
|
2009-06-20 13:15:33 -04:00
|
|
|
Mixer_UI* _mixer;
|
2009-06-21 21:25:21 -04:00
|
|
|
Gtk::Menu* _menu;
|
2009-06-20 13:15:33 -04:00
|
|
|
};
|