diff options
author | Robin Gareus <robin@gareus.org> | 2015-10-04 19:39:53 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-10-04 19:40:46 +0200 |
commit | d25e1cb635759d95b8f058cefe28f7d2bce3663d (patch) | |
tree | e385a10e7efeac6fc22487bdd95377bb6e15f79c /gtk2_ardour/processor_box.cc | |
parent | b3ace2e4c8dc68b0fbe4c43e50d1f21df252d2ec (diff) |
add a hidden option to show hidden processors
simplify debugging solo, monitor-processors, etc
Diffstat (limited to 'gtk2_ardour/processor_box.cc')
-rw-r--r-- | gtk2_ardour/processor_box.cc | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc index c7df111322..509ffaaa47 100644 --- a/gtk2_ardour/processor_box.cc +++ b/gtk2_ardour/processor_box.cc @@ -82,6 +82,10 @@ class AUPluginUI; #endif +#ifndef NDEBUG +bool ProcessorBox::show_all_processors = false; +#endif + using namespace std; using namespace ARDOUR; using namespace PBD; @@ -1794,7 +1798,12 @@ ProcessorBox::help_count_visible_prefader_processors (boost::weak_ptr<Processor> { boost::shared_ptr<Processor> processor (p.lock ()); - if (processor && processor->display_to_user()) { + if (processor && ( processor->display_to_user() +#ifndef NDEBUG + || show_all_processors +#endif + ) + ) { if (boost::dynamic_pointer_cast<Amp>(processor) && boost::dynamic_pointer_cast<Amp>(processor)->type() == X_("amp")) { *amp_seen = true; @@ -1811,7 +1820,12 @@ ProcessorBox::add_processor_to_display (boost::weak_ptr<Processor> p) { boost::shared_ptr<Processor> processor (p.lock ()); - if (!processor || !processor->display_to_user()) { + if (!processor || ( !processor->display_to_user() +#ifndef NDEBUG + && !show_all_processors +#endif + ) + ) { return; } |