Ardour  9.0-pre0-582-g084a23a80d
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 #pragma once
23 
24 #include "editor_component.h"
25 #include "region_list_base.h"
26 #include "region_selection.h"
27 
29 {
30 public:
32 
34  void selection_mapover (sigc::slot<void, std::shared_ptr<ARDOUR::Region>>);
36 
37  std::shared_ptr<ARDOUR::Region> get_single_selection ();
38 
39  void unselect_all ()
40  {
41  _display.get_selection ()->unselect_all ();
42  }
43 
44 protected:
45  void regions_changed (std::shared_ptr<ARDOUR::RegionList>, PBD::PropertyChange const&);
46 
47 private:
48  void init ();
51  void show_context_menu (int button, int time);
52 };
53 
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