Fix center_edit_point action name.
[ardour2.git] / gtk2_ardour / editor_route_groups.h
blobc5e4eda254e8d0e46b5490f9b0719d91e22cdab2
1 /*
2 Copyright (C) 2000-2009 Paul Davis
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 #include "editor_component.h"
22 class EditorRouteGroups : public EditorComponent, public ARDOUR::SessionHandlePtr
24 public:
25 EditorRouteGroups (Editor *);
27 void set_session (ARDOUR::Session *);
29 Gtk::Widget& widget () {
30 return _display_packer;
33 void clear ();
34 Gtk::ToggleButton& all_group_active_button() { return _all_group_active_button; }
36 private:
38 struct Columns : public Gtk::TreeModel::ColumnRecord {
40 Columns () {
41 add (is_visible);
42 add (gain);
43 add (record);
44 add (mute);
45 add (solo);
46 add (select);
47 add (edits);
48 add (text);
49 add (routegroup);
52 Gtk::TreeModelColumn<bool> is_visible;
53 Gtk::TreeModelColumn<bool> gain;
54 Gtk::TreeModelColumn<bool> record;
55 Gtk::TreeModelColumn<bool> mute;
56 Gtk::TreeModelColumn<bool> solo;
57 Gtk::TreeModelColumn<bool> select;
58 Gtk::TreeModelColumn<bool> edits;
59 Gtk::TreeModelColumn<std::string> text;
60 Gtk::TreeModelColumn<ARDOUR::RouteGroup*> routegroup;
63 Columns _columns;
65 void add (ARDOUR::RouteGroup *);
66 void row_change (const Gtk::TreeModel::Path&,const Gtk::TreeModel::iterator&);
67 void name_edit (const std::string&, const std::string&);
68 void button_clicked ();
69 gint button_press_event (GdkEventButton* ev);
70 void groups_changed ();
71 void property_changed (ARDOUR::RouteGroup*, const PBD::PropertyChange &);
72 void remove_selected ();
73 void run_new_group_dialog ();
74 void all_group_toggled();
75 void all_group_changed (const PBD::PropertyChange&);
77 Glib::RefPtr<Gtk::ListStore> _model;
78 Glib::RefPtr<Gtk::TreeSelection> _selection;
79 Gtk::TreeView _display;
80 Gtk::ScrolledWindow _scroller;
81 Gtk::VBox _display_packer;
82 Gtk::ToggleButton _all_group_active_button;
83 bool _in_row_change;
84 PBD::ScopedConnection property_changed_connection;