report archive encoding progress
[ardour.git] / libs / surfaces / tranzport / state.cc
index 1cb55b4fc3d17db60d905ca8ed57612f5c5b9bf2..f9988a178e5325038fccbc9b05a2591e39a01b7a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *   Copyright (C) 2006 Paul Davis 
+ *   Copyright (C) 2006 Paul Davis
  *   Copyright (C) 2007 Michael Taht
  *
  *   This program is free software; you can redistribute it and/or modify
@@ -15,7 +15,7 @@
  *   You should have received a copy of the GNU General Public License
  *   along with this program; if not, write to the Free Software
  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- *  
+ *
  */
 
 #include <iostream>
 #include <float.h>
 #include <sys/time.h>
 #include <errno.h>
-#include <ardour/route.h>
-#include <ardour/audio_track.h>
-#include <ardour/session.h>
-#include <ardour/location.h>
-#include <ardour/dB.h>
+#include "ardour/route.h"
+#include "ardour/audio_track.h"
+#include "ardour/session.h"
+#include "ardour/location.h"
+#include "ardour/dB.h"
 
 using namespace ARDOUR;
 using namespace std;
 using namespace sigc;
 using namespace PBD;
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
-#include <pbd/abstract_ui.cc>
+#include "pbd/abstract_ui.cc"
 
 #include "tranzport_control_protocol.h"
 
@@ -48,11 +48,9 @@ using namespace PBD;
 // FIXME: How to handle multiple tranzports in a system?
 
 XMLNode&
-TranzportControlProtocol::get_state () 
+TranzportControlProtocol::get_state ()
 {
-       XMLNode* node = new XMLNode (X_("Protocol"));
-       node->add_property (X_("name"), _name);
-       return *node;
+       return ControlProtocol::get_state();
 }
 
 int
@@ -62,7 +60,7 @@ TranzportControlProtocol::set_state (const XMLNode& node)
        int retval = 0;
 
 // I think I want to make these strings rather than numbers
-#if 0          
+#if 0
        // fetch current display mode
        if ( node.property( X_("display_mode") ) != 0 )
        {
@@ -110,7 +108,7 @@ TranzportControlProtocol::set_state (const XMLNode& node)
                        return -1;
                }
        }
-#endif 
+#endif
 
        return retval;
 
@@ -120,28 +118,28 @@ TranzportControlProtocol::set_state (const XMLNode& node)
 // And perhaps we could load up sessions this way, too
 
 int
-TranzportControlProtocol::save (char *name) 
+TranzportControlProtocol::save (char *name)
 {
        // Presently unimplemented
        return 0;
 }
 
 int
-TranzportControlProtocol::load (char *name) 
+TranzportControlProtocol::load (char *name)
 {
        // Presently unimplemented
        return 0;
 }
 
 int
-TranzportControlProtocol::save_config (char *name) 
+TranzportControlProtocol::save_config (char *name)
 {
        // Presently unimplemented
        return 0;
 }
 
 int
-TranzportControlProtocol::load_config (char *name) 
+TranzportControlProtocol::load_config (char *name)
 {
        // Presently unimplemented
        return 0;