13
0

Better fix for Amp visibility in the plugin automation menu.

git-svn-id: svn://localhost/ardour2/branches/3.0@5282 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2009-06-26 14:52:36 +00:00
parent 911c484bd7
commit d040d03574
3 changed files with 8 additions and 8 deletions

View File

@ -289,7 +289,7 @@ RouteTimeAxisView::post_construct ()
update_diskstream_display ();
subplugin_menu.items().clear ();
_route->foreach_processor (bind (mem_fun (*this, &RouteTimeAxisView::add_processor_to_subplugin_menu), _route));
_route->foreach_processor (mem_fun (*this, &RouteTimeAxisView::add_processor_to_subplugin_menu));
_route->foreach_processor (mem_fun (*this, &RouteTimeAxisView::add_existing_processor_automation_curves));
reset_processor_automation_curves ();
}
@ -2027,16 +2027,14 @@ RouteTimeAxisView::add_automation_child(Evoral::Parameter param, boost::shared_p
void
RouteTimeAxisView::add_processor_to_subplugin_menu (boost::weak_ptr<Processor> p, boost::weak_ptr<Route> r)
RouteTimeAxisView::add_processor_to_subplugin_menu (boost::weak_ptr<Processor> p)
{
boost::shared_ptr<Processor> processor (p.lock ());
boost::shared_ptr<Route> route (r.lock ());
if (!processor || !route) {
if (!processor) {
return;
}
if (processor == route->amp ()) {
/* don't add an entry for the amp processor */
if (!processor->visible ()) {
return;
}
@ -2169,7 +2167,7 @@ RouteTimeAxisView::processors_changed ()
subplugin_menu.items().clear ();
_route->foreach_processor (bind (mem_fun (*this, &RouteTimeAxisView::add_processor_to_subplugin_menu), _route));
_route->foreach_processor (mem_fun (*this, &RouteTimeAxisView::add_processor_to_subplugin_menu));
_route->foreach_processor (mem_fun (*this, &RouteTimeAxisView::add_existing_processor_automation_curves));
for (list<ProcessorAutomationInfo*>::iterator i = processor_automation.begin(); i != processor_automation.end(); ) {

View File

@ -188,7 +188,7 @@ protected:
void processors_changed ();
void add_processor_to_subplugin_menu (boost::weak_ptr<ARDOUR::Processor>, boost::weak_ptr<ARDOUR::Route>);
void add_processor_to_subplugin_menu (boost::weak_ptr<ARDOUR::Processor>);
void remove_processor_automation_node (ProcessorAutomationNode* pan);
void processor_menu_item_toggled (RouteTimeAxisView::ProcessorAutomationInfo*,

View File

@ -37,6 +37,8 @@ class Amp : public Processor {
public:
Amp(Session& s, boost::shared_ptr<MuteMaster> m);
bool visible () const { return false; }
bool can_support_io_configuration (const ChanCount& in, ChanCount& out) const;
bool configure_io (ChanCount in, ChanCount out);