summaryrefslogtreecommitdiffstats
path: root/src/document/RoseXmlHandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/document/RoseXmlHandler.cpp')
-rw-r--r--src/document/RoseXmlHandler.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/document/RoseXmlHandler.cpp b/src/document/RoseXmlHandler.cpp
index bd1ad0e..fe99128 100644
--- a/src/document/RoseXmlHandler.cpp
+++ b/src/document/RoseXmlHandler.cpp
@@ -148,7 +148,7 @@ bool ConfigurationXmlSubHandler::characters(const TQString& chars)
if (m_propertyType == "RealTime") {
Rosegarden::RealTime rt;
- int sepIdx = ch.find(',');
+ int sepIdx = ch.tqfind(',');
rt.sec = ch.left(sepIdx).toInt();
rt.nsec = ch.mid(sepIdx + 1).toInt();
@@ -298,8 +298,8 @@ RoseXmlHandler::startElement(const TQString& namespaceURI,
// dialog
//
if (isOperationCancelled()) {
- // Ideally, we'd throw here, but at this point Qt is in the stack
- // and Qt is very often compiled without exception support.
+ // Ideally, we'd throw here, but at this point TQt is in the stack
+ // and TQt is very often compiled without exception support.
//
m_cancelled = true;
return false;
@@ -439,7 +439,7 @@ RoseXmlHandler::startElement(const TQString& namespaceURI,
int minor = sminor.toInt();
if (major > RosegardenGUIDoc::FILE_FORMAT_VERSION_MAJOR) {
- m_errorString = i18n("This file was written by Rosegarden %1, and it uses\na different file format that cannot be read by this version.").arg(version);
+ m_errorString = i18n("This file was written by Rosegarden %1, and it uses\na different file format that cannot be read by this version.").tqarg(version);
return false;
}
@@ -449,7 +449,7 @@ RoseXmlHandler::startElement(const TQString& namespaceURI,
CurrentProgressDialog::freeze();
KStartupLogo::hideIfStillThere();
- KMessageBox::information(0, i18n("This file was written by Rosegarden %1, which is more recent than this version.\nThere may be some incompatibilities with the file format.").arg(version));
+ KMessageBox::information(0, i18n("This file was written by Rosegarden %1, which is more recent than this version.\nThere may be some incompatibilities with the file format.").tqarg(version));
CurrentProgressDialog::thaw();
}
@@ -755,7 +755,7 @@ RoseXmlHandler::startElement(const TQString& namespaceURI,
TQString presetLabelStr = atts.value("defaultLabel");
if (labelStr) {
- track->setPresetLabel(presetLabelStr);
+ track->setPresetLabel(presetLabelStr.ascii());
}
TQString clefStr = atts.value("defaultClef");
@@ -1046,7 +1046,7 @@ RoseXmlHandler::startElement(const TQString& namespaceURI,
do {
- FileLocateDialog fL((RosegardenGUIApp *)m_doc->parent(),
+ FileLocateDialog fL((RosegardenGUIApp *)m_doc->tqparent(),
file,
TQString(getAudioFileManager().getAudioPath().c_str()));
int result = fL.exec();
@@ -1740,7 +1740,7 @@ RoseXmlHandler::startElement(const TQString& namespaceURI,
} else {
m_plugin->setAssigned(true);
m_plugin->setBypass(bypassed);
- m_plugin->setIdentifier(plugin->getIdentifier().data());
+ m_plugin->setIdentifier(plugin->getIdentifier().ascii());
// std::cerr << "set identifier to plugin at position " << position << std::endl;
if (program != "") {
m_plugin->setProgram(program);
@@ -2190,7 +2190,7 @@ RoseXmlHandler::characters(const TQString& s)
return true;
}
-QString
+TQString
RoseXmlHandler::errorString()
{
return m_errorString;
@@ -2200,9 +2200,9 @@ bool
RoseXmlHandler::error(const TQXmlParseException& exception)
{
m_errorString = TQString("%1 at line %2, column %3")
- .arg(exception.message())
- .arg(exception.lineNumber())
- .arg(exception.columnNumber());
+ .tqarg(exception.message())
+ .tqarg(exception.lineNumber())
+ .tqarg(exception.columnNumber());
return TQXmlDefaultHandler::error( exception );
}
@@ -2210,9 +2210,9 @@ bool
RoseXmlHandler::fatalError(const TQXmlParseException& exception)
{
m_errorString = TQString("%1 at line %2, column %3")
- .arg(exception.message())
- .arg(exception.lineNumber())
- .arg(exception.columnNumber());
+ .tqarg(exception.message())
+ .tqarg(exception.lineNumber())
+ .tqarg(exception.columnNumber());
return TQXmlDefaultHandler::fatalError( exception );
}
@@ -2250,7 +2250,7 @@ RoseXmlHandler::addMIDIDevice(TQString name, bool createAtSequencer)
arg << (unsigned int)MidiDevice::Play;
if (!rgapp->sequencerCall("addDevice(int, unsigned int)", replyType, replyData, data)) {
- SEQMAN_DEBUG << "RoseXmlHandler::addMIDIDevice - "
+ SETQMAN_DEBUG << "RoseXmlHandler::addMIDIDevice - "
<< "can't call sequencer addDevice" << endl;
return ;
}
@@ -2259,18 +2259,18 @@ RoseXmlHandler::addMIDIDevice(TQString name, bool createAtSequencer)
TQDataStream reply(replyData, IO_ReadOnly);
reply >> deviceId;
} else {
- SEQMAN_DEBUG << "RoseXmlHandler::addMIDIDevice - "
+ SETQMAN_DEBUG << "RoseXmlHandler::addMIDIDevice - "
<< "got unknown returntype from addDevice()" << endl;
return ;
}
if (deviceId == Device::NO_DEVICE) {
- SEQMAN_DEBUG << "RoseXmlHandler::addMIDIDevice - "
+ SETQMAN_DEBUG << "RoseXmlHandler::addMIDIDevice - "
<< "sequencer addDevice failed" << endl;
return ;
}
- SEQMAN_DEBUG << "RoseXmlHandler::addMIDIDevice - "
+ SETQMAN_DEBUG << "RoseXmlHandler::addMIDIDevice - "
<< " added device " << deviceId << endl;
} else {
@@ -2298,7 +2298,7 @@ RoseXmlHandler::addMIDIDevice(TQString name, bool createAtSequencer)
void
RoseXmlHandler::skipToNextPlayDevice()
{
- SEQMAN_DEBUG << "RoseXmlHandler::skipToNextPlayDevice; m_deviceRunningId is " << m_deviceRunningId << endl;
+ SETQMAN_DEBUG << "RoseXmlHandler::skipToNextPlayDevice; m_deviceRunningId is " << m_deviceRunningId << endl;
for (DeviceList::iterator i = getStudio().getDevices()->begin();
i != getStudio().getDevices()->end(); ++i) {
@@ -2310,7 +2310,7 @@ RoseXmlHandler::skipToNextPlayDevice()
if (m_deviceRunningId == Device::NO_DEVICE ||
md->getId() > m_deviceRunningId) {
- SEQMAN_DEBUG << "RoseXmlHandler::skipToNextPlayDevice: found next device: id " << md->getId() << endl;
+ SETQMAN_DEBUG << "RoseXmlHandler::skipToNextPlayDevice: found next device: id " << md->getId() << endl;
m_device = md;
m_deviceRunningId = md->getId();
@@ -2319,7 +2319,7 @@ RoseXmlHandler::skipToNextPlayDevice()
}
}
- SEQMAN_DEBUG << "RoseXmlHandler::skipToNextPlayDevice: fresh out of devices" << endl;
+ SETQMAN_DEBUG << "RoseXmlHandler::skipToNextPlayDevice: fresh out of devices" << endl;
m_device = 0;
}
@@ -2327,7 +2327,7 @@ RoseXmlHandler::skipToNextPlayDevice()
void
RoseXmlHandler::setMIDIDeviceConnection(TQString connection)
{
- SEQMAN_DEBUG << "RoseXmlHandler::setMIDIDeviceConnection(" << connection << ")" << endl;
+ SETQMAN_DEBUG << "RoseXmlHandler::setMIDIDeviceConnection(" << connection << ")" << endl;
MidiDevice *md = dynamic_cast<MidiDevice *>(m_device);
if (!md)
@@ -2347,7 +2347,7 @@ RoseXmlHandler::setMIDIDeviceConnection(TQString connection)
void
RoseXmlHandler::setMIDIDeviceName(TQString name)
{
- SEQMAN_DEBUG << "RoseXmlHandler::setMIDIDeviceName(" << name << ")" << endl;
+ SETQMAN_DEBUG << "RoseXmlHandler::setMIDIDeviceName(" << name << ")" << endl;
MidiDevice *md = dynamic_cast<MidiDevice *>(m_device);
if (!md)