2009-06-28 20:57:27 -04:00
|
|
|
/*
|
|
|
|
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
|
|
|
|
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-12-17 13:24:23 -05:00
|
|
|
#ifndef __ardour_gtk_route_group_menu_h__
|
|
|
|
#define __ardour_gtk_route_group_menu_h__
|
|
|
|
|
2009-06-28 20:57:27 -04:00
|
|
|
#include "ardour/route_group.h"
|
2009-12-17 13:24:23 -05:00
|
|
|
#include "ardour/session_handle.h"
|
2009-06-28 20:57:27 -04:00
|
|
|
|
2009-06-28 20:38:58 -04:00
|
|
|
|
2009-12-17 13:24:23 -05:00
|
|
|
class RouteGroupMenu : public Gtk::Menu, public ARDOUR::SessionHandlePtr
|
2009-06-28 20:38:58 -04:00
|
|
|
{
|
|
|
|
public:
|
2010-02-18 08:59:49 -05:00
|
|
|
RouteGroupMenu (ARDOUR::Session*, PBD::PropertyList*);
|
|
|
|
~RouteGroupMenu();
|
2009-06-28 20:38:58 -04:00
|
|
|
|
|
|
|
void rebuild (ARDOUR::RouteGroup *);
|
|
|
|
|
|
|
|
sigc::signal<void, ARDOUR::RouteGroup*> GroupSelected;
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2009-12-17 13:24:23 -05:00
|
|
|
private:
|
2009-06-28 20:38:58 -04:00
|
|
|
void add_item (ARDOUR::RouteGroup *, ARDOUR::RouteGroup *, Gtk::RadioMenuItem::Group*);
|
|
|
|
void new_group ();
|
|
|
|
void set_group (ARDOUR::RouteGroup *);
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2010-02-18 08:59:49 -05:00
|
|
|
PBD::PropertyList* _default_properties;
|
2010-01-12 20:40:07 -05:00
|
|
|
bool _inhibit_group_selected;
|
|
|
|
ARDOUR::RouteGroup* _selected_route_group;
|
2009-06-28 20:38:58 -04:00
|
|
|
};
|
2009-12-17 13:24:23 -05:00
|
|
|
|
|
|
|
#endif /* __ardour_gtk_route_group_menu_h__ */
|