13
0

add a hidden option to show hidden processors

simplify debugging solo, monitor-processors, etc
This commit is contained in:
Robin Gareus 2015-10-04 19:39:53 +02:00
parent b3ace2e4c8
commit d25e1cb635
3 changed files with 29 additions and 3 deletions

View File

@ -25,6 +25,10 @@
#include "ardour/debug.h"
#include "ardour/session.h"
#ifndef NDEBUG // "-H"
#include "processor_box.h"
#endif
#include "opts.h"
#include "i18n.h"
@ -84,7 +88,7 @@ print_help (const char *execname)
int
ARDOUR_COMMAND_LINE::parse_opts (int argc, char *argv[])
{
const char *optstring = "abBc:C:dD:hk:E:m:N:nOp:PST:U:vV";
const char *optstring = "abBc:C:dD:hHk:E:m:N:nOp:PST:U:vV";
const char *execname = strrchr (argv[0], '/');
if (getenv ("ARDOUR_SAE")) {
@ -143,6 +147,11 @@ ARDOUR_COMMAND_LINE::parse_opts (int argc, char *argv[])
print_help (execname);
exit (0);
break;
case 'H':
#ifndef NDEBUG
ProcessorBox::show_all_processors = true;
#endif
break;
case 'a':
check_announcements = false;
break;

View File

@ -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;
}

View File

@ -310,6 +310,9 @@ class ProcessorBox : public Gtk::HBox, public PluginInterestedObject, public ARD
sigc::signal<void,boost::shared_ptr<ARDOUR::Processor> > ProcessorUnselected;
static void register_actions();
#ifndef NDEBUG
static bool show_all_processors;
#endif
private: