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/AudioPluginOSCGUIManager.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/AudioPluginOSCGUIManager.cpp')
-rw-r--r-- | src/gui/studio/AudioPluginOSCGUIManager.cpp | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/src/gui/studio/AudioPluginOSCGUIManager.cpp b/src/gui/studio/AudioPluginOSCGUIManager.cpp index 54c23d7..e3d61d7 100644 --- a/src/gui/studio/AudioPluginOSCGUIManager.cpp +++ b/src/gui/studio/AudioPluginOSCGUIManager.cpp @@ -45,7 +45,7 @@ #include "sound/PluginIdentifier.h" #include "StudioControl.h" #include "TimerCallbackAssistant.h" -#include <qstring.h> +#include <tqstring.h> namespace Rosegarden @@ -64,7 +64,7 @@ static int osc_message_handler(const char *path, const char *types, lo_arg **arg InstrumentId instrument; int position; - QString method; + TQString method; if (!manager->parseOSCPath(path, instrument, position, method)) { return 1; @@ -144,7 +144,7 @@ AudioPluginOSCGUIManager::hasGUI(InstrumentId instrument, int position) if (!pluginInstance) return false; try { - QString filePath = AudioPluginOSCGUI::getGUIFilePath + TQString filePath = AudioPluginOSCGUI::getGUIFilePath (strtoqstr(pluginInstance->getIdentifier())); return (filePath && filePath != ""); } catch (Exception e) { // that's OK @@ -306,7 +306,7 @@ AudioPluginOSCGUIManager::updatePort(InstrumentId instrument, int position, void AudioPluginOSCGUIManager::updateConfiguration(InstrumentId instrument, int position, - QString key) + TQString key) { RG_DEBUG << "AudioPluginOSCGUIManager::updateConfiguration(" << instrument << "," << position << "," << key << ")" << endl; @@ -321,7 +321,7 @@ AudioPluginOSCGUIManager::updateConfiguration(InstrumentId instrument, int posit AudioPluginInstance *pluginInstance = container->getPlugin(position); if (!pluginInstance) return; - QString value = strtoqstr(pluginInstance->getConfigurationValue(qstrtostr(key))); + TQString value = strtoqstr(pluginInstance->getConfigurationValue(qstrtostr(key))); RG_DEBUG << "AudioPluginOSCGUIManager::updatePort(" << instrument << "," << position << "," << key << "): value " << value << endl; @@ -331,20 +331,20 @@ AudioPluginOSCGUIManager::updateConfiguration(InstrumentId instrument, int posit QString AudioPluginOSCGUIManager::getOSCUrl(InstrumentId instrument, int position, - QString identifier) + TQString identifier) { // OSC URL will be of the form // osc.udp://localhost:54343/plugin/dssi/<instrument>/<position>/<label> // where <position> will be "synth" for synth plugins - QString type, soName, label; + TQString type, soName, label; PluginIdentifier::parseIdentifier(identifier, type, soName, label); - QString baseUrl = lo_server_thread_get_url(m_serverThread); + TQString baseUrl = lo_server_thread_get_url(m_serverThread); if (!baseUrl.endsWith("/")) baseUrl += '/'; - QString url = QString("%1%2/%3/%4/%5/%6") + TQString url = TQString("%1%2/%3/%4/%5/%6") .arg(baseUrl) .arg("plugin") .arg(type) @@ -362,14 +362,14 @@ AudioPluginOSCGUIManager::getOSCUrl(InstrumentId instrument, int position, } bool -AudioPluginOSCGUIManager::parseOSCPath(QString path, InstrumentId &instrument, - int &position, QString &method) +AudioPluginOSCGUIManager::parseOSCPath(TQString path, InstrumentId &instrument, + int &position, TQString &method) { RG_DEBUG << "AudioPluginOSCGUIManager::parseOSCPath(" << path << ")" << endl; if (!m_studio) return false; - QString pluginStr("/plugin/"); + TQString pluginStr("/plugin/"); if (path.startsWith("//")) { path = path.right(path.length() - 1); @@ -383,10 +383,10 @@ AudioPluginOSCGUIManager::parseOSCPath(QString path, InstrumentId &instrument, path = path.right(path.length() - pluginStr.length()); - QString type = path.section('/', 0, 0); - QString instrumentStr = path.section('/', 1, 1); - QString positionStr = path.section('/', 2, 2); - QString label = path.section('/', 3, -2); + TQString type = path.section('/', 0, 0); + TQString instrumentStr = path.section('/', 1, 1); + TQString positionStr = path.section('/', 2, 2); + TQString label = path.section('/', 3, -2); method = path.section('/', -1, -1); if (!instrumentStr || !positionStr) { @@ -418,8 +418,8 @@ AudioPluginOSCGUIManager::parseOSCPath(QString path, InstrumentId &instrument, return false; } - QString identifier = strtoqstr(pluginInstance->getIdentifier()); - QString iType, iSoName, iLabel; + TQString identifier = strtoqstr(pluginInstance->getIdentifier()); + TQString iType, iSoName, iLabel; PluginIdentifier::parseIdentifier(identifier, iType, iSoName, iLabel); if (iLabel != label) { RG_DEBUG << "AudioPluginOSCGUIManager::parseOSCPath: wrong label for plugin" @@ -437,7 +437,7 @@ AudioPluginOSCGUIManager::parseOSCPath(QString path, InstrumentId &instrument, QString AudioPluginOSCGUIManager::getFriendlyName(InstrumentId instrument, int position, - QString) + TQString) { PluginContainer *container = m_studio->getContainerById(instrument); if (!container) @@ -498,7 +498,7 @@ AudioPluginOSCGUIManager::dispatch() // These generally call back on the RosegardenGUIApp. We'd // like to emit signals, but making AudioPluginOSCGUIManager a - // QObject is problematic if it's only conditionally compiled. + // TQObject is problematic if it's only conditionally compiled. if (method == "control") { @@ -547,7 +547,7 @@ AudioPluginOSCGUIManager::dispatch() } int program = arg->i; - QString programName = StudioControl::getPluginProgram + TQString programName = StudioControl::getPluginProgram (pluginInstance->getMappedId(), bank, program); m_app->slotChangePluginProgram(instrument, position, programName); @@ -565,7 +565,7 @@ AudioPluginOSCGUIManager::dispatch() << endl; goto done; } - QString url = &arg->s; + TQString url = &arg->s; if (!gui) { RG_DEBUG << "AudioPluginOSCGUIManager: no GUI for update method" @@ -579,8 +579,8 @@ AudioPluginOSCGUIManager::dispatch() pluginInstance->getConfiguration().begin(); i != pluginInstance->getConfiguration().end(); ++i) { - QString key = strtoqstr(i->first); - QString value = strtoqstr(i->second); + TQString key = strtoqstr(i->first); + TQString value = strtoqstr(i->second); #ifdef DSSI_PROJECT_DIRECTORY_KEY @@ -627,14 +627,14 @@ AudioPluginOSCGUIManager::dispatch() << endl; goto done; } - QString key = &arg->s; + TQString key = &arg->s; if (!(arg = message->getArg(1, type)) || type != 's') { RG_DEBUG << "AudioPluginOSCGUIManager: failed to get configure value" << endl; goto done; } - QString value = &arg->s; + TQString value = &arg->s; #ifdef DSSI_RESERVED_CONFIGURE_PREFIX |