2009-06-29 01:07:37 +00:00
|
|
|
/*
|
2019-08-02 23:26:43 +02:00
|
|
|
* Copyright (C) 2009-2011 Carl Hetherington <carl@carlh.net>
|
|
|
|
|
* Copyright (C) 2009-2014 David Robillard <d@drobilla.net>
|
|
|
|
|
* Copyright (C) 2009-2016 Paul Davis <paul@linuxaudiosystems.com>
|
|
|
|
|
* Copyright (C) 2014-2017 Robin Gareus <robin@gareus.org>
|
|
|
|
|
*
|
|
|
|
|
* 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-29 01:07:37 +00:00
|
|
|
|
2024-09-25 18:38:59 -06:00
|
|
|
#pragma once
|
2009-06-20 15:40:26 +00:00
|
|
|
|
|
|
|
|
#include <gtkmm/dialog.h>
|
|
|
|
|
#include <gtkmm/entry.h>
|
|
|
|
|
#include <gtkmm/checkbutton.h>
|
|
|
|
|
|
2009-06-29 01:07:37 +00:00
|
|
|
#include "ardour_dialog.h"
|
2017-03-30 15:21:06 +02:00
|
|
|
#include "stripable_colorpicker.h"
|
2009-06-29 01:07:37 +00:00
|
|
|
|
2024-07-24 23:21:12 +02:00
|
|
|
namespace ARDOUR {
|
|
|
|
|
class RouteGroup;
|
|
|
|
|
}
|
|
|
|
|
|
2009-06-29 01:07:37 +00:00
|
|
|
class RouteGroupDialog : public ArdourDialog
|
2009-06-20 15:40:26 +00:00
|
|
|
{
|
|
|
|
|
public:
|
2011-01-08 02:35:46 +00:00
|
|
|
RouteGroupDialog (ARDOUR::RouteGroup *, bool);
|
2009-06-20 15:40:26 +00:00
|
|
|
|
2016-06-11 15:49:18 -04:00
|
|
|
ARDOUR::RouteGroup* group() const { return _group; }
|
2016-06-12 14:33:18 -04:00
|
|
|
bool name_check () const;
|
2011-06-01 17:00:29 +00:00
|
|
|
|
2009-10-14 16:10:01 +00:00
|
|
|
private:
|
2009-06-20 15:40:26 +00:00
|
|
|
ARDOUR::RouteGroup* _group;
|
2011-01-08 02:35:46 +00:00
|
|
|
std::string _initial_name;
|
2009-06-29 01:07:37 +00:00
|
|
|
|
2009-06-20 15:40:26 +00:00
|
|
|
Gtk::Entry _name;
|
|
|
|
|
Gtk::CheckButton _active;
|
2009-06-21 19:59:56 +00:00
|
|
|
Gtk::CheckButton _gain;
|
2009-06-23 21:29:39 +00:00
|
|
|
Gtk::CheckButton _relative;
|
2009-06-21 19:59:56 +00:00
|
|
|
Gtk::CheckButton _mute;
|
|
|
|
|
Gtk::CheckButton _solo;
|
|
|
|
|
Gtk::CheckButton _rec_enable;
|
2024-01-30 23:57:55 +01:00
|
|
|
Gtk::CheckButton _sursend_enable;
|
2009-06-21 19:59:56 +00:00
|
|
|
Gtk::CheckButton _select;
|
|
|
|
|
Gtk::CheckButton _edit;
|
2011-01-10 23:37:34 +00:00
|
|
|
Gtk::CheckButton _route_active;
|
2011-08-31 19:14:12 +00:00
|
|
|
Gtk::CheckButton _share_color;
|
2011-10-21 15:47:50 +00:00
|
|
|
Gtk::CheckButton _share_monitoring;
|
2017-03-30 15:21:06 +02:00
|
|
|
ArdourColorButton _color;
|
2009-06-29 01:07:37 +00:00
|
|
|
|
|
|
|
|
void gain_toggled ();
|
2011-01-08 02:35:46 +00:00
|
|
|
void update ();
|
2014-06-30 18:25:11 +02:00
|
|
|
bool unique_name (std::string const name) const;
|
2009-06-20 15:40:26 +00:00
|
|
|
|
2024-07-24 23:21:12 +02:00
|
|
|
PBD::ScopedConnection _group_connection;
|
|
|
|
|
};
|
2009-06-20 15:40:26 +00:00
|
|
|
|