2009-06-28 20:57:27 -04:00
|
|
|
/*
|
2019-08-02 17:26:43 -04:00
|
|
|
* Copyright (C) 2009-2011 Carl Hetherington <carl@carlh.net>
|
|
|
|
* Copyright (C) 2009-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-28 20:57:27 -04:00
|
|
|
|
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
|
|
|
|
2016-06-12 14:33:18 -04:00
|
|
|
class RouteGroupDialog;
|
|
|
|
|
2011-02-22 20:05:15 -05:00
|
|
|
class RouteGroupMenu : 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
|
|
|
|
2011-02-22 20:05:15 -05:00
|
|
|
Gtk::Menu* menu ();
|
2011-03-07 08:04:03 -05:00
|
|
|
void build (ARDOUR::WeakRouteList const &);
|
2011-02-22 20:05:15 -05:00
|
|
|
void detach ();
|
2009-06-28 20:38:58 -04:00
|
|
|
|
2009-12-17 13:24:23 -05:00
|
|
|
private:
|
2011-03-07 08:04:03 -05:00
|
|
|
void add_item (ARDOUR::RouteGroup *, std::set<ARDOUR::RouteGroup*> const &, Gtk::RadioMenuItem::Group*);
|
2009-06-28 20:38:58 -04:00
|
|
|
void new_group ();
|
2018-09-16 17:08:41 -04:00
|
|
|
void set_group (Gtk::RadioMenuItem*, ARDOUR::RouteGroup *);
|
2016-06-12 14:33:18 -04:00
|
|
|
void new_group_dialog_finished (int, RouteGroupDialog*);
|
2016-06-12 14:53:55 -04:00
|
|
|
|
2011-02-22 20:05:15 -05:00
|
|
|
Gtk::Menu* _menu;
|
2016-06-12 14:33:18 -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;
|
2011-03-07 08:04:03 -05:00
|
|
|
ARDOUR::WeakRouteList _subject;
|
2009-06-28 20:38:58 -04:00
|
|
|
};
|
2009-12-17 13:24:23 -05:00
|
|
|
|
|
|
|
#endif /* __ardour_gtk_route_group_menu_h__ */
|