mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
Add API to support Editor sidebar DnD outside of the editor
This commit is contained in:
parent
56605c48da
commit
8d137b1514
3 changed files with 14 additions and 0 deletions
|
|
@ -5868,6 +5868,15 @@ Editor::consider_auditioning (boost::shared_ptr<Region> region)
|
||||||
last_audition_region = r;
|
last_audition_region = r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boost::shared_ptr<ARDOUR::Region>
|
||||||
|
Editor::get_dragged_region_from_sidebar ()
|
||||||
|
{
|
||||||
|
boost::shared_ptr<ARDOUR::Region> rv = _regions->get_dragged_region ();
|
||||||
|
if (!rv) {
|
||||||
|
rv = _sources->get_dragged_region ();
|
||||||
|
}
|
||||||
|
return rv;
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
Editor::hide_a_region (boost::shared_ptr<Region> r)
|
Editor::hide_a_region (boost::shared_ptr<Region> r)
|
||||||
|
|
|
||||||
|
|
@ -226,6 +226,8 @@ public:
|
||||||
void hide_a_region (boost::shared_ptr<ARDOUR::Region>);
|
void hide_a_region (boost::shared_ptr<ARDOUR::Region>);
|
||||||
void show_a_region (boost::shared_ptr<ARDOUR::Region>);
|
void show_a_region (boost::shared_ptr<ARDOUR::Region>);
|
||||||
|
|
||||||
|
boost::shared_ptr<ARDOUR::Region> get_dragged_region_from_sidebar ();
|
||||||
|
|
||||||
#ifdef USE_RUBBERBAND
|
#ifdef USE_RUBBERBAND
|
||||||
std::vector<std::string> rb_opt_strings;
|
std::vector<std::string> rb_opt_strings;
|
||||||
int rb_current_opt;
|
int rb_current_opt;
|
||||||
|
|
|
||||||
|
|
@ -203,6 +203,9 @@ public:
|
||||||
*/
|
*/
|
||||||
virtual void consider_auditioning (boost::shared_ptr<ARDOUR::Region> r) = 0;
|
virtual void consider_auditioning (boost::shared_ptr<ARDOUR::Region> r) = 0;
|
||||||
|
|
||||||
|
/* Editor::_regions DnD */
|
||||||
|
virtual boost::shared_ptr<ARDOUR::Region> get_dragged_region_from_sidebar () = 0;
|
||||||
|
|
||||||
/* import dialogs -> ardour-ui ?! */
|
/* import dialogs -> ardour-ui ?! */
|
||||||
virtual void external_audio_dialog () = 0;
|
virtual void external_audio_dialog () = 0;
|
||||||
virtual void session_import_dialog () = 0;
|
virtual void session_import_dialog () = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue