+
+ }
+
+ return name_display;
+}
+
+void
+ProcessorEntry::show_all_controls ()
+{
+ for (list<Control*>::iterator i = _controls.begin(); i != _controls.end(); ++i) {
+ (*i)->set_visible (true);
+ }
+
+ _parent->update_gui_object_state (this);
+}
+
+void
+ProcessorEntry::hide_all_controls ()
+{
+ for (list<Control*>::iterator i = _controls.begin(); i != _controls.end(); ++i) {
+ (*i)->set_visible (false);
+ }
+
+ _parent->update_gui_object_state (this);
+}
+
+void
+ProcessorEntry::add_control_state (XMLNode* node) const
+{
+ for (list<Control*>::const_iterator i = _controls.begin(); i != _controls.end(); ++i) {
+ (*i)->add_state (node);
+ }
+}
+
+void
+ProcessorEntry::set_control_state (XMLNode const * node)
+{
+ for (list<Control*>::const_iterator i = _controls.begin(); i != _controls.end(); ++i) {
+ (*i)->set_state (node);
+ }
+}
+
+string
+ProcessorEntry::state_id () const
+{
+ return string_compose ("processor %1", _processor->id().to_s());
+}
+
+void
+ProcessorEntry::hide_things ()
+{
+ for (list<Control*>::iterator i = _controls.begin(); i != _controls.end(); ++i) {
+ (*i)->hide_things ();
+ }
+}
+
+
+Menu *
+ProcessorEntry::build_controls_menu ()
+{
+ using namespace Menu_Helpers;
+ Menu* menu = manage (new Menu);
+ MenuList& items = menu->items ();
+
+ items.push_back (
+ MenuElem (_("Show All Controls"), sigc::mem_fun (*this, &ProcessorEntry::show_all_controls))
+ );