summaryrefslogtreecommitdiffstats
path: root/src/gui/studio/AudioPluginOSCGUI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/studio/AudioPluginOSCGUI.cpp')
-rw-r--r--src/gui/studio/AudioPluginOSCGUI.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/src/gui/studio/AudioPluginOSCGUI.cpp b/src/gui/studio/AudioPluginOSCGUI.cpp
index 106cbbe..d443acd 100644
--- a/src/gui/studio/AudioPluginOSCGUI.cpp
+++ b/src/gui/studio/AudioPluginOSCGUI.cpp
@@ -32,9 +32,9 @@
#include "base/Exception.h"
#include "sound/PluginIdentifier.h"
#include <kprocess.h>
-#include <qdir.h>
-#include <qfileinfo.h>
-#include <qstring.h>
+#include <tqdir.h>
+#include <tqfileinfo.h>
+#include <tqstring.h>
#include <algorithm>
@@ -42,22 +42,22 @@ namespace Rosegarden
{
AudioPluginOSCGUI::AudioPluginOSCGUI(AudioPluginInstance *instance,
- QString serverURL, QString friendlyName) :
+ TQString serverURL, TQString friendlyName) :
m_gui(0),
m_address(0),
m_basePath(""),
m_serverUrl(serverURL)
{
- QString identifier = strtoqstr(instance->getIdentifier());
+ TQString identifier = strtoqstr(instance->getIdentifier());
- QString filePath = getGUIFilePath(identifier);
+ TQString filePath = getGUIFilePath(identifier);
if (!filePath) {
throw Exception("No GUI found");
}
- QString type, soName, label;
+ TQString type, soName, label;
PluginIdentifier::parseIdentifier(identifier, type, soName, label);
- QFileInfo soInfo(soName);
+ TQFileInfo soInfo(soName);
// arguments: osc url, dll name, label, instance tag
@@ -87,29 +87,29 @@ AudioPluginOSCGUI::~AudioPluginOSCGUI()
}
QString
-AudioPluginOSCGUI::getGUIFilePath(QString identifier)
+AudioPluginOSCGUI::getGUIFilePath(TQString identifier)
{
- QString type, soName, label;
+ TQString type, soName, label;
PluginIdentifier::parseIdentifier(identifier, type, soName, label);
RG_DEBUG << "AudioPluginOSCGUI::getGUIFilePath(" << identifier << ")" << endl;
- QFileInfo soInfo(soName);
+ TQFileInfo soInfo(soName);
if (soInfo.isRelative()) {
//!!!
RG_DEBUG << "AudioPluginOSCGUI::AudioPluginOSCGUI: Unable to deal with relative .so path \"" << soName << "\" in identifier \"" << identifier << "\" yet" << endl;
throw Exception("Can't deal with relative .soname");
}
- QDir dir(soInfo.dir());
- QString fileBase(soInfo.baseName(TRUE));
+ TQDir dir(soInfo.dir());
+ TQString fileBase(soInfo.baseName(TRUE));
if (!dir.cd(fileBase)) {
RG_DEBUG << "AudioPluginOSCGUI::AudioPluginOSCGUI: No GUI subdir for plugin .so " << soName << endl;
throw Exception("No GUI subdir available");
}
- const QFileInfoList *list = dir.entryInfoList();
+ const TQFileInfoList *list = dir.entryInfoList();
// in order of preference:
const char *suffixes[] = { "_rg", "_kde", "_qt", "_gtk2", "_gtk", "_x11", "_gui"
@@ -120,8 +120,8 @@ AudioPluginOSCGUI::getGUIFilePath(QString identifier)
for (int fuzzy = 0; fuzzy <= 1; ++fuzzy) {
- QFileInfoListIterator i(*list);
- QFileInfo *info;
+ TQFileInfoListIterator i(*list);
+ TQFileInfo *info;
while ((info = i.current()) != 0) {
@@ -155,11 +155,11 @@ AudioPluginOSCGUI::getGUIFilePath(QString identifier)
}
}
- return QString();
+ return TQString();
}
void
-AudioPluginOSCGUI::setGUIUrl(QString url)
+AudioPluginOSCGUI::setGUIUrl(TQString url)
{
if (m_address)
lo_address_free(m_address);
@@ -180,7 +180,7 @@ AudioPluginOSCGUI::show()
if (!m_address)
return ;
- QString path = m_basePath + "/show";
+ TQString path = m_basePath + "/show";
lo_send(m_address, path, "");
}
@@ -189,7 +189,7 @@ AudioPluginOSCGUI::hide()
{
if (!m_address)
return ;
- QString path = m_basePath + "/hide";
+ TQString path = m_basePath + "/hide";
lo_send(m_address, path, "");
}
@@ -198,7 +198,7 @@ AudioPluginOSCGUI::quit()
{
if (!m_address)
return ;
- QString path = m_basePath + "/quit";
+ TQString path = m_basePath + "/quit";
lo_send(m_address, path, "");
}
@@ -207,7 +207,7 @@ AudioPluginOSCGUI::sendProgram(int bank, int program)
{
if (!m_address)
return ;
- QString path = m_basePath + "/program";
+ TQString path = m_basePath + "/program";
lo_send(m_address, path, "ii", bank, program);
}
@@ -216,16 +216,16 @@ AudioPluginOSCGUI::sendPortValue(int port, float value)
{
if (!m_address)
return ;
- QString path = m_basePath + "/control";
+ TQString path = m_basePath + "/control";
lo_send(m_address, path, "if", port, value);
}
void
-AudioPluginOSCGUI::sendConfiguration(QString key, QString value)
+AudioPluginOSCGUI::sendConfiguration(TQString key, TQString value)
{
if (!m_address)
return ;
- QString path = m_basePath + "/configure";
+ TQString path = m_basePath + "/configure";
lo_send(m_address, path, "ss", key.data(), value.data());
}