diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
commit | 11f31c37e5fa4889d9989f10272f44845449cb7b (patch) | |
tree | 4383da04a76c497950d957fc6120b0fd0d9082c2 /src/gui/studio/AudioPluginManager.cpp | |
parent | 832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff) | |
download | rosegarden-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/gui/studio/AudioPluginManager.cpp')
-rw-r--r-- | src/gui/studio/AudioPluginManager.cpp | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/src/gui/studio/AudioPluginManager.cpp b/src/gui/studio/AudioPluginManager.cpp index 6b64085..24b49f2 100644 --- a/src/gui/studio/AudioPluginManager.cpp +++ b/src/gui/studio/AudioPluginManager.cpp @@ -32,11 +32,11 @@ #include "gui/application/RosegardenApplication.h" #include "sound/PluginFactory.h" #include "sound/PluginIdentifier.h" -#include <qcstring.h> -#include <qdatastream.h> -#include <qmutex.h> -#include <qstring.h> -#include <qthread.h> +#include <tqcstring.h> +#include <tqdatastream.h> +#include <tqmutex.h> +#include <tqstring.h> +#include <tqthread.h> namespace Rosegarden @@ -71,7 +71,7 @@ AudioPluginManager::Enumerator::Enumerator(AudioPluginManager *manager) : void AudioPluginManager::Enumerator::run() { - QMutexLocker locker(&(m_manager->m_mutex)); + TQMutexLocker locker(&(m_manager->m_mutex)); MappedObjectPropertyList rawPlugins; RG_DEBUG << "\n\nAudioPluginManager::Enumerator::run()\n\n" << endl; @@ -86,15 +86,15 @@ AudioPluginManager::Enumerator::run() while (i < rawPlugins.size()) { - QString identifier = rawPlugins[i++]; - QString name = rawPlugins[i++]; + TQString identifier = rawPlugins[i++]; + TQString name = rawPlugins[i++]; unsigned long uniqueId = rawPlugins[i++].toLong(); - QString label = rawPlugins[i++]; - QString author = rawPlugins[i++]; - QString copyright = rawPlugins[i++]; + TQString label = rawPlugins[i++]; + TQString author = rawPlugins[i++]; + TQString copyright = rawPlugins[i++]; bool isSynth = ((rawPlugins[i++]).lower() == "true"); bool isGrouped = ((rawPlugins[i++]).lower() == "true"); - QString category = rawPlugins[i++]; + TQString category = rawPlugins[i++]; unsigned int portCount = rawPlugins[i++].toInt(); // std::cerr << "PLUGIN: " << i << ": " << (identifier ? identifier : "(null)") << " unique id " << uniqueId << " / CATEGORY: \"" << (category ? category : "(null)") << "\"" << std::endl; @@ -137,15 +137,15 @@ AudioPluginManager::Enumerator::run() } AudioPlugin* -AudioPluginManager::addPlugin(const QString &identifier, - const QString &name, +AudioPluginManager::addPlugin(const TQString &identifier, + const TQString &name, unsigned long uniqueId, - const QString &label, - const QString &author, - const QString ©right, + const TQString &label, + const TQString &author, + const TQString ©right, bool isSynth, bool isGrouped, - const QString &category) + const TQString &category) { AudioPlugin *newPlugin = new AudioPlugin(identifier, name, @@ -162,7 +162,7 @@ AudioPluginManager::addPlugin(const QString &identifier, } bool -AudioPluginManager::removePlugin(const QString &identifier) +AudioPluginManager::removePlugin(const TQString &identifier) { std::vector<AudioPlugin*>::iterator it = m_plugins.begin(); @@ -177,12 +177,12 @@ AudioPluginManager::removePlugin(const QString &identifier) return false; } -std::vector<QString> +std::vector<TQString> AudioPluginManager::getPluginNames() { awaitEnumeration(); - std::vector<QString> names; + std::vector<TQString> names; PluginIterator it = m_plugins.begin(); @@ -204,7 +204,7 @@ AudioPluginManager::getPlugin(int number) } int -AudioPluginManager::getPositionByIdentifier(QString identifier) +AudioPluginManager::getPositionByIdentifier(TQString identifier) { awaitEnumeration(); @@ -231,7 +231,7 @@ AudioPluginManager::getPositionByIdentifier(QString identifier) } AudioPlugin* -AudioPluginManager::getPluginByIdentifier(QString identifier) +AudioPluginManager::getPluginByIdentifier(TQString identifier) { awaitEnumeration(); @@ -292,12 +292,12 @@ AudioPluginManager::awaitEnumeration() void AudioPluginManager::fetchSampleRate() { - QCString replyType; - QByteArray replyData; + TQCString replyType; + TQByteArray replyData; if (rgapp->sequencerCall("getSampleRate()", replyType, replyData)) { - QDataStream streamIn(replyData, IO_ReadOnly); + TQDataStream streamIn(replyData, IO_ReadOnly); unsigned int result; streamIn >> result; m_sampleRate = result; |