mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 09:06:33 +01:00
remove "Lua DSP Proc" context meuu
This commit is contained in:
parent
25f65d0b90
commit
1888104f8d
3 changed files with 0 additions and 57 deletions
|
|
@ -631,7 +631,6 @@
|
||||||
<menuitem action='newinsert'/>
|
<menuitem action='newinsert'/>
|
||||||
<menuitem action='newsend'/>
|
<menuitem action='newsend'/>
|
||||||
<menuitem action='newaux'/>
|
<menuitem action='newaux'/>
|
||||||
<menuitem action='newlua'/>
|
|
||||||
<separator/>
|
<separator/>
|
||||||
<menuitem action='controls'/>
|
<menuitem action='controls'/>
|
||||||
#ifndef MIXBUS
|
#ifndef MIXBUS
|
||||||
|
|
|
||||||
|
|
@ -2372,49 +2372,6 @@ ProcessorBox::choose_plugin ()
|
||||||
_get_plugin_selector()->set_interested_object (*this);
|
_get_plugin_selector()->set_interested_object (*this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @return true if an error occurred, otherwise false */
|
|
||||||
bool
|
|
||||||
ProcessorBox::choose_lua ()
|
|
||||||
{
|
|
||||||
LuaScriptInfoPtr spi;
|
|
||||||
|
|
||||||
ScriptSelector ss (_("Add Lua DSP Processor"), LuaScriptInfo::DSP);
|
|
||||||
switch (ss.run ()) {
|
|
||||||
case Gtk::RESPONSE_ACCEPT:
|
|
||||||
spi = ss.script();
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
ss.hide ();
|
|
||||||
|
|
||||||
PluginPtr p;
|
|
||||||
try {
|
|
||||||
LuaPluginInfoPtr lpi (new LuaPluginInfo(spi));
|
|
||||||
p = (lpi->load (*_session));
|
|
||||||
} catch (...) {
|
|
||||||
string msg = _(
|
|
||||||
"Failed to instantiate Lua DSP Processor,\n"
|
|
||||||
"probably because the script is invalid (no dsp function).");
|
|
||||||
MessageDialog am (msg);
|
|
||||||
am.run ();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
boost::shared_ptr<Processor> processor (new PluginInsert (*_session, p));
|
|
||||||
|
|
||||||
Route::ProcessorStreams err_streams;
|
|
||||||
if (_route->add_processor_by_index (processor, _placement, &err_streams, Config->get_new_plugins_active ())) {
|
|
||||||
string msg = _(
|
|
||||||
"Failed to add Lua DSP Processor at the given position,\n"
|
|
||||||
"probably because the I/O configuration of the plugins\n"
|
|
||||||
"could not match the configuration of this track.");
|
|
||||||
MessageDialog am (msg);
|
|
||||||
am.run ();
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @return true if an error occurred, otherwise false */
|
/** @return true if an error occurred, otherwise false */
|
||||||
bool
|
bool
|
||||||
ProcessorBox::use_plugins (const SelectedPlugins& plugins)
|
ProcessorBox::use_plugins (const SelectedPlugins& plugins)
|
||||||
|
|
@ -3655,8 +3612,6 @@ ProcessorBox::register_actions ()
|
||||||
myactions.register_action (processor_box_actions, X_("newplugin"), _("New Plugin"),
|
myactions.register_action (processor_box_actions, X_("newplugin"), _("New Plugin"),
|
||||||
sigc::ptr_fun (ProcessorBox::rb_choose_plugin));
|
sigc::ptr_fun (ProcessorBox::rb_choose_plugin));
|
||||||
|
|
||||||
act = myactions.register_action (processor_box_actions, X_("newlua"), _("New Lua DSP"),
|
|
||||||
sigc::ptr_fun (ProcessorBox::rb_choose_lua));
|
|
||||||
act = myactions.register_action (processor_box_actions, X_("newinsert"), _("New Insert"),
|
act = myactions.register_action (processor_box_actions, X_("newinsert"), _("New Insert"),
|
||||||
sigc::ptr_fun (ProcessorBox::rb_choose_insert));
|
sigc::ptr_fun (ProcessorBox::rb_choose_insert));
|
||||||
ActionManager::engine_sensitive_actions.push_back (act);
|
ActionManager::engine_sensitive_actions.push_back (act);
|
||||||
|
|
@ -3761,15 +3716,6 @@ ProcessorBox::rb_choose_plugin ()
|
||||||
_current_processor_box->choose_plugin ();
|
_current_processor_box->choose_plugin ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
ProcessorBox::rb_choose_lua ()
|
|
||||||
{
|
|
||||||
if (_current_processor_box == 0) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
_current_processor_box->choose_lua ();
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
ProcessorBox::rb_choose_insert ()
|
ProcessorBox::rb_choose_insert ()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -506,7 +506,6 @@ class ProcessorBox : public Gtk::HBox, public PluginInterestedObject, public ARD
|
||||||
void return_io_finished (IOSelector::Result, boost::weak_ptr<ARDOUR::Processor>, IOSelectorWindow*);
|
void return_io_finished (IOSelector::Result, boost::weak_ptr<ARDOUR::Processor>, IOSelectorWindow*);
|
||||||
void choose_insert ();
|
void choose_insert ();
|
||||||
void choose_plugin ();
|
void choose_plugin ();
|
||||||
bool choose_lua ();
|
|
||||||
bool use_plugins (const SelectedPlugins&);
|
bool use_plugins (const SelectedPlugins&);
|
||||||
|
|
||||||
bool no_processor_redisplay;
|
bool no_processor_redisplay;
|
||||||
|
|
@ -571,7 +570,6 @@ class ProcessorBox : public Gtk::HBox, public PluginInterestedObject, public ARD
|
||||||
static void rb_choose_aux (boost::weak_ptr<ARDOUR::Route>);
|
static void rb_choose_aux (boost::weak_ptr<ARDOUR::Route>);
|
||||||
static void rb_choose_plugin ();
|
static void rb_choose_plugin ();
|
||||||
static void rb_choose_insert ();
|
static void rb_choose_insert ();
|
||||||
static void rb_choose_lua ();
|
|
||||||
static void rb_choose_send ();
|
static void rb_choose_send ();
|
||||||
static void rb_clear ();
|
static void rb_clear ();
|
||||||
static void rb_clear_pre ();
|
static void rb_clear_pre ();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue