}
}
+void
+PluginInsertProcessorEntry::hide_things ()
+{
+ plugin_insert_splitting_changed ();
+}
+
void
PluginInsertProcessorEntry::setup_visuals ()
{
processor_menu = build_processor_menu ();
}
- Gtk::MenuItem* plugin_menu_item = dynamic_cast<Gtk::MenuItem*>(ActionManager::get_widget("/processormenu/newplugin"));
+ Gtk::MenuItem* plugin_menu_item = dynamic_cast<Gtk::MenuItem*>(ActionManager::get_widget("/ProcessorMenu/newplugin"));
if (plugin_menu_item) {
plugin_menu_item->set_submenu (*_get_plugin_selector()->plugin_menu());
}
- Gtk::MenuItem* aux_menu_item = dynamic_cast<Gtk::MenuItem*>(ActionManager::get_widget("/processormenu/newaux"));
+ Gtk::MenuItem* aux_menu_item = dynamic_cast<Gtk::MenuItem*>(ActionManager::get_widget("/ProcessorMenu/newaux"));
if (aux_menu_item) {
Menu* m = build_possible_aux_menu();
Menu *
ProcessorBox::build_processor_menu ()
{
- processor_menu = dynamic_cast<Gtk::Menu*>(ActionManager::get_widget("/processormenu") );
+ processor_menu = dynamic_cast<Gtk::Menu*>(ActionManager::get_widget("/ProcessorMenu") );
processor_menu->set_name ("ArdourContextMenu");
return processor_menu;
}
Route::ProcessorStreams err_streams;
- if (Config->get_new_plugins_active()) {
- processor->activate ();
- }
-
- if (_route->add_processor (processor, _placement, &err_streams)) {
+ if (_route->add_processor (processor, _placement, &err_streams, Config->get_new_plugins_active ())) {
weird_plugin_dialog (**p, err_streams);
return true;
// XXX SHAREDPTR delete plugin here .. do we even need to care?
text += _("\nThis plugin has:\n");
if (has_midi) {
uint32_t const n = p.get_info()->n_inputs.n_midi ();
- text += string_compose (ngettext ("\t%1 MIDI input", "\t%1 MIDI inputs", n), n);
+ text += string_compose (ngettext ("\t%1 MIDI input\n", "\t%1 MIDI inputs\n", n), n);
}
if (has_audio) {
uint32_t const n = p.get_info()->n_inputs.n_audio ();
- text += string_compose (ngettext ("\t%1 audio input", "\t%1 audio inputs", n), n);
+ text += string_compose (ngettext ("\t%1 audio input\n", "\t%1 audio inputs\n", n), n);
}
- text += _("\nBut at the insertion point, there are:\n");
+ text += _("\nbut at the insertion point, there are:\n");
if (has_midi) {
uint32_t const n = streams.count.n_midi ();
text += string_compose (ngettext ("\t%1 MIDI channel\n", "\t%1 MIDI channels\n", n), n);
p.reset (r);
+ } else if (type->value() == "port") {
+
+ XMLNode n (**niter);
+ p.reset (new PortInsert (*_session, _route->pannable (), _route->mute_master ()));
+ if (p->set_state (n, Stateful::loading_state_version)) {
+ return;
+ }
+
} else {
/* XXX its a bit limiting to assume that everything else
is a plugin.
void
ProcessorBox::register_actions ()
{
- Glib::RefPtr<Gtk::ActionGroup> popup_act_grp = Gtk::ActionGroup::create(X_("processormenu"));
+ Glib::RefPtr<Gtk::ActionGroup> popup_act_grp = Gtk::ActionGroup::create(X_("ProcessorMenu"));
Glib::RefPtr<Action> act;
/* new stuff */
}
}
+void
+ProcessorBox::hide_things ()
+{
+ list<ProcessorEntry*> c = processor_display.children ();
+ for (list<ProcessorEntry*>::iterator i = c.begin(); i != c.end(); ++i) {
+ (*i)->hide_things ();
+ }
+}
+
ProcessorWindowProxy::ProcessorWindowProxy (
string const & name,
XMLNode const * node,