summaryrefslogtreecommitdiffstats
path: root/src/sound/MappedStudio.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
commit11f31c37e5fa4889d9989f10272f44845449cb7b (patch)
tree4383da04a76c497950d957fc6120b0fd0d9082c2 /src/sound/MappedStudio.cpp
parent832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff)
downloadrosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.tar.gz
rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.zip
Initial TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/sound/MappedStudio.cpp')
-rw-r--r--src/sound/MappedStudio.cpp50
1 files changed, 25 insertions, 25 deletions
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<MappedObject*>::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<MappedObject*>::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<MappedStudio*>(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<MappedStudio*>(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;