From 11f31c37e5fa4889d9989f10272f44845449cb7b Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 6 Sep 2010 20:59:29 +0000 Subject: Initial TQt conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/sound/MappedStudio.cpp | 50 +++++++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'src/sound/MappedStudio.cpp') diff --git a/src/sound/MappedStudio.cpp b/src/sound/MappedStudio.cpp index 4b35122..b72550b 100644 --- a/src/sound/MappedStudio.cpp +++ b/src/sound/MappedStudio.cpp @@ -59,11 +59,11 @@ static inline void releaseLock(const char *file, int line) #define GET_LOCK getLock(__FILE__,__LINE__) #define RELEASE_LOCK releaseLock(__FILE__,__LINE__) -// These stream functions are stolen and adapted from Qt3 qvaluevector.h +// These stream functions are stolen and adapted from Qt3 tqvaluevector.h // // ** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. // -QDataStream& operator>>(QDataStream& s, MappedObjectIdList& v) +TQDataStream& operator>>(TQDataStream& s, MappedObjectIdList& v) { v.clear(); Q_UINT32 c; @@ -77,7 +77,7 @@ QDataStream& operator>>(QDataStream& s, MappedObjectIdList& v) return s; } -QDataStream& operator<<(QDataStream& s, const MappedObjectIdList& v) +TQDataStream& operator<<(TQDataStream& s, const MappedObjectIdList& v) { s << (Q_UINT32)v.size(); MappedObjectIdList::const_iterator it = v.begin(); @@ -86,7 +86,7 @@ QDataStream& operator<<(QDataStream& s, const MappedObjectIdList& v) return s; } -QDataStream& operator>>(QDataStream& s, MappedObjectPropertyList& v) +TQDataStream& operator>>(TQDataStream& s, MappedObjectPropertyList& v) { v.clear(); Q_UINT32 c; @@ -100,7 +100,7 @@ QDataStream& operator>>(QDataStream& s, MappedObjectPropertyList& v) return s; } -QDataStream& operator<<(QDataStream& s, const MappedObjectPropertyList& v) +TQDataStream& operator<<(TQDataStream& s, const MappedObjectPropertyList& v) { s << (Q_UINT32)v.size(); MappedObjectPropertyList::const_iterator it = v.begin(); @@ -109,7 +109,7 @@ QDataStream& operator<<(QDataStream& s, const MappedObjectPropertyList& v) return s; } -QDataStream& operator>>(QDataStream& s, MappedObjectValueList& v) +TQDataStream& operator>>(TQDataStream& s, MappedObjectValueList& v) { v.clear(); Q_UINT32 c; @@ -123,7 +123,7 @@ QDataStream& operator>>(QDataStream& s, MappedObjectValueList& v) return s; } -QDataStream& operator<<(QDataStream& s, const MappedObjectValueList& v) +TQDataStream& operator<<(TQDataStream& s, const MappedObjectValueList& v) { s << (Q_UINT32)v.size(); MappedObjectValueList::const_iterator it = v.begin(); @@ -213,7 +213,7 @@ MappedObject::getChildren() MappedObjectPropertyList list; std::vector::iterator it = m_children.begin(); for (; it != m_children.end(); it++) - list.push_back(QString("%1").arg((*it)->getId())); + list.push_back(TQString("%1").arg((*it)->getId())); return list; } @@ -228,7 +228,7 @@ MappedObject::getChildren(MappedObjectType type) std::vector::iterator it = m_children.begin(); for (; it != m_children.end(); it++) { if ((*it)->getType() == type) - list.push_back(QString("%1").arg((*it)->getId())); + list.push_back(TQString("%1").arg((*it)->getId())); } return list; @@ -891,14 +891,14 @@ MappedAudioFader::getPropertyList(const MappedObjectProperty &property) it = m_connectionsIn.begin(); for ( ; it != m_connectionsIn.end(); ++it) { - list.push_back(QString("%1").arg(*it)); + list.push_back(TQString("%1").arg(*it)); } } else if (property == MappedConnectableObject::ConnectionsOut) { MappedObjectValueList::const_iterator it = m_connectionsOut.begin(); for ( ; it != m_connectionsOut.end(); ++it) { - list.push_back(QString("%1").arg(*it)); + list.push_back(TQString("%1").arg(*it)); } } @@ -1021,14 +1021,14 @@ MappedAudioBuss::getPropertyList(const MappedObjectProperty &property) it = m_connectionsIn.begin(); for ( ; it != m_connectionsIn.end(); ++it) { - list.push_back(QString("%1").arg(*it)); + list.push_back(TQString("%1").arg(*it)); } } else if (property == MappedConnectableObject::ConnectionsOut) { MappedObjectValueList::const_iterator it = m_connectionsOut.begin(); for ( ; it != m_connectionsOut.end(); ++it) { - list.push_back(QString("%1").arg(*it)); + list.push_back(TQString("%1").arg(*it)); } } @@ -1246,7 +1246,7 @@ MappedPluginSlot::getPropertyList(const MappedObjectProperty &property) dynamic_cast(getParent()); if (studio) { - QStringList programs = + TQStringList programs = studio->getSoundDriver()->getPluginInstancePrograms(m_instrument, m_position); @@ -1288,7 +1288,7 @@ MappedPluginSlot::getProperty(const MappedObjectProperty &property, bool MappedPluginSlot::getProperty(const MappedObjectProperty &property, - QString &value) + TQString &value) { if (property == Identifier) { value = m_identifier; @@ -1336,11 +1336,11 @@ MappedPluginSlot::getProgram(int bank, int program) program); } - return QString(); + return TQString(); } unsigned long -MappedPluginSlot::getProgram(QString name) +MappedPluginSlot::getProgram(TQString name) { MappedStudio *studio = dynamic_cast(getParent()); @@ -1381,7 +1381,7 @@ MappedPluginSlot::setProperty(const MappedObjectProperty &property, void MappedPluginSlot::setProperty(const MappedObjectProperty &property, - QString value) + TQString value) { if (property == Identifier) { @@ -1472,8 +1472,8 @@ MappedPluginSlot::setPropertyList(const MappedObjectProperty &property, for (MappedObjectPropertyList::const_iterator i = values.begin(); i != values.end(); ++i) { - QString key = *i; - QString value = *++i; + TQString key = *i; + TQString value = *++i; #ifdef DEBUG_MAPPEDSTUDIO @@ -1485,7 +1485,7 @@ MappedPluginSlot::setPropertyList(const MappedObjectProperty &property, continue; if (studio) { - QString rv = + TQString rv = studio->getSoundDriver()->configurePlugin(m_instrument, m_position, key, value); @@ -1500,8 +1500,8 @@ MappedPluginSlot::setPropertyList(const MappedObjectProperty &property, for (MappedObjectPropertyList::const_iterator i = values.begin(); i != values.end(); ++i) { - QString key = *i; - QString value = *++i; + TQString key = *i; + TQString value = *++i; m_configuration[key] = value; } @@ -1605,7 +1605,7 @@ MappedPluginPort::getProperty(const MappedObjectProperty &property, bool MappedPluginPort::getProperty(const MappedObjectProperty &property, - QString &value) + TQString &value) { if (property == Name) { value = m_name; @@ -1698,7 +1698,7 @@ MappedPluginPort::setProperty(const MappedObjectProperty &property, void MappedPluginPort::setProperty(const MappedObjectProperty &property, - QString value) + TQString value) { if (property == Name) { m_name = value; -- cgit v1.2.1