-void
-AudioTimeAxisView::set_state (const XMLNode& node)
-{
- const XMLProperty *prop;
-
- TimeAxisView::set_state (node);
-
- if ((prop = node.property ("shown_editor")) != 0) {
- if (prop->value() == "no") {
- _marked_for_display = false;
- } else {
- _marked_for_display = true;
- }
- } else {
- _marked_for_display = true;
- }
-
- XMLNodeList nlist = node.children();
- XMLNodeConstIterator niter;
- XMLNode *child_node;
-
-
- show_gain_automation = false;
- show_pan_automation = false;
-
- for (niter = nlist.begin(); niter != nlist.end(); ++niter) {
- child_node = *niter;
-
- if (child_node->name() == "gain") {
- XMLProperty *prop=child_node->property ("shown");
-
- if (prop != 0) {
- if (prop->value() == "yes") {
- show_gain_automation = true;
- }
- }
- continue;
- }
-
- if (child_node->name() == "pan") {
- XMLProperty *prop=child_node->property ("shown");
-
- if (prop != 0) {
- if (prop->value() == "yes") {
- show_pan_automation = true;
- }
- }
- continue;
- }
- }
-}
-
-void
-AudioTimeAxisView::build_automation_action_menu ()
-{
- using namespace Menu_Helpers;
-
- RouteTimeAxisView::build_automation_action_menu ();
-
- MenuList& automation_items = automation_action_menu->items();
-
- automation_items.push_back (SeparatorElem());
-
- automation_items.push_back (CheckMenuElem (_("Fader"),
- mem_fun(*this, &AudioTimeAxisView::toggle_gain_track)));
- gain_automation_item = static_cast<CheckMenuItem*> (&automation_items.back());
- gain_automation_item->set_active(show_gain_automation);
-
- automation_items.push_back (CheckMenuElem (_("Pan"),
- mem_fun(*this, &AudioTimeAxisView::toggle_pan_track)));
- pan_automation_item = static_cast<CheckMenuItem*> (&automation_items.back());
- pan_automation_item->set_active(show_pan_automation);
-
-}