-void
-ARDOUR_UI::set_transport_controllable_state (const XMLNode& node)
-{
- XMLProperty const * prop;
-
- if ((prop = node.property ("roll")) != 0) {
- roll_controllable->set_id (prop->value());
- }
- if ((prop = node.property ("stop")) != 0) {
- stop_controllable->set_id (prop->value());
- }
- if ((prop = node.property ("goto-start")) != 0) {
- goto_start_controllable->set_id (prop->value());
- }
- if ((prop = node.property ("goto-end")) != 0) {
- goto_end_controllable->set_id (prop->value());
- }
- if ((prop = node.property ("auto-loop")) != 0) {
- auto_loop_controllable->set_id (prop->value());
- }
- if ((prop = node.property ("play-selection")) != 0) {
- play_selection_controllable->set_id (prop->value());
- }
- if ((prop = node.property ("rec")) != 0) {
- rec_controllable->set_id (prop->value());
- }
- if ((prop = node.property ("shuttle")) != 0) {
- shuttle_box->controllable()->set_id (prop->value());
- }
-}
-
-XMLNode&
-ARDOUR_UI::get_transport_controllable_state ()
-{
- XMLNode* node = new XMLNode(X_("TransportControllables"));
- char buf[64];
-
- roll_controllable->id().print (buf, sizeof (buf));
- node->add_property (X_("roll"), buf);
- stop_controllable->id().print (buf, sizeof (buf));
- node->add_property (X_("stop"), buf);
- goto_start_controllable->id().print (buf, sizeof (buf));
- node->add_property (X_("goto_start"), buf);
- goto_end_controllable->id().print (buf, sizeof (buf));
- node->add_property (X_("goto_end"), buf);
- auto_loop_controllable->id().print (buf, sizeof (buf));
- node->add_property (X_("auto_loop"), buf);
- play_selection_controllable->id().print (buf, sizeof (buf));
- node->add_property (X_("play_selection"), buf);
- rec_controllable->id().print (buf, sizeof (buf));
- node->add_property (X_("rec"), buf);
- shuttle_box->controllable()->id().print (buf, sizeof (buf));
- node->add_property (X_("shuttle"), buf);
-
- return *node;
-}
-