mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
Unify Region Drag/Drop
Identify Regions using PDB::ID. This allows dragging regions from almost anywhere to anywhere, without special cases.
This commit is contained in:
parent
5427cec821
commit
0204ea1f24
13 changed files with 64 additions and 118 deletions
|
|
@ -25,6 +25,8 @@
|
|||
#include <gtkmm/treerowreference.h>
|
||||
#include <gtkmm/treestore.h>
|
||||
|
||||
#include "gtkmm2ext/dndtreeview.h"
|
||||
|
||||
#include "editor_component.h"
|
||||
|
||||
#include "selection.h"
|
||||
|
|
@ -42,7 +44,6 @@ public:
|
|||
|
||||
void clear ();
|
||||
|
||||
boost::shared_ptr<ARDOUR::Region> get_dragged_region ();
|
||||
boost::shared_ptr<ARDOUR::Region> get_single_selection ();
|
||||
|
||||
void unselect_all () {
|
||||
|
|
@ -132,9 +133,8 @@ private:
|
|||
|
||||
void redisplay ();
|
||||
|
||||
void drag_data_received (
|
||||
Glib::RefPtr<Gdk::DragContext> const &, gint, gint, Gtk::SelectionData const &, guint, guint
|
||||
);
|
||||
void drag_data_get (Glib::RefPtr<Gdk::DragContext> const&, Gtk::SelectionData&, guint, guint);
|
||||
void drag_data_received (Glib::RefPtr<Gdk::DragContext> const &, gint, gint, Gtk::SelectionData const &, guint, guint);
|
||||
|
||||
Gtk::ScrolledWindow _scroller;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue