summaryrefslogtreecommitdiffstats
path: root/src/gui/studio/AudioPluginManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/studio/AudioPluginManager.cpp')
-rw-r--r--src/gui/studio/AudioPluginManager.cpp52
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 &copyright,
+ const TQString &label,
+ const TQString &author,
+ const TQString &copyright,
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;