X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=libs%2Fsurfaces%2Ftranzport%2Fstate.cc;h=f9988a178e5325038fccbc9b05a2591e39a01b7a;hb=ba5c14036d8a9ecb0b23400ce556612de2209149;hp=1cb55b4fc3d17db60d905ca8ed57612f5c5b9bf2;hpb=45d3ec1437cf661533bc7750c623865def4424df;p=ardour.git diff --git a/libs/surfaces/tranzport/state.cc b/libs/surfaces/tranzport/state.cc index 1cb55b4fc3..f9988a178e 100644 --- a/libs/surfaces/tranzport/state.cc +++ b/libs/surfaces/tranzport/state.cc @@ -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 @@ -27,20 +27,20 @@ #include #include #include -#include -#include -#include -#include -#include +#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 +#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;