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/commands/studio | |
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/commands/studio')
18 files changed, 51 insertions, 51 deletions
diff --git a/src/commands/studio/AddControlParameterCommand.cpp b/src/commands/studio/AddControlParameterCommand.cpp index 35ac62a..e5b4516 100644 --- a/src/commands/studio/AddControlParameterCommand.cpp +++ b/src/commands/studio/AddControlParameterCommand.cpp @@ -29,7 +29,7 @@ #include "base/Device.h" #include "base/MidiDevice.h" #include "base/Studio.h" -#include <qstring.h> +#include <tqstring.h> #include <iostream> diff --git a/src/commands/studio/AddControlParameterCommand.h b/src/commands/studio/AddControlParameterCommand.h index fa614ac..3cbf903 100644 --- a/src/commands/studio/AddControlParameterCommand.h +++ b/src/commands/studio/AddControlParameterCommand.h @@ -29,7 +29,7 @@ #include "base/ControlParameter.h" #include "base/Device.h" #include <kcommand.h> -#include <qstring.h> +#include <tqstring.h> #include <klocale.h> @@ -58,7 +58,7 @@ public: virtual void execute(); virtual void unexecute(); - static QString getGlobalName() { return i18n("&Add Control Parameter"); } + static TQString getGlobalName() { return i18n("&Add Control Parameter"); } protected: Studio *m_studio; diff --git a/src/commands/studio/CreateOrDeleteDeviceCommand.cpp b/src/commands/studio/CreateOrDeleteDeviceCommand.cpp index 48dc6c1..3933483 100644 --- a/src/commands/studio/CreateOrDeleteDeviceCommand.cpp +++ b/src/commands/studio/CreateOrDeleteDeviceCommand.cpp @@ -30,9 +30,9 @@ #include "base/Device.h" #include "base/MidiDevice.h" #include "base/Studio.h" -#include <qcstring.h> -#include <qdatastream.h> -#include <qstring.h> +#include <tqcstring.h> +#include <tqdatastream.h> +#include <tqstring.h> #include "gui/application/RosegardenApplication.h" @@ -74,10 +74,10 @@ CreateOrDeleteDeviceCommand::execute() m_deviceCreated = true; - QByteArray data; - QByteArray replyData; - QCString replyType; - QDataStream arg(data, IO_WriteOnly); + TQByteArray data; + TQByteArray replyData; + TQCString replyType; + TQDataStream arg(data, IO_WriteOnly); arg << (int)m_type; arg << (unsigned int)m_direction; @@ -89,7 +89,7 @@ CreateOrDeleteDeviceCommand::execute() return ; } - QDataStream reply(replyData, IO_ReadOnly); + TQDataStream reply(replyData, IO_ReadOnly); reply >> m_deviceId; if (m_deviceId == Device::NO_DEVICE) { @@ -105,7 +105,7 @@ CreateOrDeleteDeviceCommand::execute() arg << (unsigned int)m_deviceId; arg << strtoqstr(m_connection); - if (!rgapp->sequencerCall("setConnection(unsigned int, QString)", + if (!rgapp->sequencerCall("setConnection(unsigned int, TQString)", replyType, replyData, data)) { SEQMAN_DEBUG << "CreateDeviceCommand::execute - " << "failure in sequencer setConnection" << endl; @@ -131,10 +131,10 @@ CreateOrDeleteDeviceCommand::execute() // Delete - QByteArray data; - QByteArray replyData; - QCString replyType; - QDataStream arg(data, IO_WriteOnly); + TQByteArray data; + TQByteArray replyData; + TQCString replyType; + TQDataStream arg(data, IO_WriteOnly); if (m_deviceId == Device::NO_DEVICE) return ; diff --git a/src/commands/studio/CreateOrDeleteDeviceCommand.h b/src/commands/studio/CreateOrDeleteDeviceCommand.h index 2fe69a3..3db7b25 100644 --- a/src/commands/studio/CreateOrDeleteDeviceCommand.h +++ b/src/commands/studio/CreateOrDeleteDeviceCommand.h @@ -30,7 +30,7 @@ #include "base/MidiDevice.h" #include <string> #include <kcommand.h> -#include <qstring.h> +#include <tqstring.h> #include <klocale.h> @@ -64,7 +64,7 @@ public: CreateOrDeleteDeviceCommand(Studio *studio, DeviceId deviceId); - static QString getGlobalName(bool deletion) { + static TQString getGlobalName(bool deletion) { return (deletion ? i18n("Delete Device") : i18n("Create Device")); } diff --git a/src/commands/studio/ModifyControlParameterCommand.cpp b/src/commands/studio/ModifyControlParameterCommand.cpp index 5c8c1a2..f1913a8 100644 --- a/src/commands/studio/ModifyControlParameterCommand.cpp +++ b/src/commands/studio/ModifyControlParameterCommand.cpp @@ -29,7 +29,7 @@ #include "base/Device.h" #include "base/MidiDevice.h" #include "base/Studio.h" -#include <qstring.h> +#include <tqstring.h> #include <iostream> diff --git a/src/commands/studio/ModifyControlParameterCommand.h b/src/commands/studio/ModifyControlParameterCommand.h index cd705d6..1a32994 100644 --- a/src/commands/studio/ModifyControlParameterCommand.h +++ b/src/commands/studio/ModifyControlParameterCommand.h @@ -29,7 +29,7 @@ #include "base/ControlParameter.h" #include "base/Device.h" #include <kcommand.h> -#include <qstring.h> +#include <tqstring.h> #include <klocale.h> @@ -58,7 +58,7 @@ public: virtual void execute(); virtual void unexecute(); - static QString getGlobalName() { return i18n("&Modify Control Parameter"); } + static TQString getGlobalName() { return i18n("&Modify Control Parameter"); } protected: Studio *m_studio; diff --git a/src/commands/studio/ModifyDeviceCommand.cpp b/src/commands/studio/ModifyDeviceCommand.cpp index d3323ac..2cf02e0 100644 --- a/src/commands/studio/ModifyDeviceCommand.cpp +++ b/src/commands/studio/ModifyDeviceCommand.cpp @@ -28,7 +28,7 @@ #include "base/Device.h" #include "base/MidiDevice.h" #include "base/Studio.h" -#include <qstring.h> +#include <tqstring.h> #include <iostream> diff --git a/src/commands/studio/ModifyDeviceCommand.h b/src/commands/studio/ModifyDeviceCommand.h index f8f820e..f6c5289 100644 --- a/src/commands/studio/ModifyDeviceCommand.h +++ b/src/commands/studio/ModifyDeviceCommand.h @@ -30,7 +30,7 @@ #include "base/MidiDevice.h" #include <string> #include <kcommand.h> -#include <qstring.h> +#include <tqstring.h> #include <klocale.h> @@ -65,7 +65,7 @@ public: /// supersedes setBankList() and setProgramList() void clearBankAndProgramList() { m_clearBankAndProgramList = true; } - static QString getGlobalName() { return i18n("Modify &MIDI Bank"); } + static TQString getGlobalName() { return i18n("Modify &MIDI Bank"); } virtual void execute(); virtual void unexecute(); diff --git a/src/commands/studio/ModifyDeviceMappingCommand.cpp b/src/commands/studio/ModifyDeviceMappingCommand.cpp index 6f02d8d..f37fd3a 100644 --- a/src/commands/studio/ModifyDeviceMappingCommand.cpp +++ b/src/commands/studio/ModifyDeviceMappingCommand.cpp @@ -33,7 +33,7 @@ #include "base/Studio.h" #include "base/Track.h" #include "document/RosegardenGUIDoc.h" -#include <qstring.h> +#include <tqstring.h> namespace Rosegarden diff --git a/src/commands/studio/ModifyDeviceMappingCommand.h b/src/commands/studio/ModifyDeviceMappingCommand.h index 150275d..824b07e 100644 --- a/src/commands/studio/ModifyDeviceMappingCommand.h +++ b/src/commands/studio/ModifyDeviceMappingCommand.h @@ -29,7 +29,7 @@ #include "base/Device.h" #include "base/Track.h" #include <kcommand.h> -#include <qstring.h> +#include <tqstring.h> #include <vector> #include <klocale.h> @@ -52,7 +52,7 @@ public: DeviceId fromDevice, DeviceId toDevice); - static QString getGlobalName() { return i18n("Modify &Device Mapping"); } + static TQString getGlobalName() { return i18n("Modify &Device Mapping"); } virtual void execute(); virtual void unexecute(); diff --git a/src/commands/studio/ModifyInstrumentMappingCommand.cpp b/src/commands/studio/ModifyInstrumentMappingCommand.cpp index e6369b6..87c5785 100644 --- a/src/commands/studio/ModifyInstrumentMappingCommand.cpp +++ b/src/commands/studio/ModifyInstrumentMappingCommand.cpp @@ -30,7 +30,7 @@ #include "base/Studio.h" #include "base/Track.h" #include "document/RosegardenGUIDoc.h" -#include <qstring.h> +#include <tqstring.h> namespace Rosegarden diff --git a/src/commands/studio/ModifyInstrumentMappingCommand.h b/src/commands/studio/ModifyInstrumentMappingCommand.h index 224459b..f482008 100644 --- a/src/commands/studio/ModifyInstrumentMappingCommand.h +++ b/src/commands/studio/ModifyInstrumentMappingCommand.h @@ -29,7 +29,7 @@ #include "base/MidiProgram.h" #include "base/Track.h" #include <kcommand.h> -#include <qstring.h> +#include <tqstring.h> #include <vector> #include <klocale.h> @@ -52,7 +52,7 @@ public: InstrumentId fromInstrument, InstrumentId toInstrument); - static QString getGlobalName() { return i18n("Modify &Instrument Mapping"); } + static TQString getGlobalName() { return i18n("Modify &Instrument Mapping"); } virtual void execute(); virtual void unexecute(); diff --git a/src/commands/studio/ReconnectDeviceCommand.cpp b/src/commands/studio/ReconnectDeviceCommand.cpp index 6d40ede..3d28185 100644 --- a/src/commands/studio/ReconnectDeviceCommand.cpp +++ b/src/commands/studio/ReconnectDeviceCommand.cpp @@ -29,9 +29,9 @@ #include "misc/Debug.h" #include "base/Device.h" #include "base/Studio.h" -#include <qcstring.h> -#include <qdatastream.h> -#include <qstring.h> +#include <tqcstring.h> +#include <tqdatastream.h> +#include <tqstring.h> #include "gui/application/RosegardenApplication.h" @@ -46,15 +46,15 @@ ReconnectDeviceCommand::execute() if (device) { m_oldConnection = device->getConnection(); - QByteArray data; - QByteArray replyData; - QCString replyType; - QDataStream arg(data, IO_WriteOnly); + TQByteArray data; + TQByteArray replyData; + TQCString replyType; + TQDataStream arg(data, IO_WriteOnly); arg << (unsigned int)m_deviceId; arg << strtoqstr(m_newConnection); - if (!rgapp->sequencerCall("setConnection(unsigned int, QString)", + if (!rgapp->sequencerCall("setConnection(unsigned int, TQString)", replyType, replyData, data)) { SEQMAN_DEBUG << "ReconnectDeviceCommand::execute - " << "failure in sequencer setConnection" << endl; @@ -74,15 +74,15 @@ ReconnectDeviceCommand::unexecute() if (device) { - QByteArray data; - QByteArray replyData; - QCString replyType; - QDataStream arg(data, IO_WriteOnly); + TQByteArray data; + TQByteArray replyData; + TQCString replyType; + TQDataStream arg(data, IO_WriteOnly); arg << (unsigned int)m_deviceId; arg << strtoqstr(m_oldConnection); - if (!rgapp->sequencerCall("setConnection(unsigned int, QString)", + if (!rgapp->sequencerCall("setConnection(unsigned int, TQString)", replyType, replyData, data)) { SEQMAN_DEBUG << "ReconnectDeviceCommand::unexecute - " << "failure in sequencer setConnection" << endl; diff --git a/src/commands/studio/ReconnectDeviceCommand.h b/src/commands/studio/ReconnectDeviceCommand.h index 910bdbf..ba445a6 100644 --- a/src/commands/studio/ReconnectDeviceCommand.h +++ b/src/commands/studio/ReconnectDeviceCommand.h @@ -29,7 +29,7 @@ #include "base/Device.h" #include <string> #include <kcommand.h> -#include <qstring.h> +#include <tqstring.h> #include <klocale.h> @@ -52,7 +52,7 @@ public: m_deviceId(deviceId), m_newConnection(newConnection) { } - static QString getGlobalName() { return i18n("Reconnect Device"); } + static TQString getGlobalName() { return i18n("Reconnect Device"); } virtual void execute(); virtual void unexecute(); diff --git a/src/commands/studio/RemoveControlParameterCommand.cpp b/src/commands/studio/RemoveControlParameterCommand.cpp index 5f596b5..a18a28d 100644 --- a/src/commands/studio/RemoveControlParameterCommand.cpp +++ b/src/commands/studio/RemoveControlParameterCommand.cpp @@ -29,7 +29,7 @@ #include "base/Device.h" #include "base/MidiDevice.h" #include "base/Studio.h" -#include <qstring.h> +#include <tqstring.h> #include <iostream> diff --git a/src/commands/studio/RemoveControlParameterCommand.h b/src/commands/studio/RemoveControlParameterCommand.h index 3143739..9b8f82f 100644 --- a/src/commands/studio/RemoveControlParameterCommand.h +++ b/src/commands/studio/RemoveControlParameterCommand.h @@ -29,7 +29,7 @@ #include "base/ControlParameter.h" #include "base/Device.h" #include <kcommand.h> -#include <qstring.h> +#include <tqstring.h> #include <klocale.h> @@ -57,7 +57,7 @@ public: virtual void execute(); virtual void unexecute(); - static QString getGlobalName() { return i18n("&Remove Control Parameter"); } + static TQString getGlobalName() { return i18n("&Remove Control Parameter"); } protected: Studio *m_studio; diff --git a/src/commands/studio/RenameDeviceCommand.cpp b/src/commands/studio/RenameDeviceCommand.cpp index 1d6c382..e3b1f61 100644 --- a/src/commands/studio/RenameDeviceCommand.cpp +++ b/src/commands/studio/RenameDeviceCommand.cpp @@ -27,7 +27,7 @@ #include "base/Device.h" #include "base/Studio.h" -#include <qstring.h> +#include <tqstring.h> namespace Rosegarden diff --git a/src/commands/studio/RenameDeviceCommand.h b/src/commands/studio/RenameDeviceCommand.h index d767bca..8e4f1f4 100644 --- a/src/commands/studio/RenameDeviceCommand.h +++ b/src/commands/studio/RenameDeviceCommand.h @@ -29,7 +29,7 @@ #include "base/Device.h" #include <string> #include <kcommand.h> -#include <qstring.h> +#include <tqstring.h> #include <klocale.h> @@ -52,7 +52,7 @@ public: m_deviceId(deviceId), m_name(name) { } - static QString getGlobalName() { return i18n("Rename Device"); } + static TQString getGlobalName() { return i18n("Rename Device"); } virtual void execute(); virtual void unexecute(); |