mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-02 03:47:42 +01:00
Add option to import invisible mixer strips from templates
This commit is contained in:
parent
050d6c07a6
commit
983de82ffa
2 changed files with 5 additions and 4 deletions
|
|
@ -637,13 +637,13 @@ StripImportDialog::clear_mapping ()
|
|||
}
|
||||
|
||||
void
|
||||
StripImportDialog::import_all_strips ()
|
||||
StripImportDialog::import_all_strips (bool only_visible)
|
||||
{
|
||||
_import_map.clear ();
|
||||
|
||||
int64_t next_id = std::numeric_limits<uint64_t>::max () - 1 - _extern_map.size ();
|
||||
for (auto& [eid, einfo] : _extern_map) {
|
||||
if (einfo.pi.special () || einfo.pi.hidden ()) {
|
||||
if (einfo.pi.special () || (only_visible && einfo.pi.hidden ())) {
|
||||
continue;
|
||||
}
|
||||
#ifdef MIXBUS
|
||||
|
|
@ -712,7 +712,8 @@ StripImportDialog::setup_strip_import_page ()
|
|||
using namespace Menu_Helpers;
|
||||
_action = manage (new ArdourWidgets::ArdourDropdown ());
|
||||
_action->add_menu_elem (MenuElem (_("Clear Mapping"), sigc::mem_fun (*this, &StripImportDialog::clear_mapping)));
|
||||
_action->add_menu_elem (MenuElem (_("Import all as new tracks"), sigc::mem_fun (*this, &StripImportDialog::import_all_strips)));
|
||||
_action->add_menu_elem (MenuElem (_("Import all as new tracks"), sigc::bind (sigc::mem_fun (*this, &StripImportDialog::import_all_strips), false)));
|
||||
_action->add_menu_elem (MenuElem (_("Import visible as new tracks"), sigc::bind (sigc::mem_fun (*this, &StripImportDialog::import_all_strips), true)));
|
||||
_action->add_menu_elem (MenuElem (_match_pbd_id ? _("Reset - auto-map by ID") : _("Reset - auto-map by name"), sigc::bind (mem_fun (*this, &StripImportDialog::set_default_mapping), true)));
|
||||
_action->set_text (_("Actions"));
|
||||
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ private:
|
|||
void prepare_mapping (bool, PBD::ID const&, std::string const&);
|
||||
void remove_mapping (PBD::ID const&);
|
||||
void clear_mapping ();
|
||||
void import_all_strips ();
|
||||
void import_all_strips (bool only_visible);
|
||||
void set_default_mapping (bool and_idle_update);
|
||||
void update_sensitivity_ok ();
|
||||
void ok_activated ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue