Ardour  8.12
editor_regions.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2009-2011 Carl Hetherington <carl@carlh.net>
3  * Copyright (C) 2009-2011 David Robillard <d@drobilla.net>
4  * Copyright (C) 2009-2018 Paul Davis <paul@linuxaudiosystems.com>
5  * Copyright (C) 2018 Ben Loftis <ben@harrisonconsoles.com>
6  * Copyright (C) 2021 Robin Gareus <robin@gareus.org>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License along
19  * with this program; if not, write to the Free Software Foundation, Inc.,
20  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21  */
22 #ifndef __gtk_ardour_editor_regions_h__
23 #define __gtk_ardour_editor_regions_h__
24 
25 #include "editor_component.h"
26 #include "region_list_base.h"
27 #include "region_selection.h"
28 
30 {
31 public:
33 
35  void selection_mapover (sigc::slot<void, std::shared_ptr<ARDOUR::Region>>);
37 
38  std::shared_ptr<ARDOUR::Region> get_single_selection ();
39 
40  void unselect_all ()
41  {
42  _display.get_selection ()->unselect_all ();
43  }
44 
45 protected:
46  void regions_changed (std::shared_ptr<ARDOUR::RegionList>, PBD::PropertyChange const&);
47 
48 private:
49  void init ();
52  void show_context_menu (int button, int time);
53 };
54 
55 #endif /* __gtk_ardour_editor_regions_h__ */
void regions_changed(std::shared_ptr< ARDOUR::RegionList >, PBD::PropertyChange const &)
void selection_changed()
void remove_unused_regions()
EditorRegions(Editor *)
void show_context_menu(int button, int time)
void selection_mapover(sigc::slot< void, std::shared_ptr< ARDOUR::Region >>)
void set_selected(RegionSelection &)
void unselect_all()
bool button_press(GdkEventButton *)
std::shared_ptr< ARDOUR::Region > get_single_selection()
Definition: editor.h:158
Glib::RefPtr< TreeSelection > get_selection()
Gtkmm2ext::DnDTreeView< std::shared_ptr< ARDOUR::Region > > _display