Vkeybd: add a mod-wheel
[ardour.git] / gtk2_ardour / route_group_dialog.h
1 /*
2  * Copyright (C) 2009-2011 Carl Hetherington <carl@carlh.net>
3  * Copyright (C) 2009-2014 David Robillard <d@drobilla.net>
4  * Copyright (C) 2009-2016 Paul Davis <paul@linuxaudiosystems.com>
5  * Copyright (C) 2014-2017 Robin Gareus <robin@gareus.org>
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License along
18  * with this program; if not, write to the Free Software Foundation, Inc.,
19  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20  */
21
22 #ifndef __gtk_ardour_route_group_dialog_h__
23 #define __gtk_ardour_route_group_dialog_h__
24
25 #include <gtkmm/dialog.h>
26 #include <gtkmm/entry.h>
27 #include <gtkmm/checkbutton.h>
28
29 #include "ardour_dialog.h"
30 #include "stripable_colorpicker.h"
31
32 class RouteGroupDialog : public ArdourDialog
33 {
34 public:
35         RouteGroupDialog (ARDOUR::RouteGroup *, bool);
36
37         ARDOUR::RouteGroup* group() const { return _group; }
38         bool name_check () const;
39
40 private:
41         ARDOUR::RouteGroup* _group;
42         std::string _initial_name;
43
44         Gtk::Entry _name;
45         Gtk::CheckButton _active;
46         Gtk::CheckButton _gain;
47         Gtk::CheckButton _relative;
48         Gtk::CheckButton _mute;
49         Gtk::CheckButton _solo;
50         Gtk::CheckButton _rec_enable;
51         Gtk::CheckButton _select;
52         Gtk::CheckButton _edit;
53         Gtk::CheckButton _route_active;
54         Gtk::CheckButton _share_color;
55         Gtk::CheckButton _share_monitoring;
56         ArdourColorButton _color;
57
58         void gain_toggled ();
59         void update ();
60         bool unique_name (std::string const name) const;
61 };
62
63
64 #endif