summaryrefslogtreecommitdiffstats
path: root/src/gui/studio
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
commit11f31c37e5fa4889d9989f10272f44845449cb7b (patch)
tree4383da04a76c497950d957fc6120b0fd0d9082c2 /src/gui/studio
parent832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff)
downloadrosegarden-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')
-rw-r--r--src/gui/studio/AudioMixerWindow.cpp304
-rw-r--r--src/gui/studio/AudioMixerWindow.h36
-rw-r--r--src/gui/studio/AudioPlugin.cpp18
-rw-r--r--src/gui/studio/AudioPlugin.h48
-rw-r--r--src/gui/studio/AudioPluginManager.cpp52
-rw-r--r--src/gui/studio/AudioPluginManager.h28
-rw-r--r--src/gui/studio/AudioPluginOSCGUI.cpp50
-rw-r--r--src/gui/studio/AudioPluginOSCGUI.h14
-rw-r--r--src/gui/studio/AudioPluginOSCGUIManager.cpp52
-rw-r--r--src/gui/studio/AudioPluginOSCGUIManager.h18
-rw-r--r--src/gui/studio/BankEditorDialog.cpp262
-rw-r--r--src/gui/studio/BankEditorDialog.h60
-rw-r--r--src/gui/studio/ChangeRecordDeviceCommand.cpp4
-rw-r--r--src/gui/studio/DeviceEditorDialog.cpp96
-rw-r--r--src/gui/studio/DeviceEditorDialog.h16
-rw-r--r--src/gui/studio/DeviceManagerDialog.cpp228
-rw-r--r--src/gui/studio/DeviceManagerDialog.h40
-rw-r--r--src/gui/studio/MidiBankListViewItem.cpp14
-rw-r--r--src/gui/studio/MidiBankListViewItem.h8
-rw-r--r--src/gui/studio/MidiDeviceListViewItem.cpp18
-rw-r--r--src/gui/studio/MidiDeviceListViewItem.h10
-rw-r--r--src/gui/studio/MidiKeyMapListViewItem.cpp8
-rw-r--r--src/gui/studio/MidiKeyMapListViewItem.h12
-rw-r--r--src/gui/studio/MidiKeyMappingEditor.cpp40
-rw-r--r--src/gui/studio/MidiKeyMappingEditor.h14
-rw-r--r--src/gui/studio/MidiMixerVUMeter.cpp4
-rw-r--r--src/gui/studio/MidiMixerVUMeter.h4
-rw-r--r--src/gui/studio/MidiMixerWindow.cpp106
-rw-r--r--src/gui/studio/MidiMixerWindow.h18
-rw-r--r--src/gui/studio/MidiProgramsEditor.cpp136
-rw-r--r--src/gui/studio/MidiProgramsEditor.h26
-rw-r--r--src/gui/studio/MixerWindow.cpp10
-rw-r--r--src/gui/studio/MixerWindow.h14
-rw-r--r--src/gui/studio/NameSetEditor.cpp94
-rw-r--r--src/gui/studio/NameSetEditor.h44
-rw-r--r--src/gui/studio/RemapInstrumentDialog.cpp34
-rw-r--r--src/gui/studio/RemapInstrumentDialog.h14
-rw-r--r--src/gui/studio/StudioControl.cpp158
-rw-r--r--src/gui/studio/StudioControl.h8
-rw-r--r--src/gui/studio/SynthPluginManagerDialog.cpp66
-rw-r--r--src/gui/studio/SynthPluginManagerDialog.h16
-rw-r--r--src/gui/studio/TimerCallbackAssistant.cpp10
-rw-r--r--src/gui/studio/TimerCallbackAssistant.h4
43 files changed, 1108 insertions, 1108 deletions
diff --git a/src/gui/studio/AudioMixerWindow.cpp b/src/gui/studio/AudioMixerWindow.cpp
index e8d09b3..2b7ad0e 100644
--- a/src/gui/studio/AudioMixerWindow.cpp
+++ b/src/gui/studio/AudioMixerWindow.cpp
@@ -24,7 +24,7 @@
#include "AudioMixerWindow.h"
-#include <qlayout.h>
+#include <tqlayout.h>
#include <kapplication.h>
#include "AudioPlugin.h"
@@ -60,21 +60,21 @@
#include <kglobal.h>
#include <kmainwindow.h>
#include <kstdaction.h>
-#include <qaccel.h>
-#include <qcolor.h>
-#include <qfont.h>
-#include <qframe.h>
-#include <qhbox.h>
-#include <qiconset.h>
-#include <qlabel.h>
-#include <qobject.h>
-#include <qpalette.h>
-#include <qpixmap.h>
-#include <qpushbutton.h>
-#include <qstring.h>
-#include <qtooltip.h>
-#include <qvbox.h>
-#include <qwidget.h>
+#include <tqaccel.h>
+#include <tqcolor.h>
+#include <tqfont.h>
+#include <tqframe.h>
+#include <tqhbox.h>
+#include <tqiconset.h>
+#include <tqlabel.h>
+#include <tqobject.h>
+#include <tqpalette.h>
+#include <tqpixmap.h>
+#include <tqpushbutton.h>
+#include <tqstring.h>
+#include <tqtooltip.h>
+#include <tqvbox.h>
+#include <tqwidget.h>
namespace Rosegarden
@@ -89,7 +89,7 @@ static const unsigned int MIXER_SHOW_UNASSIGNED_FADERS = 1 << 3;
static const unsigned int MIXER_OMIT_SYNTH_FADERS = 1 << 4;
-AudioMixerWindow::AudioMixerWindow(QWidget *parent,
+AudioMixerWindow::AudioMixerWindow(TQWidget *parent,
RosegardenGUIDoc *document):
MixerWindow(parent, document),
m_mainBox (0)
@@ -97,83 +97,83 @@ AudioMixerWindow::AudioMixerWindow(QWidget *parent,
populate();
KStdAction::close(this,
- SLOT(slotClose()),
+ TQT_SLOT(slotClose()),
actionCollection());
- QIconSet icon = QIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ TQIconSet icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-play")));
KAction *play = new KAction(i18n("&Play"), icon, Key_Enter, this,
- SIGNAL(play()), actionCollection(), "play");
+ TQT_SIGNAL(play()), actionCollection(), "play");
// Alternative shortcut for Play
KShortcut playShortcut = play->shortcut();
playShortcut.append( KKey(Key_Return + CTRL) );
play->setShortcut(playShortcut);
- icon = QIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-stop")));
new KAction(i18n("&Stop"), icon, Key_Insert, this,
- SIGNAL(stop()), actionCollection(), "stop");
+ TQT_SIGNAL(stop()), actionCollection(), "stop");
- icon = QIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-rewind")));
new KAction(i18n("Re&wind"), icon, Key_End, this,
- SIGNAL(rewindPlayback()), actionCollection(),
+ TQT_SIGNAL(rewindPlayback()), actionCollection(),
"playback_pointer_back_bar");
- icon = QIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-ffwd")));
new KAction(i18n("&Fast Forward"), icon, Key_PageDown, this,
- SIGNAL(fastForwardPlayback()), actionCollection(),
+ TQT_SIGNAL(fastForwardPlayback()), actionCollection(),
"playback_pointer_forward_bar");
- icon = QIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-rewind-end")));
new KAction(i18n("Rewind to &Beginning"), icon, 0, this,
- SIGNAL(rewindPlaybackToBeginning()), actionCollection(),
+ TQT_SIGNAL(rewindPlaybackToBeginning()), actionCollection(),
"playback_pointer_start");
- icon = QIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-ffwd-end")));
new KAction(i18n("Fast Forward to &End"), icon, 0, this,
- SIGNAL(fastForwardPlaybackToEnd()), actionCollection(),
+ TQT_SIGNAL(fastForwardPlaybackToEnd()), actionCollection(),
"playback_pointer_end");
- icon = QIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-record")));
new KAction(i18n("&Record"), icon, 0, this,
- SIGNAL(record()), actionCollection(),
+ TQT_SIGNAL(record()), actionCollection(),
"record");
- icon = QIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-panic")));
new KAction(i18n("Panic"), icon, Key_P + CTRL + ALT, this,
- SIGNAL(panic()), actionCollection(),
+ TQT_SIGNAL(panic()), actionCollection(),
"panic");
unsigned int mixerOptions = m_studio->getMixerDisplayOptions();
(new KToggleAction(i18n("Show Audio &Faders"), 0, this,
- SLOT(slotToggleFaders()), actionCollection(),
+ TQT_SLOT(slotToggleFaders()), actionCollection(),
"show_audio_faders"))->setChecked
(!(mixerOptions & MIXER_OMIT_FADERS));
(new KToggleAction(i18n("Show Synth &Faders"), 0, this,
- SLOT(slotToggleSynthFaders()), actionCollection(),
+ TQT_SLOT(slotToggleSynthFaders()), actionCollection(),
"show_synth_faders"))->setChecked
(!(mixerOptions & MIXER_OMIT_SYNTH_FADERS));
(new KToggleAction(i18n("Show &Submasters"), 0, this,
- SLOT(slotToggleSubmasters()), actionCollection(),
+ TQT_SLOT(slotToggleSubmasters()), actionCollection(),
"show_audio_submasters"))->setChecked
(!(mixerOptions & MIXER_OMIT_SUBMASTERS));
(new KToggleAction(i18n("Show &Plugin Buttons"), 0, this,
- SLOT(slotTogglePluginButtons()), actionCollection(),
+ TQT_SLOT(slotTogglePluginButtons()), actionCollection(),
"show_plugin_buttons"))->setChecked
(!(mixerOptions & MIXER_OMIT_PLUGINS));
(new KToggleAction(i18n("Show &Unassigned Faders"), 0, this,
- SLOT(slotToggleUnassignedFaders()), actionCollection(),
+ TQT_SLOT(slotToggleUnassignedFaders()), actionCollection(),
"show_unassigned_faders"))->setChecked
(mixerOptions & MIXER_SHOW_UNASSIGNED_FADERS);
@@ -183,8 +183,8 @@ AudioMixerWindow::AudioMixerWindow(QWidget *parent,
action =
new KRadioAction(i18n("1 Input", "%n Inputs", i),
0, this,
- SLOT(slotSetInputCountFromAction()), actionCollection(),
- QString("inputs_%1").arg(i));
+ TQT_SLOT(slotSetInputCountFromAction()), actionCollection(),
+ TQString("inputs_%1").arg(i));
action->setExclusiveGroup("inputs");
if (i == int(m_studio->getRecordIns().size()))
action->setChecked(true);
@@ -193,8 +193,8 @@ AudioMixerWindow::AudioMixerWindow(QWidget *parent,
action = new KRadioAction
(i18n("No Submasters"),
0, this,
- SLOT(slotSetSubmasterCountFromAction()), actionCollection(),
- QString("submasters_0"));
+ TQT_SLOT(slotSetSubmasterCountFromAction()), actionCollection(),
+ TQString("submasters_0"));
action->setExclusiveGroup("submasters");
action->setChecked(true);
@@ -202,8 +202,8 @@ AudioMixerWindow::AudioMixerWindow(QWidget *parent,
action = new KRadioAction
(i18n("1 Submaster", "%n Submasters", i),
0, this,
- SLOT(slotSetSubmasterCountFromAction()), actionCollection(),
- QString("submasters_%1").arg(i));
+ TQT_SLOT(slotSetSubmasterCountFromAction()), actionCollection(),
+ TQString("submasters_%1").arg(i));
action->setExclusiveGroup("submasters");
if (i == int(m_studio->getBusses().size()) - 1)
action->setChecked(true);
@@ -250,30 +250,30 @@ AudioMixerWindow::populate()
} else {
- m_surroundBox = new QHBox(this);
+ m_surroundBox = new TQHBox(this);
setCentralWidget(m_surroundBox);
}
- QFont font;
+ TQFont font;
font.setPointSize(font.pointSize() * 8 / 10);
font.setBold(false);
setFont(font);
- QFont boldFont(font);
+ TQFont boldFont(font);
boldFont.setBold(true);
- m_mainBox = new QFrame(m_surroundBox);
+ m_mainBox = new TQFrame(m_surroundBox);
InstrumentList instruments = m_studio->getPresentationInstruments();
BussList busses = m_studio->getBusses();
- QString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/");
- m_monoPixmap.load(QString("%1/misc/mono.xpm").arg(pixmapDir));
- m_stereoPixmap.load(QString("%1/misc/stereo.xpm").arg(pixmapDir));
+ TQString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/");
+ m_monoPixmap.load(TQString("%1/misc/mono.xpm").arg(pixmapDir));
+ m_stereoPixmap.load(TQString("%1/misc/stereo.xpm").arg(pixmapDir));
// Total cols: is 2 for each fader, submaster or master, plus 1
// for each spacer.
- QGridLayout *mainLayout = new QGridLayout
+ TQGridLayout *mainLayout = new QGridLayout
(m_mainBox, (instruments.size() + busses.size()) * 3, 7);
setCaption(i18n("Audio Mixer"));
@@ -307,7 +307,7 @@ AudioMixerWindow::populate()
AudioRouteMenu::In,
AudioRouteMenu::Compact,
m_studio, *i);
- QToolTip::add
+ TQToolTip::add
(rec.m_input->getWidget(), i18n("Record input source"));
rec.m_input->getWidget()->setMaximumWidth(45);
} else {
@@ -318,7 +318,7 @@ AudioMixerWindow::populate()
AudioRouteMenu::Out,
AudioRouteMenu::Compact,
m_studio, *i);
- QToolTip::add
+ TQToolTip::add
(rec.m_output->getWidget(), i18n("Output destination"));
rec.m_output->getWidget()->setMaximumWidth(45);
@@ -332,7 +332,7 @@ AudioMixerWindow::populate()
rec.m_pan->setKnobColour(GUIPalette::getColour(GUIPalette::RotaryPastelYellow));
}
- QToolTip::add
+ TQToolTip::add
(rec.m_pan, i18n("Pan"));
rec.m_fader = new Fader
@@ -341,69 +341,69 @@ AudioMixerWindow::populate()
(m_mainBox, VUMeter::AudioPeakHoldIECLong, true, rec.m_input != 0,
20, 240);
- QToolTip::add
+ TQToolTip::add
(rec.m_fader, i18n("Audio level"));
- QToolTip::add
+ TQToolTip::add
(rec.m_meter, i18n("Audio level"));
- rec.m_stereoButton = new QPushButton(m_mainBox);
+ rec.m_stereoButton = new TQPushButton(m_mainBox);
rec.m_stereoButton->setPixmap(m_monoPixmap);
rec.m_stereoButton->setFixedSize(20, 20);
rec.m_stereoButton->setFlat(true);
rec.m_stereoness = false;
- QToolTip::add
+ TQToolTip::add
(rec.m_stereoButton, i18n("Mono or stereo"));
- rec.m_muteButton = new QPushButton(m_mainBox);
+ rec.m_muteButton = new TQPushButton(m_mainBox);
rec.m_muteButton->setText("M");
rec.m_muteButton->setToggleButton(true);
rec.m_muteButton->setFixedWidth(rec.m_stereoButton->width());
rec.m_muteButton->setFixedHeight(rec.m_stereoButton->height());
rec.m_muteButton->setFlat(true);
- QToolTip::add
+ TQToolTip::add
(rec.m_muteButton, i18n("Mute"));
- rec.m_soloButton = new QPushButton(m_mainBox);
+ rec.m_soloButton = new TQPushButton(m_mainBox);
rec.m_soloButton->setText("S");
rec.m_soloButton->setToggleButton(true);
rec.m_soloButton->setFixedWidth(rec.m_stereoButton->width());
rec.m_soloButton->setFixedHeight(rec.m_stereoButton->height());
rec.m_soloButton->setFlat(true);
- QToolTip::add
+ TQToolTip::add
(rec.m_soloButton, i18n("Solo"));
- rec.m_recordButton = new QPushButton(m_mainBox);
+ rec.m_recordButton = new TQPushButton(m_mainBox);
rec.m_recordButton->setText("R");
rec.m_recordButton->setToggleButton(true);
rec.m_recordButton->setFixedWidth(rec.m_stereoButton->width());
rec.m_recordButton->setFixedHeight(rec.m_stereoButton->height());
rec.m_recordButton->setFlat(true);
- QToolTip::add
+ TQToolTip::add
(rec.m_recordButton, i18n("Arm recording"));
- rec.m_pluginBox = new QVBox(m_mainBox);
+ rec.m_pluginBox = new TQVBox(m_mainBox);
for (int p = 0; p < 5; ++p) {
- QPushButton *plugin = new QPushButton(rec.m_pluginBox, "pluginButton");
+ TQPushButton *plugin = new TQPushButton(rec.m_pluginBox, "pluginButton");
plugin->setText(i18n("<none>"));
plugin->setMaximumWidth(45);
- QToolTip::add
+ TQToolTip::add
(plugin, i18n("Audio plugin button"));
rec.m_plugins.push_back(plugin);
- connect(plugin, SIGNAL(clicked()),
- this, SLOT(slotSelectPlugin()));
+ connect(plugin, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotSelectPlugin()));
}
- QLabel *idLabel;
- QString idString;
+ TQLabel *idLabel;
+ TQString idString;
if ((*i)->getType() == Instrument::Audio) {
idString = i18n("Audio %1").arg((*i)->getId() -
AudioInstrumentBase + 1);
- idLabel = new QLabel(idString, m_mainBox, "audioIdLabel");
+ idLabel = new TQLabel(idString, m_mainBox, "audioIdLabel");
} else {
idString = i18n("Synth %1").arg((*i)->getId() -
SoftSynthInstrumentBase + 1);
- idLabel = new QLabel(idString, m_mainBox, "synthIdLabel");
+ idLabel = new TQLabel(idString, m_mainBox, "synthIdLabel");
}
idLabel->setFont(boldFont);
@@ -443,34 +443,34 @@ AudioMixerWindow::populate()
updatePluginButtons((*i)->getId());
if (rec.m_input) {
- connect(rec.m_input, SIGNAL(changed()),
- this, SLOT(slotInputChanged()));
+ connect(rec.m_input, TQT_SIGNAL(changed()),
+ this, TQT_SLOT(slotInputChanged()));
}
- connect(rec.m_output, SIGNAL(changed()),
- this, SLOT(slotOutputChanged()));
+ connect(rec.m_output, TQT_SIGNAL(changed()),
+ this, TQT_SLOT(slotOutputChanged()));
- connect(rec.m_fader, SIGNAL(faderChanged(float)),
- this, SLOT(slotFaderLevelChanged(float)));
+ connect(rec.m_fader, TQT_SIGNAL(faderChanged(float)),
+ this, TQT_SLOT(slotFaderLevelChanged(float)));
- connect(rec.m_pan, SIGNAL(valueChanged(float)),
- this, SLOT(slotPanChanged(float)));
+ connect(rec.m_pan, TQT_SIGNAL(valueChanged(float)),
+ this, TQT_SLOT(slotPanChanged(float)));
- connect(rec.m_soloButton, SIGNAL(clicked()),
- this, SLOT(slotSoloChanged()));
+ connect(rec.m_soloButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotSoloChanged()));
- connect(rec.m_muteButton, SIGNAL(clicked()),
- this, SLOT(slotMuteChanged()));
+ connect(rec.m_muteButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotMuteChanged()));
- connect(rec.m_stereoButton, SIGNAL(clicked()),
- this, SLOT(slotChannelsChanged()));
+ connect(rec.m_stereoButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotChannelsChanged()));
- connect(rec.m_recordButton, SIGNAL(clicked()),
- this, SLOT(slotRecordChanged()));
+ connect(rec.m_recordButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotRecordChanged()));
++count;
- mainLayout->addMultiCell(new QSpacerItem(2, 0), 0, 6, col + 2, col + 2);
+ mainLayout->addMultiCell(new TQSpacerItem(2, 0), 0, 6, col + 2, col + 2);
col += 3;
}
@@ -491,7 +491,7 @@ AudioMixerWindow::populate()
Rotary::NoTicks, false, true);
rec.m_pan->setKnobColour(GUIPalette::getColour(GUIPalette::RotaryPastelBlue));
- QToolTip::add
+ TQToolTip::add
(rec.m_pan, i18n("Pan"));
rec.m_fader = new Fader
@@ -499,33 +499,33 @@ AudioMixerWindow::populate()
rec.m_meter = new AudioVUMeter
(m_mainBox, VUMeter::AudioPeakHoldIECLong, true, false, 20, 240);
- QToolTip::add
+ TQToolTip::add
(rec.m_fader, i18n("Audio level"));
- QToolTip::add
+ TQToolTip::add
(rec.m_meter, i18n("Audio level"));
- rec.m_muteButton = new QPushButton(m_mainBox);
+ rec.m_muteButton = new TQPushButton(m_mainBox);
rec.m_muteButton->setText("M");
rec.m_muteButton->setToggleButton(true);
rec.m_muteButton->setFlat(true);
- QToolTip::add
+ TQToolTip::add
(rec.m_muteButton, i18n("Mute"));
- rec.m_pluginBox = new QVBox(m_mainBox);
+ rec.m_pluginBox = new TQVBox(m_mainBox);
for (int p = 0; p < 5; ++p) {
- QPushButton *plugin = new QPushButton(rec.m_pluginBox, "pluginButton");
+ TQPushButton *plugin = new TQPushButton(rec.m_pluginBox, "pluginButton");
plugin->setText(i18n("<none>"));
plugin->setMaximumWidth(45);
- QToolTip::add
+ TQToolTip::add
(plugin, i18n("Audio plugin button"));
rec.m_plugins.push_back(plugin);
- connect(plugin, SIGNAL(clicked()),
- this, SLOT(slotSelectPlugin()));
+ connect(plugin, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotSelectPlugin()));
}
- QLabel *idLabel = new QLabel(i18n("Sub %1").arg(count), m_mainBox, "subMaster");
+ TQLabel *idLabel = new TQLabel(i18n("Sub %1").arg(count), m_mainBox, "subMaster");
idLabel->setFont(boldFont);
// mainLayout->addWidget(idLabel, 2, col, Qt::AlignCenter);
@@ -548,18 +548,18 @@ AudioMixerWindow::populate()
updateFader(count);
updatePluginButtons(count);
- connect(rec.m_fader, SIGNAL(faderChanged(float)),
- this, SLOT(slotFaderLevelChanged(float)));
+ connect(rec.m_fader, TQT_SIGNAL(faderChanged(float)),
+ this, TQT_SLOT(slotFaderLevelChanged(float)));
- connect(rec.m_pan, SIGNAL(valueChanged(float)),
- this, SLOT(slotPanChanged(float)));
+ connect(rec.m_pan, TQT_SIGNAL(valueChanged(float)),
+ this, TQT_SLOT(slotPanChanged(float)));
- connect(rec.m_muteButton, SIGNAL(clicked()),
- this, SLOT(slotMuteChanged()));
+ connect(rec.m_muteButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotMuteChanged()));
++count;
- mainLayout->addMultiCell(new QSpacerItem(2, 0), 0, 6, col + 2, col + 2);
+ mainLayout->addMultiCell(new TQSpacerItem(2, 0), 0, 6, col + 2, col + 2);
col += 3;
}
@@ -574,17 +574,17 @@ AudioMixerWindow::populate()
rec.m_meter = new AudioVUMeter
(m_mainBox, VUMeter::AudioPeakHoldIEC, true, false, 20, 240);
- QToolTip::add
+ TQToolTip::add
(rec.m_fader, i18n("Audio master output level"));
- QToolTip::add
+ TQToolTip::add
(rec.m_meter, i18n("Audio master output level"));
- rec.m_muteButton = new QPushButton(m_mainBox);
+ rec.m_muteButton = new TQPushButton(m_mainBox);
rec.m_muteButton->setText("M");
rec.m_muteButton->setToggleButton(true);
rec.m_muteButton->setFlat(true);
- QLabel *idLabel = new QLabel(i18n("Master"), m_mainBox);
+ TQLabel *idLabel = new TQLabel(i18n("Master"), m_mainBox);
idLabel->setFont(boldFont);
mainLayout->addMultiCellWidget(idLabel, 0, 0, col, col + 1, Qt::AlignCenter);
@@ -594,16 +594,16 @@ AudioMixerWindow::populate()
// mainLayout->addMultiCellWidget(rec.m_muteButton, 4, 4, col, col+1);
rec.m_muteButton->hide();
- mainLayout->addMultiCell(new QSpacerItem(2, 0), 0, 6, col + 2, col + 2);
+ mainLayout->addMultiCell(new TQSpacerItem(2, 0), 0, 6, col + 2, col + 2);
m_master = rec;
updateFader(0);
- connect(rec.m_fader, SIGNAL(faderChanged(float)),
- this, SLOT(slotFaderLevelChanged(float)));
+ connect(rec.m_fader, TQT_SIGNAL(faderChanged(float)),
+ this, TQT_SLOT(slotFaderLevelChanged(float)));
- connect(rec.m_muteButton, SIGNAL(clicked()),
- this, SLOT(slotMuteChanged()));
+ connect(rec.m_muteButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotMuteChanged()));
}
m_mainBox->show();
@@ -681,25 +681,25 @@ AudioMixerWindow::slotPluginSelected(InstrumentId id,
if (plugin == -1) {
rec.m_plugins[index]->setText(i18n("<none>"));
- QToolTip::add
+ TQToolTip::add
(rec.m_plugins[index], i18n("<no plugin>"));
rec.m_plugins[index]->setPaletteBackgroundColor
(kapp->palette().
- color(QPalette::Active, QColorGroup::Button));
+ color(TQPalette::Active, TQColorGroup::Button));
} else {
AudioPlugin *pluginClass
= m_document->getPluginManager()->getPlugin(plugin);
- QColor pluginBgColour =
- kapp->palette().color(QPalette::Active, QColorGroup::Light);
+ TQColor pluginBgColour =
+ kapp->palette().color(TQPalette::Active, TQColorGroup::Light);
if (pluginClass) {
rec.m_plugins[index]->
setText(pluginClass->getLabel());
- QToolTip::add
+ TQToolTip::add
(rec.m_plugins[index], pluginClass->getLabel());
pluginBgColour = pluginClass->getColour();
@@ -720,25 +720,25 @@ AudioMixerWindow::slotPluginSelected(InstrumentId id,
if (plugin == -1) {
rec.m_plugins[index]->setText(i18n("<none>"));
- QToolTip::add
+ TQToolTip::add
(rec.m_plugins[index], i18n("<no plugin>"));
rec.m_plugins[index]->setPaletteBackgroundColor
(kapp->palette().
- color(QPalette::Active, QColorGroup::Button));
+ color(TQPalette::Active, TQColorGroup::Button));
} else {
AudioPlugin *pluginClass
= m_document->getPluginManager()->getPlugin(plugin);
- QColor pluginBgColour =
- kapp->palette().color(QPalette::Active, QColorGroup::Light);
+ TQColor pluginBgColour =
+ kapp->palette().color(TQPalette::Active, TQColorGroup::Light);
if (pluginClass) {
rec.m_plugins[index]->
setText(pluginClass->getLabel());
- QToolTip::add
+ TQToolTip::add
(rec.m_plugins[index], pluginClass->getLabel());
pluginBgColour = pluginClass->getColour();
@@ -874,8 +874,8 @@ AudioMixerWindow::updatePluginButtons(int id)
bool used = false;
bool bypass = false;
- QColor pluginBgColour =
- kapp->palette().color(QPalette::Active, QColorGroup::Light);
+ TQColor pluginBgColour =
+ kapp->palette().color(TQPalette::Active, TQColorGroup::Light);
rec->m_plugins[i]->show();
@@ -890,7 +890,7 @@ AudioMixerWindow::updatePluginButtons(int id)
if (pluginClass) {
rec->m_plugins[i]->setText(pluginClass->getLabel());
- QToolTip::add
+ TQToolTip::add
(rec->m_plugins[i], pluginClass->getLabel());
pluginBgColour = pluginClass->getColour();
@@ -902,7 +902,7 @@ AudioMixerWindow::updatePluginButtons(int id)
} else {
rec->m_plugins[i]->setText(i18n("<none>"));
- QToolTip::add
+ TQToolTip::add
(rec->m_plugins[i], i18n("<no plugin>"));
if (inst)
@@ -913,11 +913,11 @@ AudioMixerWindow::updatePluginButtons(int id)
rec->m_plugins[i]->setPaletteForegroundColor
(kapp->palette().
- color(QPalette::Active, QColorGroup::Button));
+ color(TQPalette::Active, TQColorGroup::Button));
rec->m_plugins[i]->setPaletteBackgroundColor
(kapp->palette().
- color(QPalette::Active, QColorGroup::ButtonText));
+ color(TQPalette::Active, TQColorGroup::ButtonText));
} else if (used) {
@@ -929,11 +929,11 @@ AudioMixerWindow::updatePluginButtons(int id)
rec->m_plugins[i]->setPaletteForegroundColor
(kapp->palette().
- color(QPalette::Active, QColorGroup::ButtonText));
+ color(TQPalette::Active, TQColorGroup::ButtonText));
rec->m_plugins[i]->setPaletteBackgroundColor
(kapp->palette().
- color(QPalette::Active, QColorGroup::Button));
+ color(TQPalette::Active, TQColorGroup::Button));
}
}
}
@@ -942,7 +942,7 @@ AudioMixerWindow::updatePluginButtons(int id)
void
AudioMixerWindow::slotSelectPlugin()
{
- const QObject *s = sender();
+ const TQObject *s = sender();
for (FaderMap::iterator i = m_faders.begin();
i != m_faders.end(); ++i) {
@@ -951,7 +951,7 @@ AudioMixerWindow::slotSelectPlugin()
if (!i->second.m_populated || !i->second.m_pluginBox)
continue;
- for (std::vector<QPushButton *>::iterator pli = i->second.m_plugins.begin();
+ for (std::vector<TQPushButton *>::iterator pli = i->second.m_plugins.begin();
pli != i->second.m_plugins.end(); ++pli) {
if (*pli == s) {
@@ -974,7 +974,7 @@ AudioMixerWindow::slotSelectPlugin()
if (!i->m_populated || !i->m_pluginBox)
continue;
- for (std::vector<QPushButton *>::iterator pli = i->m_plugins.begin();
+ for (std::vector<TQPushButton *>::iterator pli = i->m_plugins.begin();
pli != i->m_plugins.end(); ++pli) {
if (*pli == s) {
@@ -993,7 +993,7 @@ AudioMixerWindow::slotSelectPlugin()
void
AudioMixerWindow::slotInputChanged()
{
- const QObject *s = sender();
+ const TQObject *s = sender();
for (FaderMap::iterator i = m_faders.begin();
i != m_faders.end(); ++i) {
@@ -1006,7 +1006,7 @@ AudioMixerWindow::slotInputChanged()
void
AudioMixerWindow::slotOutputChanged()
{
- const QObject *s = sender();
+ const TQObject *s = sender();
for (FaderMap::iterator i = m_faders.begin();
i != m_faders.end(); ++i) {
@@ -1060,7 +1060,7 @@ AudioMixerWindow::sendControllerRefresh()
void
AudioMixerWindow::slotFaderLevelChanged(float dB)
{
- const QObject *s = sender();
+ const TQObject *s = sender();
BussList busses = m_studio->getBusses();
@@ -1140,7 +1140,7 @@ AudioMixerWindow::slotFaderLevelChanged(float dB)
void
AudioMixerWindow::slotPanChanged(float pan)
{
- const QObject *s = sender();
+ const TQObject *s = sender();
BussList busses = m_studio->getBusses();
@@ -1208,7 +1208,7 @@ AudioMixerWindow::slotPanChanged(float pan)
void
AudioMixerWindow::slotChannelsChanged()
{
- const QObject *s = sender();
+ const TQObject *s = sender();
// channels are only switchable on instruments
@@ -1444,8 +1444,8 @@ AudioMixerWindow::slotControllerDeviceEventReceived(MappedEvent *e,
void
AudioMixerWindow::slotSetInputCountFromAction()
{
- const QObject *s = sender();
- QString name = s->name();
+ const TQObject *s = sender();
+ TQString name = s->name();
if (name.left(7) == "inputs_") {
@@ -1475,8 +1475,8 @@ AudioMixerWindow::slotSetInputCountFromAction()
void
AudioMixerWindow::slotSetSubmasterCountFromAction()
{
- const QObject *s = sender();
- QString name = s->name();
+ const TQObject *s = sender();
+ TQString name = s->name();
if (name.left(11) == "submasters_") {
@@ -1714,10 +1714,10 @@ AudioMixerWindow::slotToggleUnassignedFaders()
void
AudioMixerWindow::toggleNamedWidgets(bool show, const char* const name)
{
- QLayoutIterator it = m_mainBox->layout()->iterator();
- QLayoutItem *child;
+ TQLayoutIterator it = m_mainBox->layout()->iterator();
+ TQLayoutItem *child;
while ( (child = it.current()) != 0 ) {
- QWidget * widget = child->widget();
+ TQWidget * widget = child->widget();
if (widget && widget->name() && !strcmp(widget->name(), name)) {
if (show)
widget->show();
diff --git a/src/gui/studio/AudioMixerWindow.h b/src/gui/studio/AudioMixerWindow.h
index 99829de..cc3cd77 100644
--- a/src/gui/studio/AudioMixerWindow.h
+++ b/src/gui/studio/AudioMixerWindow.h
@@ -29,15 +29,15 @@
#include "base/MidiProgram.h"
#include <map>
#include "MixerWindow.h"
-#include <qpixmap.h>
+#include <tqpixmap.h>
#include <vector>
-class QWidget;
-class QVBox;
-class QPushButton;
-class QHBox;
-class QFrame;
+class TQWidget;
+class TQVBox;
+class TQPushButton;
+class TQHBox;
+class TQFrame;
namespace Rosegarden
@@ -57,7 +57,7 @@ class AudioMixerWindow : public MixerWindow
Q_OBJECT
public:
- AudioMixerWindow(QWidget *parent, RosegardenGUIDoc *document);
+ AudioMixerWindow(TQWidget *parent, RosegardenGUIDoc *document);
~AudioMixerWindow();
void updateMeters(SequencerMapper *mapper);
@@ -68,7 +68,7 @@ public slots:
const void *);
signals:
- void selectPlugin(QWidget *, InstrumentId id, int index);
+ void selectPlugin(TQWidget *, InstrumentId id, int index);
void play();
void stop();
@@ -148,18 +148,18 @@ private:
Fader *m_fader;
AudioVUMeter *m_meter;
- QPushButton *m_muteButton;
- QPushButton *m_soloButton;
- QPushButton *m_recordButton;
- QPushButton *m_stereoButton;
+ TQPushButton *m_muteButton;
+ TQPushButton *m_soloButton;
+ TQPushButton *m_recordButton;
+ TQPushButton *m_stereoButton;
bool m_stereoness;
- QVBox *m_pluginBox;
- std::vector<QPushButton *> m_plugins;
+ TQVBox *m_pluginBox;
+ std::vector<TQPushButton *> m_plugins;
};
- QHBox *m_surroundBox;
- QFrame *m_mainBox;
+ TQHBox *m_surroundBox;
+ TQFrame *m_mainBox;
typedef std::map<InstrumentId, FaderRec> FaderMap;
FaderMap m_faders;
@@ -180,8 +180,8 @@ private:
void updatePluginButtons(int id);
void updateMiscButtons(int id);
- QPixmap m_monoPixmap;
- QPixmap m_stereoPixmap;
+ TQPixmap m_monoPixmap;
+ TQPixmap m_stereoPixmap;
};
diff --git a/src/gui/studio/AudioPlugin.cpp b/src/gui/studio/AudioPlugin.cpp
index 2cf3db2..dd30472 100644
--- a/src/gui/studio/AudioPlugin.cpp
+++ b/src/gui/studio/AudioPlugin.cpp
@@ -27,22 +27,22 @@
#include "misc/Strings.h"
#include "base/AudioPluginInstance.h"
-#include <qcolor.h>
-#include <qstring.h>
+#include <tqcolor.h>
+#include <tqstring.h>
namespace Rosegarden
{
-AudioPlugin::AudioPlugin(const QString &identifier,
- const QString &name,
+AudioPlugin::AudioPlugin(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):
m_identifier(identifier),
m_name(name),
m_uniqueId(uniqueId),
@@ -57,7 +57,7 @@ AudioPlugin::AudioPlugin(const QString &identifier,
void
AudioPlugin::addPort(int number,
- const QString &name,
+ const TQString &name,
PluginPort::PortType type,
PluginPort::PortDisplayHint hint,
PortData lowerBound,
diff --git a/src/gui/studio/AudioPlugin.h b/src/gui/studio/AudioPlugin.h
index 591a43b..ac8a7ad 100644
--- a/src/gui/studio/AudioPlugin.h
+++ b/src/gui/studio/AudioPlugin.h
@@ -27,8 +27,8 @@
#define _RG_AUDIOPLUGIN_H_
#include "base/AudioPluginInstance.h"
-#include <qcolor.h>
-#include <qstring.h>
+#include <tqcolor.h>
+#include <tqstring.h>
#include <vector>
@@ -42,23 +42,23 @@ namespace Rosegarden
class AudioPlugin
{
public:
- AudioPlugin(const QString &identifier,
- const QString &name,
+ AudioPlugin(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);
- QString getIdentifier() const { return m_identifier; }
+ TQString getIdentifier() const { return m_identifier; }
- QString getName() const { return m_name; }
+ TQString getName() const { return m_name; }
unsigned long getUniqueId() const { return m_uniqueId; }
- QString getLabel() const { return m_label; }
- QString getAuthor() const { return m_author; }
- QString getCopyright() const { return m_copyright; }
+ TQString getLabel() const { return m_label; }
+ TQString getAuthor() const { return m_author; }
+ TQString getCopyright() const { return m_copyright; }
bool isSynth() const { return m_isSynth; }
bool isEffect() const { // true if >0 audio inputs
for (unsigned int i = 0; i < m_ports.size(); ++i) {
@@ -70,10 +70,10 @@ public:
return false;
}
bool isGrouped() const { return m_isGrouped; }
- QString getCategory() const { return m_category; }
+ TQString getCategory() const { return m_category; }
void addPort(int number,
- const QString &name,
+ const TQString &name,
PluginPort::PortType type,
PluginPort::PortDisplayHint hint,
PortData lowerBound,
@@ -85,28 +85,28 @@ public:
PortIterator begin() { return m_ports.begin(); }
PortIterator end() { return m_ports.end(); }
- QColor getColour() const { return m_colour; }
- void setColour(const QColor &colour) { m_colour = colour; }
+ TQColor getColour() const { return m_colour; }
+ void setColour(const TQColor &colour) { m_colour = colour; }
protected:
- QString m_identifier;
+ TQString m_identifier;
- QString m_name;
+ TQString m_name;
unsigned long m_uniqueId;
- QString m_label;
- QString m_author;
- QString m_copyright;
+ TQString m_label;
+ TQString m_author;
+ TQString m_copyright;
bool m_isSynth;
bool m_isGrouped;
- QString m_category;
+ TQString m_category;
// our ports and associated hints
std::vector<PluginPort*> m_ports;
// Colour of this activated plugin
//
- QColor m_colour;
+ TQColor m_colour;
};
typedef std::vector<AudioPlugin*>::iterator PluginIterator;
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;
diff --git a/src/gui/studio/AudioPluginManager.h b/src/gui/studio/AudioPluginManager.h
index f8574f8..9150f69 100644
--- a/src/gui/studio/AudioPluginManager.h
+++ b/src/gui/studio/AudioPluginManager.h
@@ -27,9 +27,9 @@
#define _RG_AUDIOPLUGINMANAGER_H_
#include "AudioPluginClipboard.h"
-#include <qmutex.h>
-#include <qstring.h>
-#include <qthread.h>
+#include <tqmutex.h>
+#include <tqstring.h>
+#include <tqthread.h>
#include <vector>
#include "AudioPlugin.h"
@@ -49,14 +49,14 @@ public:
// Get a straight list of names
//
- std::vector<QString> getPluginNames();
+ std::vector<TQString> getPluginNames();
// Some useful members
//
AudioPlugin* getPlugin(int number);
- AudioPlugin* getPluginByIdentifier(QString identifier);
- int getPositionByIdentifier(QString identifier);
+ AudioPlugin* getPluginByIdentifier(TQString identifier);
+ int getPositionByIdentifier(TQString identifier);
// Deprecated -- the GUI shouldn't be using unique ID because it's
// bound to a particular plugin type (and not necessarily unique
@@ -77,17 +77,17 @@ public:
AudioPluginClipboard* getPluginClipboard() { return &m_pluginClipboard; }
protected:
- AudioPlugin* addPlugin(const QString &identifier,
- const QString &name,
+ AudioPlugin* 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);
- bool removePlugin(const QString &identifier);
+ bool removePlugin(const TQString &identifier);
class Enumerator : public QThread
{
@@ -108,7 +108,7 @@ protected:
unsigned int m_sampleRate;
AudioPluginClipboard m_pluginClipboard;
Enumerator m_enumerator;
- QMutex m_mutex;
+ TQMutex m_mutex;
};
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());
}
diff --git a/src/gui/studio/AudioPluginOSCGUI.h b/src/gui/studio/AudioPluginOSCGUI.h
index d1982f4..950feb1 100644
--- a/src/gui/studio/AudioPluginOSCGUI.h
+++ b/src/gui/studio/AudioPluginOSCGUI.h
@@ -30,7 +30,7 @@
#include <lo/lo.h>
-#include <qstring.h>
+#include <tqstring.h>
class KProcess;
@@ -46,25 +46,25 @@ class AudioPluginOSCGUI
{
public:
AudioPluginOSCGUI(AudioPluginInstance *instance,
- QString serverURL, QString friendlyName);
+ TQString serverURL, TQString friendlyName);
virtual ~AudioPluginOSCGUI();
- void setGUIUrl(QString url);
+ void setGUIUrl(TQString url);
void show();
void hide();
void quit();
void sendProgram(int bank, int program);
void sendPortValue(int port, float value);
- void sendConfiguration(QString key, QString value);
+ void sendConfiguration(TQString key, TQString value);
- static QString getGUIFilePath(QString identifier);
+ static TQString getGUIFilePath(TQString identifier);
protected:
KProcess *m_gui;
lo_address m_address;
- QString m_basePath;
- QString m_serverUrl;
+ TQString m_basePath;
+ TQString m_serverUrl;
};
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
diff --git a/src/gui/studio/AudioPluginOSCGUIManager.h b/src/gui/studio/AudioPluginOSCGUIManager.h
index 0bef2a2..8dd3cbf 100644
--- a/src/gui/studio/AudioPluginOSCGUIManager.h
+++ b/src/gui/studio/AudioPluginOSCGUIManager.h
@@ -32,7 +32,7 @@
#include "base/MidiProgram.h"
#include <map>
#include "sound/RingBuffer.h"
-#include <qstring.h>
+#include <tqstring.h>
@@ -66,14 +66,14 @@ public:
void updateProgram(InstrumentId id, int position);
void updatePort(InstrumentId id, int position, int port);
void updateConfiguration(InstrumentId id, int position,
- QString key);
-
- QString getOSCUrl(InstrumentId instrument, int position,
- QString identifier);
- QString getFriendlyName(InstrumentId instrument, int position,
- QString identifier);
- bool parseOSCPath(QString path, InstrumentId &instrument, int &position,
- QString &method);
+ TQString key);
+
+ TQString getOSCUrl(InstrumentId instrument, int position,
+ TQString identifier);
+ TQString getFriendlyName(InstrumentId instrument, int position,
+ TQString identifier);
+ bool parseOSCPath(TQString path, InstrumentId &instrument, int &position,
+ TQString &method);
static void timerCallback(void *data);
static void guiExitedCallback(void *data);
diff --git a/src/gui/studio/BankEditorDialog.cpp b/src/gui/studio/BankEditorDialog.cpp
index 20aaf2d..5c5c3d2 100644
--- a/src/gui/studio/BankEditorDialog.cpp
+++ b/src/gui/studio/BankEditorDialog.cpp
@@ -24,7 +24,7 @@
#include "BankEditorDialog.h"
-#include <qlayout.h>
+#include <tqlayout.h>
#include <kapplication.h>
#include <klocale.h>
@@ -58,27 +58,27 @@
#include <kstdaccel.h>
#include <kstdaction.h>
#include <kxmlguiclient.h>
-#include <qcheckbox.h>
-#include <qdialog.h>
-#include <qdir.h>
-#include <qfileinfo.h>
-#include <qframe.h>
-#include <qgroupbox.h>
-#include <qhbox.h>
-#include <qpushbutton.h>
-#include <qsizepolicy.h>
-#include <qsplitter.h>
-#include <qstring.h>
-#include <qtooltip.h>
-#include <qvbox.h>
-#include <qvgroupbox.h>
-#include <qwidget.h>
+#include <tqcheckbox.h>
+#include <tqdialog.h>
+#include <tqdir.h>
+#include <tqfileinfo.h>
+#include <tqframe.h>
+#include <tqgroupbox.h>
+#include <tqhbox.h>
+#include <tqpushbutton.h>
+#include <tqsizepolicy.h>
+#include <tqsplitter.h>
+#include <tqstring.h>
+#include <tqtooltip.h>
+#include <tqvbox.h>
+#include <tqvgroupbox.h>
+#include <tqwidget.h>
namespace Rosegarden
{
-BankEditorDialog::BankEditorDialog(QWidget *parent,
+BankEditorDialog::BankEditorDialog(TQWidget *parent,
RosegardenGUIDoc *doc,
DeviceId defaultDevice):
KMainWindow(parent, "bankeditordialog"),
@@ -91,22 +91,22 @@ BankEditorDialog::BankEditorDialog(QWidget *parent,
m_lastDevice(Device::NO_DEVICE),
m_updateDeviceList(false)
{
- QVBox* mainFrame = new QVBox(this);
+ TQVBox* mainFrame = new TQVBox(this);
setCentralWidget(mainFrame);
setCaption(i18n("Manage MIDI Banks and Programs"));
- QSplitter* splitter = new QSplitter(mainFrame);
+ TQSplitter* splitter = new TQSplitter(mainFrame);
- QFrame* btnBox = new QFrame(mainFrame);
+ TQFrame* btnBox = new TQFrame(mainFrame);
- btnBox->setSizePolicy(QSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed));
+ btnBox->setSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Fixed));
- QHBoxLayout* layout = new QHBoxLayout(btnBox, 4, 10);
+ TQHBoxLayout* layout = new TQHBoxLayout(btnBox, 4, 10);
- m_closeButton = new QPushButton(btnBox);
- m_applyButton = new QPushButton(i18n("Apply"), btnBox);
- m_resetButton = new QPushButton(i18n("Reset"), btnBox);
+ m_closeButton = new TQPushButton(btnBox);
+ m_applyButton = new TQPushButton(i18n("Apply"), btnBox);
+ m_resetButton = new TQPushButton(i18n("Reset"), btnBox);
layout->addStretch(10);
layout->addWidget(m_applyButton);
@@ -115,15 +115,15 @@ BankEditorDialog::BankEditorDialog(QWidget *parent,
layout->addWidget(m_closeButton);
layout->addSpacing(5);
- connect(m_applyButton, SIGNAL(clicked()),
- this, SLOT(slotApply()));
- connect(m_resetButton, SIGNAL(clicked()),
- this, SLOT(slotReset()));
+ connect(m_applyButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotApply()));
+ connect(m_resetButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotReset()));
//
// Left-side list view
//
- QVBox* leftPart = new QVBox(splitter);
+ TQVBox* leftPart = new TQVBox(splitter);
m_listView = new KListView(leftPart);
m_listView->addColumn(i18n("MIDI Device"));
m_listView->addColumn(i18n("Type"));
@@ -134,13 +134,13 @@ BankEditorDialog::BankEditorDialog(QWidget *parent,
m_listView->setItemsRenameable(true);
m_listView->restoreLayout(kapp->config(), BankEditorConfigGroup);
- QFrame *bankBox = new QFrame(leftPart);
- QGridLayout *gridLayout = new QGridLayout(bankBox, 4, 2, 6, 6);
+ TQFrame *bankBox = new TQFrame(leftPart);
+ TQGridLayout *gridLayout = new TQGridLayout(bankBox, 4, 2, 6, 6);
- m_addBank = new QPushButton(i18n("Add Bank"), bankBox);
- m_addKeyMapping = new QPushButton(i18n("Add Key Mapping"), bankBox);
- m_delete = new QPushButton(i18n("Delete"), bankBox);
- m_deleteAll = new QPushButton(i18n("Delete All"), bankBox);
+ m_addBank = new TQPushButton(i18n("Add Bank"), bankBox);
+ m_addKeyMapping = new TQPushButton(i18n("Add Key Mapping"), bankBox);
+ m_delete = new TQPushButton(i18n("Delete"), bankBox);
+ m_deleteAll = new TQPushButton(i18n("Delete All"), bankBox);
gridLayout->addWidget(m_addBank, 0, 0);
gridLayout->addWidget(m_addKeyMapping, 0, 1);
gridLayout->addWidget(m_delete, 1, 0);
@@ -148,56 +148,56 @@ BankEditorDialog::BankEditorDialog(QWidget *parent,
// Tips
//
- QToolTip::add
+ TQToolTip::add
(m_addBank,
i18n("Add a Bank to the current device"));
- QToolTip::add
+ TQToolTip::add
(m_addKeyMapping,
i18n("Add a Percussion Key Mapping to the current device"));
- QToolTip::add
+ TQToolTip::add
(m_delete,
i18n("Delete the current Bank or Key Mapping"));
- QToolTip::add
+ TQToolTip::add
(m_deleteAll,
i18n("Delete all Banks and Key Mappings from the current Device"));
- m_importBanks = new QPushButton(i18n("Import..."), bankBox);
- m_exportBanks = new QPushButton(i18n("Export..."), bankBox);
+ m_importBanks = new TQPushButton(i18n("Import..."), bankBox);
+ m_exportBanks = new TQPushButton(i18n("Export..."), bankBox);
gridLayout->addWidget(m_importBanks, 2, 0);
gridLayout->addWidget(m_exportBanks, 2, 1);
// Tips
//
- QToolTip::add
+ TQToolTip::add
(m_importBanks,
i18n("Import Bank and Program data from a Rosegarden file to the current Device"));
- QToolTip::add
+ TQToolTip::add
(m_exportBanks,
i18n("Export all Device and Bank information to a Rosegarden format interchange file"));
- m_copyPrograms = new QPushButton(i18n("Copy"), bankBox);
- m_pastePrograms = new QPushButton(i18n("Paste"), bankBox);
+ m_copyPrograms = new TQPushButton(i18n("Copy"), bankBox);
+ m_pastePrograms = new TQPushButton(i18n("Paste"), bankBox);
gridLayout->addWidget(m_copyPrograms, 3, 0);
gridLayout->addWidget(m_pastePrograms, 3, 1);
// Tips
//
- QToolTip::add
+ TQToolTip::add
(m_copyPrograms,
i18n("Copy all Program names from current Bank to clipboard"));
- QToolTip::add
+ TQToolTip::add
(m_pastePrograms,
i18n("Paste Program names from clipboard to current Bank"));
- connect(m_listView, SIGNAL(currentChanged(QListViewItem*)),
- this, SLOT(slotPopulateDevice(QListViewItem*)));
+ connect(m_listView, TQT_SIGNAL(currentChanged(TQListViewItem*)),
+ this, TQT_SLOT(slotPopulateDevice(TQListViewItem*)));
- QFrame *vbox = new QFrame(splitter);
- QVBoxLayout *vboxLayout = new QVBoxLayout(vbox, 8, 6);
+ TQFrame *vbox = new TQFrame(splitter);
+ TQVBoxLayout *vboxLayout = new TQVBoxLayout(vbox, 8, 6);
m_programEditor = new MidiProgramsEditor(this, vbox);
vboxLayout->addWidget(m_programEditor);
@@ -206,57 +206,57 @@ BankEditorDialog::BankEditorDialog(QWidget *parent,
vboxLayout->addWidget(m_keyMappingEditor);
m_keyMappingEditor->hide();
- m_programEditor->setSizePolicy(QSizePolicy(QSizePolicy::Minimum, QSizePolicy::Preferred));
- m_keyMappingEditor->setSizePolicy(QSizePolicy(QSizePolicy::Minimum, QSizePolicy::Preferred));
+ m_programEditor->setSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Preferred));
+ m_keyMappingEditor->setSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Preferred));
- m_optionBox = new QVGroupBox(i18n("Options"), vbox);
+ m_optionBox = new TQVGroupBox(i18n("Options"), vbox);
vboxLayout->addWidget(m_optionBox);
- QHBox *variationBox = new QHBox(m_optionBox);
- m_variationToggle = new QCheckBox(i18n("Show Variation list based on "), variationBox);
+ TQHBox *variationBox = new TQHBox(m_optionBox);
+ m_variationToggle = new TQCheckBox(i18n("Show Variation list based on "), variationBox);
m_variationCombo = new KComboBox(variationBox);
m_variationCombo->insertItem(i18n("LSB"));
m_variationCombo->insertItem(i18n("MSB"));
// device/bank modification
- connect(m_listView, SIGNAL(itemRenamed (QListViewItem*, const QString&, int)),
- this, SLOT(slotModifyDeviceOrBankName(QListViewItem*, const QString&, int)));
+ connect(m_listView, TQT_SIGNAL(itemRenamed (TQListViewItem*, const TQString&, int)),
+ this, TQT_SLOT(slotModifyDeviceOrBankName(TQListViewItem*, const TQString&, int)));
- connect(m_addBank, SIGNAL(clicked()),
- this, SLOT(slotAddBank()));
+ connect(m_addBank, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotAddBank()));
- connect(m_addKeyMapping, SIGNAL(clicked()),
- this, SLOT(slotAddKeyMapping()));
+ connect(m_addKeyMapping, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotAddKeyMapping()));
- connect(m_delete, SIGNAL(clicked()),
- this, SLOT(slotDelete()));
+ connect(m_delete, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotDelete()));
- connect(m_deleteAll, SIGNAL(clicked()),
- this, SLOT(slotDeleteAll()));
+ connect(m_deleteAll, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotDeleteAll()));
- connect(m_importBanks, SIGNAL(clicked()),
- this, SLOT(slotImport()));
+ connect(m_importBanks, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotImport()));
- connect(m_exportBanks, SIGNAL(clicked()),
- this, SLOT(slotExport()));
+ connect(m_exportBanks, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotExport()));
- connect(m_copyPrograms, SIGNAL(clicked()),
- this, SLOT(slotEditCopy()));
+ connect(m_copyPrograms, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotEditCopy()));
- connect(m_pastePrograms, SIGNAL(clicked()),
- this, SLOT(slotEditPaste()));
+ connect(m_pastePrograms, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotEditPaste()));
- connect(m_variationToggle, SIGNAL(clicked()),
- this, SLOT(slotVariationToggled()));
+ connect(m_variationToggle, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotVariationToggled()));
- connect(m_variationCombo, SIGNAL(activated(int)),
- this, SLOT(slotVariationChanged(int)));
+ connect(m_variationCombo, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotVariationChanged(int)));
setupActions();
m_doc->getCommandHistory()->attachView(actionCollection());
- connect(m_doc->getCommandHistory(), SIGNAL(commandExecuted()),
- this, SLOT(slotUpdate()));
+ connect(m_doc->getCommandHistory(), TQT_SIGNAL(commandExecuted()),
+ this, TQT_SLOT(slotUpdate()));
// Initialise the dialog
//
@@ -303,14 +303,14 @@ BankEditorDialog::~BankEditorDialog()
void
BankEditorDialog::setupActions()
{
- KAction* close = KStdAction::close (this, SLOT(slotFileClose()), actionCollection());
+ KAction* close = KStdAction::close (this, TQT_SLOT(slotFileClose()), actionCollection());
m_closeButton->setText(close->text());
- connect(m_closeButton, SIGNAL(clicked()),
- this, SLOT(slotFileClose()));
+ connect(m_closeButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotFileClose()));
- KStdAction::copy (this, SLOT(slotEditCopy()), actionCollection());
- KStdAction::paste (this, SLOT(slotEditPaste()), actionCollection());
+ KStdAction::copy (this, TQT_SLOT(slotEditCopy()), actionCollection());
+ KStdAction::paste (this, TQT_SLOT(slotEditPaste()), actionCollection());
// some adjustments
@@ -355,12 +355,12 @@ BankEditorDialog::initDialog()
continue;
m_deviceNameMap[midiDevice->getId()] = midiDevice->getName();
- QString itemName = strtoqstr(midiDevice->getName());
+ TQString itemName = strtoqstr(midiDevice->getName());
RG_DEBUG << "BankEditorDialog::initDialog - adding "
<< itemName << endl;
- QListViewItem* deviceItem = new MidiDeviceListViewItem
+ TQListViewItem* deviceItem = new MidiDeviceListViewItem
(midiDevice->getId(), m_listView, itemName);
deviceItem->setOpen(true);
@@ -401,7 +401,7 @@ BankEditorDialog::updateDialog()
if (m_deviceNameMap.find(midiDevice->getId()) != m_deviceNameMap.end()) {
// Device already displayed but make sure the label is up to date
//
- QListViewItem* currentItem = m_listView->currentItem();
+ TQListViewItem* currentItem = m_listView->currentItem();
if (currentItem) {
MidiDeviceListViewItem* deviceItem =
@@ -425,7 +425,7 @@ BankEditorDialog::updateDialog()
deviceLabelUpdate = true;
}
- QListViewItem *child = deviceItem->firstChild();
+ TQListViewItem *child = deviceItem->firstChild();
while (child) {
@@ -454,12 +454,12 @@ BankEditorDialog::updateDialog()
}
m_deviceNameMap[midiDevice->getId()] = midiDevice->getName();
- QString itemName = strtoqstr(midiDevice->getName());
+ TQString itemName = strtoqstr(midiDevice->getName());
RG_DEBUG << "BankEditorDialog::updateDialog - adding "
<< itemName << endl;
- QListViewItem* deviceItem = new MidiDeviceListViewItem
+ TQListViewItem* deviceItem = new MidiDeviceListViewItem
(midiDevice->getId(), m_listView, itemName);
deviceItem->setOpen(true);
@@ -496,7 +496,7 @@ BankEditorDialog::updateDialog()
void
BankEditorDialog::setCurrentDevice(DeviceId device)
{
- for (QListViewItem *item = m_listView->firstChild(); item;
+ for (TQListViewItem *item = m_listView->firstChild(); item;
item = item->nextSibling()) {
MidiDeviceListViewItem * deviceItem =
dynamic_cast<MidiDeviceListViewItem *>(item);
@@ -508,11 +508,11 @@ BankEditorDialog::setCurrentDevice(DeviceId device)
}
void
-BankEditorDialog::populateDeviceItem(QListViewItem* deviceItem, MidiDevice* midiDevice)
+BankEditorDialog::populateDeviceItem(TQListViewItem* deviceItem, MidiDevice* midiDevice)
{
clearItemChildren(deviceItem);
- QString itemName = strtoqstr(midiDevice->getName());
+ TQString itemName = strtoqstr(midiDevice->getName());
BankList banks = midiDevice->getBanks();
// add banks for this device
@@ -545,7 +545,7 @@ BankEditorDialog::updateDeviceItem(MidiDeviceListViewItem* deviceItem)
return ;
}
- QString itemName = strtoqstr(midiDevice->getName());
+ TQString itemName = strtoqstr(midiDevice->getName());
BankList banks = midiDevice->getBanks();
KeyMappingList keymaps = midiDevice->getKeyMappings();
@@ -567,7 +567,7 @@ BankEditorDialog::updateDeviceItem(MidiDeviceListViewItem* deviceItem)
for (unsigned int i = 0; i < keymaps.size(); ++i) {
- QListViewItem *child = deviceItem->firstChild();
+ TQListViewItem *child = deviceItem->firstChild();
bool have = false;
while (child) {
@@ -593,9 +593,9 @@ BankEditorDialog::updateDeviceItem(MidiDeviceListViewItem* deviceItem)
// delete banks which are no longer present
//
- std::vector<QListViewItem*> childrenToDelete;
+ std::vector<TQListViewItem*> childrenToDelete;
- QListViewItem* child = deviceItem->firstChild();
+ TQListViewItem* child = deviceItem->firstChild();
while (child) {
@@ -629,7 +629,7 @@ BankEditorDialog::updateDeviceItem(MidiDeviceListViewItem* deviceItem)
bool
BankEditorDialog::deviceItemHasBank(MidiDeviceListViewItem* deviceItem, int bankNb)
{
- QListViewItem *child = deviceItem->firstChild();
+ TQListViewItem *child = deviceItem->firstChild();
while (child) {
MidiBankListViewItem *bankItem =
@@ -645,9 +645,9 @@ BankEditorDialog::deviceItemHasBank(MidiDeviceListViewItem* deviceItem, int bank
}
void
-BankEditorDialog::clearItemChildren(QListViewItem* item)
+BankEditorDialog::clearItemChildren(TQListViewItem* item)
{
- QListViewItem* child = 0;
+ TQListViewItem* child = 0;
while ((child = item->firstChild()))
delete child;
@@ -719,7 +719,7 @@ BankEditorDialog::checkModified()
}
void
-BankEditorDialog::slotPopulateDevice(QListViewItem* item)
+BankEditorDialog::slotPopulateDevice(TQListViewItem* item)
{
RG_DEBUG << "BankEditorDialog::slotPopulateDevice" << endl;
@@ -732,7 +732,7 @@ BankEditorDialog::slotPopulateDevice(QListViewItem* item)
}
void
-BankEditorDialog::populateDevice(QListViewItem* item)
+BankEditorDialog::populateDevice(TQListViewItem* item)
{
RG_DEBUG << "BankEditorDialog::populateDevice\n";
@@ -962,7 +962,7 @@ BankEditorDialog::slotUpdate()
}
MidiDeviceListViewItem*
-BankEditorDialog::getParentDeviceItem(QListViewItem* item)
+BankEditorDialog::getParentDeviceItem(TQListViewItem* item)
{
if (!item)
return 0;
@@ -989,7 +989,7 @@ BankEditorDialog::slotAddBank()
if (!m_listView->currentItem())
return ;
- QListViewItem* currentItem = m_listView->currentItem();
+ TQListViewItem* currentItem = m_listView->currentItem();
MidiDeviceListViewItem* deviceItem = getParentDeviceItem(currentItem);
MidiDevice *device = getMidiDevice(currentItem);
@@ -1010,7 +1010,7 @@ BankEditorDialog::slotAddBank()
qstrtostr(i18n("<new bank>")));
m_bankList.push_back(newBank);
- QListViewItem* newBankItem =
+ TQListViewItem* newBankItem =
new MidiBankListViewItem(deviceItem->getDeviceId(),
m_bankList.size() - 1,
deviceItem,
@@ -1031,14 +1031,14 @@ BankEditorDialog::slotAddKeyMapping()
if (!m_listView->currentItem())
return ;
- QListViewItem* currentItem = m_listView->currentItem();
+ TQListViewItem* currentItem = m_listView->currentItem();
MidiDeviceListViewItem* deviceItem = getParentDeviceItem(currentItem);
MidiDevice *device = getMidiDevice(currentItem);
if (device) {
- QString name = "";
+ TQString name = "";
int n = 0;
while (name == "" || device->getKeyMappingByName(qstrtostr(name)) != 0) {
++n;
@@ -1076,7 +1076,7 @@ BankEditorDialog::slotDelete()
if (!m_listView->currentItem())
return ;
- QListViewItem* currentItem = m_listView->currentItem();
+ TQListViewItem* currentItem = m_listView->currentItem();
MidiBankListViewItem* bankItem = dynamic_cast<MidiBankListViewItem*>(currentItem);
@@ -1180,19 +1180,19 @@ BankEditorDialog::slotDeleteAll()
if (!m_listView->currentItem())
return ;
- QListViewItem* currentItem = m_listView->currentItem();
+ TQListViewItem* currentItem = m_listView->currentItem();
MidiDeviceListViewItem* deviceItem = getParentDeviceItem(currentItem);
MidiDevice *device = getMidiDevice(deviceItem);
- QString question = i18n("Really delete all banks for ") +
- strtoqstr(device->getName()) + QString(" ?");
+ TQString question = i18n("Really delete all banks for ") +
+ strtoqstr(device->getName()) + TQString(" ?");
int reply = KMessageBox::warningYesNo(this, question);
if (reply == KMessageBox::Yes) {
// erase all bank items
- QListViewItem* child = 0;
+ TQListViewItem* child = 0;
while ((child = deviceItem->firstChild()))
delete child;
@@ -1244,7 +1244,7 @@ BankEditorDialog::getMidiDevice(DeviceId id)
}
MidiDevice*
-BankEditorDialog::getMidiDevice(QListViewItem* item)
+BankEditorDialog::getMidiDevice(TQListViewItem* item)
{
MidiDeviceListViewItem* deviceItem =
dynamic_cast<MidiDeviceListViewItem*>(item);
@@ -1255,7 +1255,7 @@ BankEditorDialog::getMidiDevice(QListViewItem* item)
}
std::pair<int, int>
-BankEditorDialog::getFirstFreeBank(QListViewItem* item)
+BankEditorDialog::getFirstFreeBank(TQListViewItem* item)
{
//!!! percussion? this is actually only called in the expectation
// that percussion==false at the moment
@@ -1277,7 +1277,7 @@ BankEditorDialog::getFirstFreeBank(QListViewItem* item)
}
void
-BankEditorDialog::slotModifyDeviceOrBankName(QListViewItem* item, const QString &label, int)
+BankEditorDialog::slotModifyDeviceOrBankName(TQListViewItem* item, const TQString &label, int)
{
RG_DEBUG << "BankEditorDialog::slotModifyDeviceOrBankName" << endl;
@@ -1305,9 +1305,9 @@ BankEditorDialog::slotModifyDeviceOrBankName(QListViewItem* item, const QString
RG_DEBUG << "BankEditorDialog::slotModifyDeviceOrBankName - "
<< "modify key mapping name to " << label << endl;
- QString oldName = keyItem->getName();
+ TQString oldName = keyItem->getName();
- QListViewItem* currentItem = m_listView->currentItem();
+ TQListViewItem* currentItem = m_listView->currentItem();
MidiDevice *device = getMidiDevice(currentItem);
if (device) {
@@ -1358,7 +1358,7 @@ BankEditorDialog::slotModifyDeviceOrBankName(QListViewItem* item, const QString
void
BankEditorDialog::selectDeviceItem(MidiDevice *device)
{
- QListViewItem *child = m_listView->firstChild();
+ TQListViewItem *child = m_listView->firstChild();
MidiDeviceListViewItem *midiDeviceItem;
MidiDevice *midiDevice;
@@ -1381,8 +1381,8 @@ void
BankEditorDialog::selectDeviceBankItem(DeviceId deviceId,
int bank)
{
- QListViewItem *deviceChild = m_listView->firstChild();
- QListViewItem *bankChild;
+ TQListViewItem *deviceChild = m_listView->firstChild();
+ TQListViewItem *bankChild;
int deviceCount = 0, bankCount = 0;
do {
@@ -1462,8 +1462,8 @@ BankEditorDialog::getCommandHistory()
void
BankEditorDialog::slotImport()
{
- QString deviceDir = KGlobal::dirs()->findResource("appdata", "library/");
- QDir dir(deviceDir);
+ TQString deviceDir = KGlobal::dirs()->findResource("appdata", "library/");
+ TQDir dir(deviceDir);
if (!dir.exists()) {
deviceDir = ":ROSEGARDENDEVICE";
} else {
@@ -1479,7 +1479,7 @@ BankEditorDialog::slotImport()
return ;
ImportDeviceDialog *dialog = new ImportDeviceDialog(this, url);
- if (dialog->doImport() && dialog->exec() == QDialog::Accepted) {
+ if (dialog->doImport() && dialog->exec() == TQDialog::Accepted) {
MidiDeviceListViewItem* deviceItem =
dynamic_cast<MidiDeviceListViewItem*>
@@ -1614,11 +1614,11 @@ BankEditorDialog::slotEditPaste()
void
BankEditorDialog::slotExport()
{
- QString extension = "rgd";
+ TQString extension = "rgd";
- QString name =
+ TQString name =
KFileDialog::getSaveFileName(":ROSEGARDEN",
- (extension.isEmpty() ? QString("*") : ("*." + extension)),
+ (extension.isEmpty() ? TQString("*") : ("*." + extension)),
this,
i18n("Export Device as..."));
@@ -1634,7 +1634,7 @@ BankEditorDialog::slotExport()
}
}
- QFileInfo info(name);
+ TQFileInfo info(name);
if (info.isDir()) {
KMessageBox::sorry(this, i18n("You have specified a directory"));
@@ -1660,7 +1660,7 @@ BankEditorDialog::slotExport()
if (md) {
ExportDeviceDialog *ed = new ExportDeviceDialog
(this, strtoqstr(md->getName()));
- if (ed->exec() != QDialog::Accepted)
+ if (ed->exec() != TQDialog::Accepted)
return ;
if (ed->getExportType() == ExportDeviceDialog::ExportOne) {
devices.push_back(md->getId());
@@ -1686,7 +1686,7 @@ BankEditorDialog::slotFileClose()
}
void
-BankEditorDialog::closeEvent(QCloseEvent *e)
+BankEditorDialog::closeEvent(TQCloseEvent *e)
{
if (m_modified) {
diff --git a/src/gui/studio/BankEditorDialog.h b/src/gui/studio/BankEditorDialog.h
index 0e49430..6e36bef 100644
--- a/src/gui/studio/BankEditorDialog.h
+++ b/src/gui/studio/BankEditorDialog.h
@@ -34,13 +34,13 @@
#include <utility>
-class QWidget;
-class QString;
-class QPushButton;
-class QListViewItem;
-class QGroupBox;
-class QCloseEvent;
-class QCheckBox;
+class TQWidget;
+class TQString;
+class TQPushButton;
+class TQListViewItem;
+class TQGroupBox;
+class TQCloseEvent;
+class TQCheckBox;
class KListView;
class KCommand;
class KComboBox;
@@ -63,7 +63,7 @@ class BankEditorDialog : public KMainWindow
Q_OBJECT
public:
- BankEditorDialog(QWidget *parent,
+ BankEditorDialog(TQWidget *parent,
RosegardenGUIDoc *doc,
DeviceId defaultDevice =
Device::NO_DEVICE);
@@ -74,7 +74,7 @@ public:
//
void initDialog();
- std::pair<int, int> getFirstFreeBank(QListViewItem*);
+ std::pair<int, int> getFirstFreeBank(TQListViewItem*);
void addCommandToHistory(KCommand *command);
MultiViewCommandHistory* getCommandHistory();
@@ -84,7 +84,7 @@ public:
// Get a MidiDevice from an index number
//
MidiDevice* getMidiDevice(DeviceId);
- MidiDevice* getMidiDevice(QListViewItem*);
+ MidiDevice* getMidiDevice(TQListViewItem*);
MidiDevice* getCurrentMidiDevice();
BankList& getBankList() { return m_bankList; }
ProgramList&getProgramList() { return m_programList; }
@@ -105,7 +105,7 @@ public:
void selectDeviceBankItem(DeviceId device, int bank);
public slots:
- void slotPopulateDevice(QListViewItem*);
+ void slotPopulateDevice(TQListViewItem*);
void slotApply();
void slotReset();
@@ -120,7 +120,7 @@ public slots:
void slotImport();
void slotExport();
- void slotModifyDeviceOrBankName(QListViewItem*, const QString&,int);
+ void slotModifyDeviceOrBankName(TQListViewItem*, const TQString&,int);
void slotFileClose();
@@ -135,26 +135,26 @@ signals:
void deviceNamesChanged();
protected:
- virtual void closeEvent(QCloseEvent*);
+ virtual void closeEvent(TQCloseEvent*);
void resetProgramList();
void setProgramList(MidiDevice *device);
void updateDialog();
- void populateDeviceItem(QListViewItem* deviceItem,
+ void populateDeviceItem(TQListViewItem* deviceItem,
MidiDevice* midiDevice);
void updateDeviceItem(MidiDeviceListViewItem* deviceItem);
bool deviceItemHasBank(MidiDeviceListViewItem* deviceItem, int bankNb);
- void clearItemChildren(QListViewItem* deviceItem);
+ void clearItemChildren(TQListViewItem* deviceItem);
- MidiDeviceListViewItem* getParentDeviceItem(QListViewItem*);
+ MidiDeviceListViewItem* getParentDeviceItem(TQListViewItem*);
void keepBankListForNextPopulate() { m_keepBankList = true; }
- void populateDevice(QListViewItem*);
+ void populateDevice(TQListViewItem*);
void setupActions();
@@ -166,24 +166,24 @@ protected:
MidiKeyMappingEditor *m_keyMappingEditor;
KListView *m_listView;
- QGroupBox *m_optionBox;
- QCheckBox *m_variationToggle;
+ TQGroupBox *m_optionBox;
+ TQCheckBox *m_variationToggle;
KComboBox *m_variationCombo;
- QPushButton *m_closeButton;
- QPushButton *m_resetButton;
- QPushButton *m_applyButton;
+ TQPushButton *m_closeButton;
+ TQPushButton *m_resetButton;
+ TQPushButton *m_applyButton;
- QPushButton *m_addBank;
- QPushButton *m_addKeyMapping;
- QPushButton *m_delete;
- QPushButton *m_deleteAll;
+ TQPushButton *m_addBank;
+ TQPushButton *m_addKeyMapping;
+ TQPushButton *m_delete;
+ TQPushButton *m_deleteAll;
- QPushButton *m_importBanks;
- QPushButton *m_exportBanks;
+ TQPushButton *m_importBanks;
+ TQPushButton *m_exportBanks;
- QPushButton *m_copyPrograms;
- QPushButton *m_pastePrograms;
+ TQPushButton *m_copyPrograms;
+ TQPushButton *m_pastePrograms;
std::pair<DeviceId, int> m_copyBank;
std::map<DeviceId, std::string> m_deviceNameMap;
diff --git a/src/gui/studio/ChangeRecordDeviceCommand.cpp b/src/gui/studio/ChangeRecordDeviceCommand.cpp
index a5a3947..5f46eff 100644
--- a/src/gui/studio/ChangeRecordDeviceCommand.cpp
+++ b/src/gui/studio/ChangeRecordDeviceCommand.cpp
@@ -38,8 +38,8 @@ ChangeRecordDeviceCommand::swap()
KConfig *config = kapp->config();
config->setGroup(Rosegarden::SequencerOptionsConfigGroup);
- QStringList devList = config->readListEntry("midirecorddevice");
- QString sdevice = QString::number(m_deviceId);
+ TQStringList devList = config->readListEntry("midirecorddevice");
+ TQString sdevice = TQString::number(m_deviceId);
if (m_action)
{
if(!devList.contains(sdevice))
diff --git a/src/gui/studio/DeviceEditorDialog.cpp b/src/gui/studio/DeviceEditorDialog.cpp
index 29c9dd4..9f45c31 100644
--- a/src/gui/studio/DeviceEditorDialog.cpp
+++ b/src/gui/studio/DeviceEditorDialog.cpp
@@ -39,23 +39,23 @@
#include "gui/application/RosegardenApplication.h"
#include <kdialogbase.h>
#include <kmessagebox.h>
-#include <qcstring.h>
-#include <qdatastream.h>
-#include <qhbox.h>
-#include <qpushbutton.h>
-#include <qregexp.h>
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qtable.h>
-#include <qvbox.h>
-#include <qwidget.h>
+#include <tqcstring.h>
+#include <tqdatastream.h>
+#include <tqhbox.h>
+#include <tqpushbutton.h>
+#include <tqregexp.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqtable.h>
+#include <tqvbox.h>
+#include <tqwidget.h>
#include <algorithm>
namespace Rosegarden
{
-DeviceEditorDialog::DeviceEditorDialog(QWidget *parent,
+DeviceEditorDialog::DeviceEditorDialog(TQWidget *parent,
RosegardenGUIDoc *document) :
KDialogBase(parent, "deviceeditordialog", true,
i18n("Manage MIDI Devices"), Ok | Apply | Close, Ok, true),
@@ -63,9 +63,9 @@ DeviceEditorDialog::DeviceEditorDialog(QWidget *parent,
m_studio(&document->getStudio()),
m_modified(false)
{
- QVBox *mainBox = makeVBoxMainWidget();
+ TQVBox *mainBox = makeVBoxMainWidget();
- m_table = new QTable(0, 4, mainBox);
+ m_table = new TQTable(0, 4, mainBox);
m_table->setSorting(false);
m_table->setRowMovingEnabled(false);
m_table->setColumnMovingEnabled(false);
@@ -77,7 +77,7 @@ DeviceEditorDialog::DeviceEditorDialog(QWidget *parent,
m_table->horizontalHeader()->show();
m_table->verticalHeader()->hide();
m_table->setLeftMargin(0);
- m_table->setSelectionMode(QTable::SingleRow);
+ m_table->setSelectionMode(TQTable::SingleRow);
m_table->setColumnReadOnly(0, true);
m_table->setColumnReadOnly(2, true);
@@ -88,15 +88,15 @@ DeviceEditorDialog::DeviceEditorDialog(QWidget *parent,
populate();
- QHBox *hbox = new QHBox(mainBox);
- QPushButton *addButton = new QPushButton(i18n("Add Play Device"), hbox);
- QPushButton *addRButton = new QPushButton(i18n("Add Record Device"), hbox);
- QPushButton *deleteButton = new QPushButton(i18n("Delete Device"), hbox);
- connect(addButton, SIGNAL(clicked()), this, SLOT(slotAddPlayDevice()));
- connect(addRButton, SIGNAL(clicked()), this, SLOT(slotAddRecordDevice()));
- connect(deleteButton, SIGNAL(clicked()), this, SLOT(slotDeleteDevice()));
- connect(m_table, SIGNAL(valueChanged(int, int)),
- this, SLOT(slotValueChanged (int, int)));
+ TQHBox *hbox = new TQHBox(mainBox);
+ TQPushButton *addButton = new TQPushButton(i18n("Add Play Device"), hbox);
+ TQPushButton *addRButton = new TQPushButton(i18n("Add Record Device"), hbox);
+ TQPushButton *deleteButton = new TQPushButton(i18n("Delete Device"), hbox);
+ connect(addButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotAddPlayDevice()));
+ connect(addRButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotAddRecordDevice()));
+ connect(deleteButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDeleteDevice()));
+ connect(m_table, TQT_SIGNAL(valueChanged(int, int)),
+ this, TQT_SLOT(slotValueChanged (int, int)));
setMinimumHeight(250);
@@ -145,9 +145,9 @@ DeviceEditorDialog::populate()
MidiDevice *md = static_cast<MidiDevice *>(*it);
// if you change this string ("Device %1"), change test in slotApply
- QString deviceName = i18n("Device %1").arg(md->getId() + 1);
- QString deviceLabel = strtoqstr(md->getName());
- QString connectionName = strtoqstr(md->getConnection());
+ TQString deviceName = i18n("Device %1").arg(md->getId() + 1);
+ TQString deviceLabel = strtoqstr(md->getName());
+ TQString connectionName = strtoqstr(md->getConnection());
m_table->setText(deviceCount, NAME_COL, deviceName);
m_table->setText(deviceCount, LABEL_COL, deviceLabel);
@@ -155,7 +155,7 @@ DeviceEditorDialog::populate()
(md->getDirection() == MidiDevice::Play ?
i18n("Play") : i18n("Record")));
- QStringList &list(md->getDirection() == MidiDevice::Play ?
+ TQStringList &list(md->getDirection() == MidiDevice::Play ?
m_playConnections : m_recordConnections);
int currentConnectionIndex = list.size() - 1;
for (unsigned int i = 0; i < list.size(); ++i) {
@@ -163,7 +163,7 @@ DeviceEditorDialog::populate()
currentConnectionIndex = i;
}
- QComboTableItem *item = new QComboTableItem(m_table, list, false);
+ TQComboTableItem *item = new TQComboTableItem(m_table, list, false);
item->setCurrentItem(currentConnectionIndex);
m_table->setItem(deviceCount, CONNECTION_COL, item);
@@ -181,12 +181,12 @@ DeviceEditorDialog::populate()
void
DeviceEditorDialog::makeConnectionList(unsigned int direction,
- QStringList &list)
+ TQStringList &list)
{
- QByteArray data;
- QByteArray replyData;
- QCString replyType;
- QDataStream arg(data, IO_WriteOnly);
+ TQByteArray data;
+ TQByteArray replyData;
+ TQCString replyType;
+ TQDataStream arg(data, IO_WriteOnly);
arg << (int)Device::Midi;
arg << direction;
@@ -196,17 +196,17 @@ DeviceEditorDialog::makeConnectionList(unsigned int direction,
return ;
}
- QDataStream reply(replyData, IO_ReadOnly);
+ TQDataStream reply(replyData, IO_ReadOnly);
unsigned int connections = 0;
if (replyType == "unsigned int")
reply >> connections;
for (unsigned int i = 0; i < connections; ++i) {
- QByteArray data;
- QByteArray replyData;
- QCString replyType;
- QDataStream arg(data, IO_WriteOnly);
+ TQByteArray data;
+ TQByteArray replyData;
+ TQCString replyType;
+ TQDataStream arg(data, IO_WriteOnly);
arg << (int)Device::Midi;
arg << direction;
arg << i;
@@ -219,9 +219,9 @@ DeviceEditorDialog::makeConnectionList(unsigned int direction,
return ;
}
- QDataStream reply(replyData, IO_ReadOnly);
- QString connection;
- if (replyType == "QString") {
+ TQDataStream reply(replyData, IO_ReadOnly);
+ TQString connection;
+ if (replyType == "TQString") {
reply >> connection;
list.append(connection);
}
@@ -335,12 +335,12 @@ DeviceEditorDialog::slotApply()
int
DeviceEditorDialog::getDeviceIdAt(int row) // -1 for new device w/o an id yet
{
- QString t(m_table->text(row, 0));
+ TQString t(m_table->text(row, 0));
- QRegExp re("^.*(\\d+).*$");
+ TQRegExp re("^.*(\\d+).*$");
re.search(t);
- QString number = re.cap(1);
+ TQString number = re.cap(1);
int id = -1;
if (number && number != "")
@@ -360,8 +360,8 @@ DeviceEditorDialog::slotAddPlayDevice()
m_table->setText(n, 1, i18n("New Device"));
m_table->setText(n, 2, i18n("Play"));
- QComboTableItem *item =
- new QComboTableItem(m_table, m_playConnections, false);
+ TQComboTableItem *item =
+ new TQComboTableItem(m_table, m_playConnections, false);
item->setCurrentItem(m_playConnections.size() - 1);
m_table->setItem(n, 3, item);
m_table->adjustRow(n);
@@ -378,8 +378,8 @@ DeviceEditorDialog::slotAddRecordDevice()
m_table->setText(n, 1, i18n("New Device"));
m_table->setText(n, 2, i18n("Record"));
- QComboTableItem *item =
- new QComboTableItem(m_table, m_recordConnections, false);
+ TQComboTableItem *item =
+ new TQComboTableItem(m_table, m_recordConnections, false);
item->setCurrentItem(m_recordConnections.size() - 1);
m_table->setItem(n, 3, item);
m_table->adjustRow(n);
diff --git a/src/gui/studio/DeviceEditorDialog.h b/src/gui/studio/DeviceEditorDialog.h
index 2bde025..44247b3 100644
--- a/src/gui/studio/DeviceEditorDialog.h
+++ b/src/gui/studio/DeviceEditorDialog.h
@@ -28,12 +28,12 @@
#include <base/Studio.h>
#include <kdialogbase.h>
-#include <qstringlist.h>
+#include <tqstringlist.h>
#include <set>
-class QWidget;
-class QTable;
+class TQWidget;
+class TQTable;
namespace Rosegarden
@@ -47,7 +47,7 @@ class DeviceEditorDialog : public KDialogBase
{
Q_OBJECT
public:
- DeviceEditorDialog(QWidget *parent, RosegardenGUIDoc *document);
+ DeviceEditorDialog(TQWidget *parent, RosegardenGUIDoc *document);
~DeviceEditorDialog();
void setModified(bool value);
@@ -66,11 +66,11 @@ private:
RosegardenGUIDoc *m_document;
Studio *m_studio;
- QStringList m_playConnections;
- QStringList m_recordConnections;
- void makeConnectionList(unsigned int direction, QStringList &list);
+ TQStringList m_playConnections;
+ TQStringList m_recordConnections;
+ void makeConnectionList(unsigned int direction, TQStringList &list);
- QTable *m_table;
+ TQTable *m_table;
DeviceList m_devices;
std::set<DeviceId> m_deletedDevices;
diff --git a/src/gui/studio/DeviceManagerDialog.cpp b/src/gui/studio/DeviceManagerDialog.cpp
index 8f2fa6b..eb40c77 100644
--- a/src/gui/studio/DeviceManagerDialog.cpp
+++ b/src/gui/studio/DeviceManagerDialog.cpp
@@ -54,22 +54,22 @@
#include <kmessagebox.h>
#include <kstdaccel.h>
#include <kstdaction.h>
-#include <qcstring.h>
-#include <qdatastream.h>
-#include <qdialog.h>
-#include <qdir.h>
-#include <qfileinfo.h>
-#include <qframe.h>
-#include <qgrid.h>
-#include <qgroupbox.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qsizepolicy.h>
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qtable.h>
-#include <qtooltip.h>
-#include <qwidget.h>
+#include <tqcstring.h>
+#include <tqdatastream.h>
+#include <tqdialog.h>
+#include <tqdir.h>
+#include <tqfileinfo.h>
+#include <tqframe.h>
+#include <tqgrid.h>
+#include <tqgroupbox.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
+#include <tqsizepolicy.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqtable.h>
+#include <tqtooltip.h>
+#include <tqwidget.h>
namespace Rosegarden
@@ -83,21 +83,21 @@ static const int RECORD_CURRENT_COL = 1;
static const int RECORD_CONNECTION_COL = 2;
-DeviceManagerDialog::DeviceManagerDialog(QWidget *parent,
+DeviceManagerDialog::DeviceManagerDialog(TQWidget *parent,
RosegardenGUIDoc *document) :
KMainWindow(parent, "deviceeditordialog"),
m_document(document),
m_studio(&document->getStudio())
{
- QFrame * mainBox = new QFrame(this);
+ TQFrame * mainBox = new TQFrame(this);
setCentralWidget(mainBox);
- QVBoxLayout *mainLayout = new QVBoxLayout(mainBox, 10, 10);
+ TQVBoxLayout *mainLayout = new TQVBoxLayout(mainBox, 10, 10);
setCaption(i18n("Manage MIDI Devices"));
- QGroupBox *groupBox = new QGroupBox(2, Horizontal, i18n("Play devices"), mainBox);
+ TQGroupBox *groupBox = new TQGroupBox(2, Horizontal, i18n("Play devices"), mainBox);
- m_playTable = new QTable(0, 2, groupBox);
+ m_playTable = new TQTable(0, 2, groupBox);
m_playTable->setSorting(false);
m_playTable->setRowMovingEnabled(false);
m_playTable->setColumnMovingEnabled(false);
@@ -107,55 +107,55 @@ DeviceManagerDialog::DeviceManagerDialog(QWidget *parent,
m_playTable->horizontalHeader()->show();
m_playTable->verticalHeader()->hide();
m_playTable->setLeftMargin(0);
- m_playTable->setSelectionMode(QTable::SingleRow);
-
- QFrame *frame = new QFrame(groupBox);
- QVBoxLayout *vlayout = new QVBoxLayout(frame);
- QGrid *buttons = new QGrid(2, Horizontal, frame);
- QPushButton *addButton = new QPushButton(i18n("New"), buttons);
- m_deletePlayButton = new QPushButton(i18n("Delete"), buttons);
- m_importButton = new QPushButton(i18n("Import..."), buttons);
- m_exportButton = new QPushButton(i18n("Export..."), buttons);
- m_banksButton = new QPushButton(i18n("Banks..."), buttons);
- m_controllersButton = new QPushButton(i18n("Control Events..."), buttons);
+ m_playTable->setSelectionMode(TQTable::SingleRow);
+
+ TQFrame *frame = new TQFrame(groupBox);
+ TQVBoxLayout *vlayout = new TQVBoxLayout(frame);
+ TQGrid *buttons = new TQGrid(2, Horizontal, frame);
+ TQPushButton *addButton = new TQPushButton(i18n("New"), buttons);
+ m_deletePlayButton = new TQPushButton(i18n("Delete"), buttons);
+ m_importButton = new TQPushButton(i18n("Import..."), buttons);
+ m_exportButton = new TQPushButton(i18n("Export..."), buttons);
+ m_banksButton = new TQPushButton(i18n("Banks..."), buttons);
+ m_controllersButton = new TQPushButton(i18n("Control Events..."), buttons);
vlayout->addWidget(buttons);
vlayout->addStretch(10);
- QToolTip::add
+ TQToolTip::add
(addButton,
i18n("Create a new Play device"));
- QToolTip::add
+ TQToolTip::add
(m_deletePlayButton,
i18n("Delete the selected device"));
- QToolTip::add
+ TQToolTip::add
(m_importButton,
i18n("Import Bank, Program and Controller data from a Rosegarden file to the selected device"));
- QToolTip::add
+ TQToolTip::add
(m_exportButton,
i18n("Export Bank and Controller data to a Rosegarden interchange file"));
- QToolTip::add
+ TQToolTip::add
(m_banksButton,
i18n("View and edit Banks and Programs for the selected device"));
- QToolTip::add
+ TQToolTip::add
(m_controllersButton,
i18n("View and edit Control Events for the selected device - these are special Event types that you can define against your device and control through Control Rulers or the Instrument Parameter Box "));
- connect(addButton, SIGNAL(clicked()), this, SLOT(slotAddPlayDevice()));
- connect(m_deletePlayButton, SIGNAL(clicked()), this, SLOT(slotDeletePlayDevice()));
- connect(m_importButton, SIGNAL(clicked()), this, SLOT(slotImport()));
- connect(m_exportButton, SIGNAL(clicked()), this, SLOT(slotExport()));
- connect(m_banksButton, SIGNAL(clicked()), this, SLOT(slotSetBanks()));
- connect(m_controllersButton, SIGNAL(clicked()), this, SLOT(slotSetControllers()));
+ connect(addButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotAddPlayDevice()));
+ connect(m_deletePlayButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDeletePlayDevice()));
+ connect(m_importButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotImport()));
+ connect(m_exportButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotExport()));
+ connect(m_banksButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSetBanks()));
+ connect(m_controllersButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSetControllers()));
- connect(m_playTable, SIGNAL(valueChanged(int, int)),
- this, SLOT(slotPlayValueChanged (int, int)));
- connect(m_playTable, SIGNAL(currentChanged(int, int)),
- this, SLOT(slotPlayDeviceSelected (int, int)));
+ connect(m_playTable, TQT_SIGNAL(valueChanged(int, int)),
+ this, TQT_SLOT(slotPlayValueChanged (int, int)));
+ connect(m_playTable, TQT_SIGNAL(currentChanged(int, int)),
+ this, TQT_SLOT(slotPlayDeviceSelected (int, int)));
mainLayout->addWidget(groupBox);
- groupBox = new QGroupBox(2, Horizontal, i18n("Record devices"), mainBox);
+ groupBox = new TQGroupBox(2, Horizontal, i18n("Record devices"), mainBox);
- m_recordTable = new QTable(0, 3, groupBox);
+ m_recordTable = new TQTable(0, 3, groupBox);
m_recordTable->setSorting(false);
m_recordTable->setRowMovingEnabled(false);
m_recordTable->setColumnMovingEnabled(false);
@@ -166,32 +166,32 @@ DeviceManagerDialog::DeviceManagerDialog(QWidget *parent,
m_recordTable->horizontalHeader()->show();
m_recordTable->verticalHeader()->hide();
m_recordTable->setLeftMargin(0);
- m_recordTable->setSelectionMode(QTable::SingleRow);
+ m_recordTable->setSelectionMode(TQTable::SingleRow);
- frame = new QFrame(groupBox);
- vlayout = new QVBoxLayout(frame);
- buttons = new QGrid(2, Horizontal, frame);
- addButton = new QPushButton(i18n("New"), buttons);
- m_deleteRecordButton = new QPushButton(i18n("Delete"), buttons);
+ frame = new TQFrame(groupBox);
+ vlayout = new TQVBoxLayout(frame);
+ buttons = new TQGrid(2, Horizontal, frame);
+ addButton = new TQPushButton(i18n("New"), buttons);
+ m_deleteRecordButton = new TQPushButton(i18n("Delete"), buttons);
vlayout->addWidget(buttons);
vlayout->addStretch(10);
- QToolTip::add
+ TQToolTip::add
(addButton,
i18n("Create a new Record device"));
- QToolTip::add
+ TQToolTip::add
(m_deleteRecordButton,
i18n("Delete the selected device"));
- connect(addButton, SIGNAL(clicked()), this, SLOT(slotAddRecordDevice()));
- connect(m_deleteRecordButton, SIGNAL(clicked()), this, SLOT(slotDeleteRecordDevice()));
+ connect(addButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotAddRecordDevice()));
+ connect(m_deleteRecordButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDeleteRecordDevice()));
- connect(m_recordTable, SIGNAL(currentChanged(int, int)),
- this, SLOT(slotRecordDeviceSelected (int, int)));
- connect(m_recordTable, SIGNAL(valueChanged(int, int)),
- this, SLOT(slotRecordValueChanged (int, int)));
+ connect(m_recordTable, TQT_SIGNAL(currentChanged(int, int)),
+ this, TQT_SLOT(slotRecordDeviceSelected (int, int)));
+ connect(m_recordTable, TQT_SIGNAL(valueChanged(int, int)),
+ this, TQT_SLOT(slotRecordValueChanged (int, int)));
- connect(document, SIGNAL(devicesResyncd()), this, SLOT(slotDevicesResyncd()));
+ connect(document, TQT_SIGNAL(devicesResyncd()), this, TQT_SLOT(slotDevicesResyncd()));
m_noConnectionString = i18n("No connection");
@@ -202,24 +202,24 @@ DeviceManagerDialog::DeviceManagerDialog(QWidget *parent,
mainLayout->addWidget(groupBox);
- QFrame* btnBox = new QFrame(mainBox);
+ TQFrame* btnBox = new TQFrame(mainBox);
btnBox->setSizePolicy(
- QSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed));
+ TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Fixed));
- QPushButton *closeButton = new QPushButton(i18n("Close"), btnBox);
+ TQPushButton *closeButton = new TQPushButton(i18n("Close"), btnBox);
- QHBoxLayout* layout = new QHBoxLayout(btnBox, 0, 10);
+ TQHBoxLayout* layout = new TQHBoxLayout(btnBox, 0, 10);
layout->addStretch(10);
layout->addWidget(closeButton);
layout->addSpacing(5);
KAction* close = KStdAction::close(this,
- SLOT(slotClose()),
+ TQT_SLOT(slotClose()),
actionCollection());
closeButton->setText(close->text());
- connect(closeButton, SIGNAL(clicked()), this, SLOT(slotClose()));
+ connect(closeButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotClose()));
mainLayout->addWidget(btnBox);
@@ -239,8 +239,8 @@ DeviceManagerDialog::DeviceManagerDialog(QWidget *parent,
createGUI("devicemanager.rc");
m_document->getCommandHistory()->attachView(actionCollection());
- connect(m_document->getCommandHistory(), SIGNAL(commandExecuted()),
- this, SLOT(populate()));
+ connect(m_document->getCommandHistory(), TQT_SIGNAL(commandExecuted()),
+ this, TQT_SLOT(populate()));
m_playTable->setCurrentCell( -1, 0);
m_recordTable->setCurrentCell( -1, 0);
@@ -326,8 +326,8 @@ DeviceManagerDialog::DeviceManagerDialog(QWidget *parent,
m_playTable->insertRows(deviceCount, 1);
- QString deviceName = i18n("%1").arg(deviceCount + 1);
- QString connectionName = strtoqstr((*it)->getConnection());
+ TQString deviceName = i18n("%1").arg(deviceCount + 1);
+ TQString connectionName = strtoqstr((*it)->getConnection());
m_playTable->setText(deviceCount, PLAY_NAME_COL,
strtoqstr((*it)->getName()));
@@ -338,7 +338,7 @@ DeviceManagerDialog::DeviceManagerDialog(QWidget *parent,
currentConnectionIndex = i;
}
- QComboTableItem *item = new QComboTableItem(m_playTable, m_playConnections, false);
+ TQComboTableItem *item = new TQComboTableItem(m_playTable, m_playConnections, false);
item->setCurrentItem(currentConnectionIndex);
m_playTable->setItem(deviceCount, PLAY_CONNECTION_COL, item);
@@ -360,8 +360,8 @@ DeviceManagerDialog::DeviceManagerDialog(QWidget *parent,
m_recordTable->insertRows(deviceCount, 1);
- QString deviceName = i18n("%1").arg(deviceCount + 1);
- QString connectionName = strtoqstr((*it)->getConnection());
+ TQString deviceName = i18n("%1").arg(deviceCount + 1);
+ TQString connectionName = strtoqstr((*it)->getConnection());
m_recordTable->setText(deviceCount, RECORD_NAME_COL,
strtoqstr((*it)->getName()));
@@ -372,11 +372,11 @@ DeviceManagerDialog::DeviceManagerDialog(QWidget *parent,
currentConnectionIndex = i;
}
- QComboTableItem *item = new QComboTableItem(m_recordTable, m_recordConnections, false);
+ TQComboTableItem *item = new TQComboTableItem(m_recordTable, m_recordConnections, false);
item->setCurrentItem(currentConnectionIndex);
m_recordTable->setItem(deviceCount, RECORD_CONNECTION_COL, item);
- QCheckTableItem *check = new QCheckTableItem(m_recordTable, QString());
+ TQCheckTableItem *check = new TQCheckTableItem(m_recordTable, TQString());
//check->setChecked((*it)->getId() == recordDevice);
//check->setText(((*it)->getId() == recordDevice) ?
// i18n("Yes") : i18n("No"));
@@ -401,14 +401,14 @@ DeviceManagerDialog::DeviceManagerDialog(QWidget *parent,
void
DeviceManagerDialog::makeConnectionList(unsigned int direction,
- QStringList &list)
+ TQStringList &list)
{
list.clear();
- QByteArray data;
- QByteArray replyData;
- QCString replyType;
- QDataStream arg(data, IO_WriteOnly);
+ TQByteArray data;
+ TQByteArray replyData;
+ TQCString replyType;
+ TQDataStream arg(data, IO_WriteOnly);
arg << (int)Device::Midi;
arg << direction;
@@ -418,17 +418,17 @@ DeviceManagerDialog::DeviceManagerDialog(QWidget *parent,
return ;
}
- QDataStream reply(replyData, IO_ReadOnly);
+ TQDataStream reply(replyData, IO_ReadOnly);
unsigned int connections = 0;
if (replyType == "unsigned int")
reply >> connections;
for (unsigned int i = 0; i < connections; ++i) {
- QByteArray data;
- QByteArray replyData;
- QCString replyType;
- QDataStream arg(data, IO_WriteOnly);
+ TQByteArray data;
+ TQByteArray replyData;
+ TQCString replyType;
+ TQDataStream arg(data, IO_WriteOnly);
arg << (int)Device::Midi;
arg << direction;
arg << i;
@@ -441,9 +441,9 @@ DeviceManagerDialog::DeviceManagerDialog(QWidget *parent,
return ;
}
- QDataStream reply(replyData, IO_ReadOnly);
- QString connection;
- if (replyType == "QString") {
+ TQDataStream reply(replyData, IO_ReadOnly);
+ TQString connection;
+ if (replyType == "TQString") {
reply >> connection;
list.append(connection);
}
@@ -453,7 +453,7 @@ DeviceManagerDialog::DeviceManagerDialog(QWidget *parent,
}
void
- DeviceManagerDialog::closeEvent(QCloseEvent *e)
+ DeviceManagerDialog::closeEvent(TQCloseEvent *e)
{
emit closing();
KMainWindow::closeEvent(e);
@@ -478,7 +478,7 @@ DeviceManagerDialog::DeviceManagerDialog(QWidget *parent,
void
DeviceManagerDialog::slotAddPlayDevice()
{
- QString connection = "";
+ TQString connection = "";
if (m_playConnections.size() > 0)
connection = m_playConnections[m_playConnections.size() - 1];
CreateOrDeleteDeviceCommand *command = new CreateOrDeleteDeviceCommand
@@ -493,7 +493,7 @@ DeviceManagerDialog::DeviceManagerDialog(QWidget *parent,
void
DeviceManagerDialog::slotAddRecordDevice()
{
- QString connection = "";
+ TQString connection = "";
if (m_recordConnections.size() > 0)
connection = m_recordConnections[m_recordConnections.size() - 1];
CreateOrDeleteDeviceCommand *command = new CreateOrDeleteDeviceCommand
@@ -516,8 +516,8 @@ DeviceManagerDialog::DeviceManagerDialog(QWidget *parent,
(m_studio, id);
m_document->getCommandHistory()->addCommand(command);
- QByteArray data;
- QDataStream arg(data, IO_WriteOnly);
+ TQByteArray data;
+ TQDataStream arg(data, IO_WriteOnly);
arg << (unsigned int)id;
rgapp->sequencerSend("removeDevice(unsigned int)", data);
}
@@ -560,13 +560,13 @@ DeviceManagerDialog::DeviceManagerDialog(QWidget *parent,
(new RenameDeviceCommand(m_studio, id, name));
emit deviceNamesChanged();
- QByteArray data;
- QDataStream arg(data, IO_WriteOnly);
+ TQByteArray data;
+ TQDataStream arg(data, IO_WriteOnly);
arg << (unsigned int)id;
arg << m_playTable->text(row, col);
- rgapp->sequencerSend("renameDevice(unsigned int, QString)", data);
+ rgapp->sequencerSend("renameDevice(unsigned int, TQString)", data);
}
}
break;
@@ -611,13 +611,13 @@ DeviceManagerDialog::DeviceManagerDialog(QWidget *parent,
(new RenameDeviceCommand(m_studio, id, name));
emit deviceNamesChanged();
- QByteArray data;
- QDataStream arg(data, IO_WriteOnly);
+ TQByteArray data;
+ TQDataStream arg(data, IO_WriteOnly);
arg << (unsigned int)id;
arg << m_recordTable->text(row, col);
- rgapp->sequencerSend("renameDevice(unsigned int, QString)", data);
+ rgapp->sequencerSend("renameDevice(unsigned int, TQString)", data);
}
}
break;
@@ -634,8 +634,8 @@ DeviceManagerDialog::DeviceManagerDialog(QWidget *parent,
case RECORD_CURRENT_COL: {
m_recordTable->blockSignals(true);
- QCheckTableItem *check =
- dynamic_cast<QCheckTableItem *>(m_recordTable->item(row, col));
+ TQCheckTableItem *check =
+ dynamic_cast<TQCheckTableItem *>(m_recordTable->item(row, col));
if (!check)
return ;
@@ -689,8 +689,8 @@ DeviceManagerDialog::DeviceManagerDialog(QWidget *parent,
if (id == Device::NO_DEVICE)
return ;
- QString deviceDir = KGlobal::dirs()->findResource("appdata", "library/");
- QDir dir(deviceDir);
+ TQString deviceDir = KGlobal::dirs()->findResource("appdata", "library/");
+ TQDir dir(deviceDir);
if (!dir.exists()) {
deviceDir = ":ROSEGARDENDEVICE";
} else {
@@ -706,7 +706,7 @@ DeviceManagerDialog::DeviceManagerDialog(QWidget *parent,
return ;
ImportDeviceDialog *dialog = new ImportDeviceDialog(this, url);
- if (dialog->doImport() && dialog->exec() == QDialog::Accepted) {
+ if (dialog->doImport() && dialog->exec() == TQDialog::Accepted) {
ModifyDeviceCommand *command = 0;
@@ -761,11 +761,11 @@ DeviceManagerDialog::DeviceManagerDialog(QWidget *parent,
void
DeviceManagerDialog::slotExport()
{
- QString extension = "rgd";
+ TQString extension = "rgd";
- QString name =
+ TQString name =
KFileDialog::getSaveFileName(":ROSEGARDEN",
- (extension.isEmpty() ? QString("*") : ("*." + extension)),
+ (extension.isEmpty() ? TQString("*") : ("*." + extension)),
this,
i18n("Export Device as..."));
@@ -781,7 +781,7 @@ DeviceManagerDialog::DeviceManagerDialog(QWidget *parent,
}
}
- QFileInfo info(name);
+ TQFileInfo info(name);
if (info.isDir()) {
KMessageBox::sorry(this, i18n("You have specified a directory"));
@@ -805,7 +805,7 @@ DeviceManagerDialog::DeviceManagerDialog(QWidget *parent,
}
if (md) {
ExportDeviceDialog ed(this, strtoqstr(md->getName()));
- if (ed.exec() != QDialog::Accepted)
+ if (ed.exec() != TQDialog::Accepted)
return ;
if (ed.getExportType() == ExportDeviceDialog::ExportOne) {
devices.push_back(id);
diff --git a/src/gui/studio/DeviceManagerDialog.h b/src/gui/studio/DeviceManagerDialog.h
index aebc54e..84dceab 100644
--- a/src/gui/studio/DeviceManagerDialog.h
+++ b/src/gui/studio/DeviceManagerDialog.h
@@ -28,15 +28,15 @@
#include "base/Device.h"
#include <kmainwindow.h>
-#include <qstring.h>
-#include <qstringlist.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
#include <vector>
-class QWidget;
-class QTable;
-class QPushButton;
-class QCloseEvent;
+class TQWidget;
+class TQTable;
+class TQPushButton;
+class TQCloseEvent;
namespace Rosegarden
@@ -51,7 +51,7 @@ class DeviceManagerDialog : public KMainWindow
{
Q_OBJECT
public:
- DeviceManagerDialog(QWidget *parent, RosegardenGUIDoc *document);
+ DeviceManagerDialog(TQWidget *parent, RosegardenGUIDoc *document);
~DeviceManagerDialog();
void setModified(bool value);
@@ -85,25 +85,25 @@ protected slots:
void populate();
protected:
- virtual void closeEvent(QCloseEvent *);
+ virtual void closeEvent(TQCloseEvent *);
private:
RosegardenGUIDoc *m_document;
Studio *m_studio;
- QPushButton *m_deletePlayButton;
- QPushButton *m_deleteRecordButton;
- QPushButton *m_importButton;
- QPushButton *m_exportButton;
- QPushButton *m_banksButton;
- QPushButton *m_controllersButton;
+ TQPushButton *m_deletePlayButton;
+ TQPushButton *m_deleteRecordButton;
+ TQPushButton *m_importButton;
+ TQPushButton *m_exportButton;
+ TQPushButton *m_banksButton;
+ TQPushButton *m_controllersButton;
- QStringList m_playConnections;
- QStringList m_recordConnections;
- void makeConnectionList(unsigned int direction, QStringList &list);
+ TQStringList m_playConnections;
+ TQStringList m_recordConnections;
+ void makeConnectionList(unsigned int direction, TQStringList &list);
- QTable *m_playTable;
- QTable *m_recordTable;
+ TQTable *m_playTable;
+ TQTable *m_recordTable;
typedef std::vector<MidiDevice *> MidiDeviceList;
MidiDeviceList m_playDevices;
@@ -112,7 +112,7 @@ private:
DeviceId getPlayDeviceIdAt(int row); // NO_DEVICE = not found
DeviceId getRecordDeviceIdAt(int row); // NO_DEVICE = not found
- QString m_noConnectionString;
+ TQString m_noConnectionString;
};
diff --git a/src/gui/studio/MidiBankListViewItem.cpp b/src/gui/studio/MidiBankListViewItem.cpp
index 2563ccb..d3c9fb5 100644
--- a/src/gui/studio/MidiBankListViewItem.cpp
+++ b/src/gui/studio/MidiBankListViewItem.cpp
@@ -29,7 +29,7 @@
#include "base/Device.h"
#include "MidiDeviceListViewItem.h"
#include "MidiKeyMapListViewItem.h"
-#include <qstring.h>
+#include <tqstring.h>
namespace Rosegarden
@@ -37,8 +37,8 @@ namespace Rosegarden
MidiBankListViewItem::MidiBankListViewItem(DeviceId deviceId,
int bankNb,
- QListViewItem* parent,
- QString name,
+ TQListViewItem* parent,
+ TQString name,
bool percussion, int msb, int lsb)
: MidiDeviceListViewItem(deviceId, parent, name, percussion, msb, lsb),
m_percussion(percussion),
@@ -48,20 +48,20 @@ MidiBankListViewItem::MidiBankListViewItem(DeviceId deviceId,
void MidiBankListViewItem::setPercussion(bool percussion)
{
m_percussion = percussion;
- setText(1, QString(percussion ? i18n("Percussion Bank") : i18n("Bank")));
+ setText(1, TQString(percussion ? i18n("Percussion Bank") : i18n("Bank")));
}
void MidiBankListViewItem::setMSB(int msb)
{
- setText(2, QString().setNum(msb));
+ setText(2, TQString().setNum(msb));
}
void MidiBankListViewItem::setLSB(int lsb)
{
- setText(3, QString().setNum(lsb));
+ setText(3, TQString().setNum(lsb));
}
-int MidiBankListViewItem::compare(QListViewItem *i, int col, bool ascending) const
+int MidiBankListViewItem::compare(TQListViewItem *i, int col, bool ascending) const
{
MidiBankListViewItem* bankItem = dynamic_cast<MidiBankListViewItem*>(i);
diff --git a/src/gui/studio/MidiBankListViewItem.h b/src/gui/studio/MidiBankListViewItem.h
index 87f4b02..5d42160 100644
--- a/src/gui/studio/MidiBankListViewItem.h
+++ b/src/gui/studio/MidiBankListViewItem.h
@@ -28,10 +28,10 @@
#include "base/Device.h"
#include "MidiDeviceListViewItem.h"
-#include <qstring.h>
+#include <tqstring.h>
-class QListViewItem;
+class TQListViewItem;
namespace Rosegarden
@@ -44,7 +44,7 @@ class MidiBankListViewItem : public MidiDeviceListViewItem
public:
MidiBankListViewItem(DeviceId deviceId,
int bankNb,
- QListViewItem* parent, QString name,
+ TQListViewItem* parent, TQString name,
bool percussion,
int msb, int lsb);
@@ -55,7 +55,7 @@ public:
void setMSB(int msb);
void setLSB(int msb);
- virtual int compare(QListViewItem *i, int col, bool ascending) const;
+ virtual int compare(TQListViewItem *i, int col, bool ascending) const;
protected:
diff --git a/src/gui/studio/MidiDeviceListViewItem.cpp b/src/gui/studio/MidiDeviceListViewItem.cpp
index 30a339e..21a8cda 100644
--- a/src/gui/studio/MidiDeviceListViewItem.cpp
+++ b/src/gui/studio/MidiDeviceListViewItem.cpp
@@ -27,40 +27,40 @@
#include <klocale.h>
#include "base/Device.h"
-#include <qlistview.h>
-#include <qstring.h>
+#include <tqlistview.h>
+#include <tqstring.h>
namespace Rosegarden
{
MidiDeviceListViewItem::MidiDeviceListViewItem(DeviceId deviceId,
- QListView* parent, QString name)
+ TQListView* parent, TQString name)
: KListViewItem(parent, name),
m_deviceId(deviceId)
{}
MidiDeviceListViewItem::MidiDeviceListViewItem(DeviceId deviceId,
- QListViewItem* parent, QString name,
+ TQListViewItem* parent, TQString name,
bool percussion,
int msb, int lsb)
: KListViewItem(parent, name,
- QString(percussion ? i18n("Percussion Bank") : i18n("Bank")),
- QString().setNum(msb), QString().setNum(lsb)),
+ TQString(percussion ? i18n("Percussion Bank") : i18n("Bank")),
+ TQString().setNum(msb), TQString().setNum(lsb)),
m_deviceId(deviceId)
{}
MidiDeviceListViewItem::MidiDeviceListViewItem(DeviceId deviceId,
- QListViewItem* parent, QString name)
+ TQListViewItem* parent, TQString name)
: KListViewItem(parent, name, i18n("Key Mapping"), "", ""),
m_deviceId(deviceId)
{}
-int MidiDeviceListViewItem::compare(QListViewItem *i, int col, bool ascending) const
+int MidiDeviceListViewItem::compare(TQListViewItem *i, int col, bool ascending) const
{
MidiDeviceListViewItem* item = dynamic_cast<MidiDeviceListViewItem*>(i);
if (!item)
- return QListViewItem::compare(i, col, ascending);
+ return TQListViewItem::compare(i, col, ascending);
if (col == 0)
return
getDeviceId() > item->getDeviceId() ? 1 :
diff --git a/src/gui/studio/MidiDeviceListViewItem.h b/src/gui/studio/MidiDeviceListViewItem.h
index 53652c6..a17a46c 100644
--- a/src/gui/studio/MidiDeviceListViewItem.h
+++ b/src/gui/studio/MidiDeviceListViewItem.h
@@ -28,7 +28,7 @@
#include "base/Device.h"
#include <klistview.h>
-#include <qstring.h>
+#include <tqstring.h>
namespace Rosegarden
@@ -41,21 +41,21 @@ class MidiDeviceListViewItem : public KListViewItem
public:
// Device
MidiDeviceListViewItem(DeviceId id,
- QListView* parent, QString name);
+ TQListView* parent, TQString name);
// Bank
MidiDeviceListViewItem(DeviceId id,
- QListViewItem* parent, QString name,
+ TQListViewItem* parent, TQString name,
bool percussion,
int msb, int lsb);
// Key Mapping
MidiDeviceListViewItem(DeviceId id,
- QListViewItem* parent, QString name);
+ TQListViewItem* parent, TQString name);
DeviceId getDeviceId() const { return m_deviceId; }
- virtual int compare(QListViewItem *i, int col, bool ascending) const;
+ virtual int compare(TQListViewItem *i, int col, bool ascending) const;
protected:
diff --git a/src/gui/studio/MidiKeyMapListViewItem.cpp b/src/gui/studio/MidiKeyMapListViewItem.cpp
index c070e04..dd77055 100644
--- a/src/gui/studio/MidiKeyMapListViewItem.cpp
+++ b/src/gui/studio/MidiKeyMapListViewItem.cpp
@@ -29,22 +29,22 @@
#include "MidiBankListViewItem.h"
#include "base/Device.h"
#include <klocale.h>
-#include <qstring.h>
+#include <tqstring.h>
namespace Rosegarden
{
MidiKeyMapListViewItem::MidiKeyMapListViewItem(DeviceId deviceId,
- QListViewItem* parent,
- QString name)
+ TQListViewItem* parent,
+ TQString name)
: MidiDeviceListViewItem(deviceId, parent, name),
m_name(name)
{
setText(1, i18n("Key Mapping"));
}
-int MidiKeyMapListViewItem::compare(QListViewItem *i, int col, bool ascending) const
+int MidiKeyMapListViewItem::compare(TQListViewItem *i, int col, bool ascending) const
{
if (dynamic_cast<MidiBankListViewItem *>(i)) {
return 1; // banks before key maps
diff --git a/src/gui/studio/MidiKeyMapListViewItem.h b/src/gui/studio/MidiKeyMapListViewItem.h
index df53de3..d29b0a6 100644
--- a/src/gui/studio/MidiKeyMapListViewItem.h
+++ b/src/gui/studio/MidiKeyMapListViewItem.h
@@ -28,10 +28,10 @@
#include "base/Device.h"
#include "MidiDeviceListViewItem.h"
-#include <qstring.h>
+#include <tqstring.h>
-class QListViewItem;
+class TQListViewItem;
namespace Rosegarden
@@ -43,14 +43,14 @@ class MidiKeyMapListViewItem : public MidiDeviceListViewItem
{
public:
MidiKeyMapListViewItem(DeviceId deviceId,
- QListViewItem* parent, QString name);
+ TQListViewItem* parent, TQString name);
- virtual int compare(QListViewItem *i, int col, bool ascending) const;
+ virtual int compare(TQListViewItem *i, int col, bool ascending) const;
- QString getName() const { return m_name; }
+ TQString getName() const { return m_name; }
protected:
- QString m_name;
+ TQString m_name;
};
diff --git a/src/gui/studio/MidiKeyMappingEditor.cpp b/src/gui/studio/MidiKeyMappingEditor.cpp
index f31d0dc..a9e347c 100644
--- a/src/gui/studio/MidiKeyMappingEditor.cpp
+++ b/src/gui/studio/MidiKeyMappingEditor.cpp
@@ -36,36 +36,36 @@
#include "NameSetEditor.h"
#include <kcompletion.h>
#include <klineedit.h>
-#include <qframe.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qobject.h>
-#include <qobjectlist.h>
-#include <qpushbutton.h>
-#include <qstring.h>
-#include <qvgroupbox.h>
-#include <qwidget.h>
+#include <tqframe.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqobject.h>
+#include <tqobjectlist.h>
+#include <tqpushbutton.h>
+#include <tqstring.h>
+#include <tqvgroupbox.h>
+#include <tqwidget.h>
namespace Rosegarden
{
MidiKeyMappingEditor::MidiKeyMappingEditor(BankEditorDialog* bankEditor,
- QWidget* parent,
+ TQWidget* parent,
const char* name)
: NameSetEditor(bankEditor,
i18n("Key Mapping details"),
parent, name, i18n("Pitches"), false),
m_device(0)
{
- QWidget *additionalWidget = makeAdditionalWidget(m_mainFrame);
+ TQWidget *additionalWidget = makeAdditionalWidget(m_mainFrame);
if (additionalWidget) {
m_mainLayout->addMultiCellWidget(additionalWidget, 0, 2, 0, 2);
}
}
-QWidget *
-MidiKeyMappingEditor::makeAdditionalWidget(QWidget *parent)
+TQWidget *
+MidiKeyMappingEditor::makeAdditionalWidget(TQWidget *parent)
{
return 0;
}
@@ -86,7 +86,7 @@ MidiKeyMappingEditor::clearAll()
}
void
-MidiKeyMappingEditor::populate(QListViewItem* item)
+MidiKeyMappingEditor::populate(TQListViewItem* item)
{
RG_DEBUG << "MidiKeyMappingEditor::populate\n";
@@ -144,7 +144,7 @@ MidiKeyMappingEditor::reset()
continue;
}
- QString name = strtoqstr(it->second);
+ TQString name = strtoqstr(it->second);
m_completion.addItem(name);
m_names[i]->setText(name);
m_names[i]->setCursorPosition(0);
@@ -154,7 +154,7 @@ MidiKeyMappingEditor::reset()
}
void
-MidiKeyMappingEditor::slotNameChanged(const QString& name)
+MidiKeyMappingEditor::slotNameChanged(const TQString& name)
{
const KLineEdit* lineEdit = dynamic_cast<const KLineEdit*>(sender());
if (!lineEdit) {
@@ -162,7 +162,7 @@ MidiKeyMappingEditor::slotNameChanged(const QString& name)
return ;
}
- QString senderName = sender()->name();
+ TQString senderName = sender()->name();
// Adjust value back to zero rated
//
@@ -183,9 +183,9 @@ MidiKeyMappingEditor::slotEntryButtonPressed()
void MidiKeyMappingEditor::blockAllSignals(bool block)
{
- const QObjectList* allChildren = queryList("KLineEdit", "[0-9]+");
- QObjectListIt it(*allChildren);
- QObject *obj;
+ const TQObjectList* allChildren = queryList("KLineEdit", "[0-9]+");
+ TQObjectListIt it(*allChildren);
+ TQObject *obj;
while ( (obj = it.current()) != 0 ) {
obj->blockSignals(block);
diff --git a/src/gui/studio/MidiKeyMappingEditor.h b/src/gui/studio/MidiKeyMappingEditor.h
index 86959b8..563501e 100644
--- a/src/gui/studio/MidiKeyMappingEditor.h
+++ b/src/gui/studio/MidiKeyMappingEditor.h
@@ -31,9 +31,9 @@
#include <string>
-class QWidget;
-class QString;
-class QListViewItem;
+class TQWidget;
+class TQString;
+class TQListViewItem;
namespace Rosegarden
@@ -49,20 +49,20 @@ class MidiKeyMappingEditor : public NameSetEditor
public:
MidiKeyMappingEditor(BankEditorDialog *bankEditor,
- QWidget *parent,
+ TQWidget *parent,
const char *name = 0);
void clearAll();
- void populate(QListViewItem *);
+ void populate(TQListViewItem *);
MidiKeyMapping &getMapping() { return m_mapping; }
void reset();
public slots:
- virtual void slotNameChanged(const QString &);
+ virtual void slotNameChanged(const TQString &);
virtual void slotEntryButtonPressed();
protected:
- virtual QWidget *makeAdditionalWidget(QWidget *parent);
+ virtual TQWidget *makeAdditionalWidget(TQWidget *parent);
void blockAllSignals(bool block);
//--------------- Data members ---------------------------------
diff --git a/src/gui/studio/MidiMixerVUMeter.cpp b/src/gui/studio/MidiMixerVUMeter.cpp
index 2dd86cc..b882dec 100644
--- a/src/gui/studio/MidiMixerVUMeter.cpp
+++ b/src/gui/studio/MidiMixerVUMeter.cpp
@@ -26,13 +26,13 @@
#include "MidiMixerVUMeter.h"
#include "gui/widgets/VUMeter.h"
-#include <qwidget.h>
+#include <tqwidget.h>
namespace Rosegarden
{
-MidiMixerVUMeter::MidiMixerVUMeter(QWidget *parent,
+MidiMixerVUMeter::MidiMixerVUMeter(TQWidget *parent,
VUMeterType type,
int width,
int height,
diff --git a/src/gui/studio/MidiMixerVUMeter.h b/src/gui/studio/MidiMixerVUMeter.h
index f67d922..70622b2 100644
--- a/src/gui/studio/MidiMixerVUMeter.h
+++ b/src/gui/studio/MidiMixerVUMeter.h
@@ -29,7 +29,7 @@
#include "gui/widgets/VUMeter.h"
-class QWidget;
+class TQWidget;
namespace Rosegarden
@@ -40,7 +40,7 @@ namespace Rosegarden
class MidiMixerVUMeter : public VUMeter
{
public:
- MidiMixerVUMeter(QWidget *parent = 0,
+ MidiMixerVUMeter(TQWidget *parent = 0,
VUMeterType type = Plain,
int width = 0,
int height = 0,
diff --git a/src/gui/studio/MidiMixerWindow.cpp b/src/gui/studio/MidiMixerWindow.cpp
index 127db7f..047ba39 100644
--- a/src/gui/studio/MidiMixerWindow.cpp
+++ b/src/gui/studio/MidiMixerWindow.cpp
@@ -24,7 +24,7 @@
#include "MidiMixerWindow.h"
-#include <qlayout.h>
+#include <tqlayout.h>
#include "sound/Midi.h"
#include <klocale.h>
@@ -49,21 +49,21 @@
#include <kaction.h>
#include <kmainwindow.h>
#include <kstdaction.h>
-#include <qaccel.h>
-#include <qcolor.h>
-#include <qframe.h>
-#include <qiconset.h>
-#include <qlabel.h>
-#include <qobject.h>
-#include <qstring.h>
-#include <qtabwidget.h>
-#include <qwidget.h>
+#include <tqaccel.h>
+#include <tqcolor.h>
+#include <tqframe.h>
+#include <tqiconset.h>
+#include <tqlabel.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqtabwidget.h>
+#include <tqwidget.h>
namespace Rosegarden
{
-MidiMixerWindow::MidiMixerWindow(QWidget *parent,
+MidiMixerWindow::MidiMixerWindow(TQWidget *parent,
RosegardenGUIDoc *document):
MixerWindow(parent, document),
m_tabFrame(0)
@@ -73,57 +73,57 @@ MidiMixerWindow::MidiMixerWindow(QWidget *parent,
setupTabs();
KStdAction::close(this,
- SLOT(slotClose()),
+ TQT_SLOT(slotClose()),
actionCollection());
- QIconSet icon = QIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ TQIconSet icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-play")));
KAction *play = new KAction(i18n("&Play"), icon, Key_Enter, this,
- SIGNAL(play()), actionCollection(), "play");
+ TQT_SIGNAL(play()), actionCollection(), "play");
// Alternative shortcut for Play
KShortcut playShortcut = play->shortcut();
playShortcut.append( KKey(Key_Return + CTRL) );
play->setShortcut(playShortcut);
- icon = QIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-stop")));
new KAction(i18n("&Stop"), icon, Key_Insert, this,
- SIGNAL(stop()), actionCollection(), "stop");
+ TQT_SIGNAL(stop()), actionCollection(), "stop");
- icon = QIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-rewind")));
new KAction(i18n("Re&wind"), icon, Key_End, this,
- SIGNAL(rewindPlayback()), actionCollection(),
+ TQT_SIGNAL(rewindPlayback()), actionCollection(),
"playback_pointer_back_bar");
- icon = QIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-ffwd")));
new KAction(i18n("&Fast Forward"), icon, Key_PageDown, this,
- SIGNAL(fastForwardPlayback()), actionCollection(),
+ TQT_SIGNAL(fastForwardPlayback()), actionCollection(),
"playback_pointer_forward_bar");
- icon = QIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-rewind-end")));
new KAction(i18n("Rewind to &Beginning"), icon, 0, this,
- SIGNAL(rewindPlaybackToBeginning()), actionCollection(),
+ TQT_SIGNAL(rewindPlaybackToBeginning()), actionCollection(),
"playback_pointer_start");
- icon = QIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-ffwd-end")));
new KAction(i18n("Fast Forward to &End"), icon, 0, this,
- SIGNAL(fastForwardPlaybackToEnd()), actionCollection(),
+ TQT_SIGNAL(fastForwardPlaybackToEnd()), actionCollection(),
"playback_pointer_end");
- icon = QIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-record")));
new KAction(i18n("&Record"), icon, 0, this,
- SIGNAL(record()), actionCollection(),
+ TQT_SIGNAL(record()), actionCollection(),
"record");
- icon = QIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-panic")));
new KAction(i18n("Panic"), icon, Key_P + CTRL + ALT, this,
- SIGNAL(panic()), actionCollection(),
+ TQT_SIGNAL(panic()), actionCollection(),
"panic");
createGUI("midimixer.rc");
@@ -144,11 +144,11 @@ MidiMixerWindow::setupTabs()
// Setup m_tabFrame
//
- m_tabWidget = new QTabWidget(this);
+ m_tabWidget = new TQTabWidget(this);
setCentralWidget(m_tabWidget);
- connect(m_tabWidget, SIGNAL(currentChanged(QWidget *)),
- this, SLOT(slotCurrentTabChanged(QWidget *)));
- m_tabWidget->setTabPosition(QTabWidget::Bottom);
+ connect(m_tabWidget, TQT_SIGNAL(currentChanged(TQWidget *)),
+ this, TQT_SLOT(slotCurrentTabChanged(TQWidget *)));
+ m_tabWidget->setTabPosition(TQTabWidget::Bottom);
setCaption(i18n("MIDI Mixer"));
for (it = m_studio->begin(); it != m_studio->end(); ++it) {
@@ -167,41 +167,41 @@ MidiMixerWindow::setupTabs()
if (!instruments.size())
continue;
- m_tabFrame = new QFrame(m_tabWidget);
- m_tabFrame->setFrameStyle(QFrame::TabWidgetPanel);
+ m_tabFrame = new TQFrame(m_tabWidget);
+ m_tabFrame->setFrameStyle(TQFrame::TabWidgetPanel);
m_tabFrame->setMargin(10);
- QGridLayout *mainLayout = new QGridLayout
+ TQGridLayout *mainLayout = new QGridLayout
(m_tabFrame, instruments.size() + 4, controls.size() + 4, 5);
// MIDI Mixer label
//
- //QLabel *label = new QLabel(QString("%1 %2").
+ //TQLabel *label = new TQLabel(TQString("%1 %2").
//arg(strtoqstr(dev->getName()))
//.arg(i18n("MIDI Mixer")), m_tabFrame);
- QLabel *label = new QLabel("", m_tabFrame);
+ TQLabel *label = new TQLabel("", m_tabFrame);
mainLayout->addMultiCellWidget(label, 0, 0, 0, 16, Qt::AlignCenter);
// control labels
for (unsigned int i = 0; i < controls.size(); ++i) {
- label = new QLabel(strtoqstr(controls[i].getName()), m_tabFrame);
+ label = new TQLabel(strtoqstr(controls[i].getName()), m_tabFrame);
mainLayout->addWidget(label, i + 1, 0, Qt::AlignCenter);
}
// meter label
//
- //label = new QLabel(i18n("Meter"), m_tabFrame);
+ //label = new TQLabel(i18n("Meter"), m_tabFrame);
//mainLayout->addWidget(label,
//controls.size() + 1, 0, Qt::AlignCenter);
// volume label
- label = new QLabel(i18n("Volume"), m_tabFrame);
+ label = new TQLabel(i18n("Volume"), m_tabFrame);
mainLayout->addWidget(label, controls.size() + 2, 0,
Qt::AlignCenter);
// instrument label
- label = new QLabel(i18n("Instrument"), m_tabFrame);
+ label = new TQLabel(i18n("Instrument"), m_tabFrame);
mainLayout->addWidget(label, controls.size() + 3, 0,
Qt::AlignCenter);
@@ -223,14 +223,14 @@ MidiMixerWindow::setupTabs()
// Add the controls
//
for (unsigned int i = 0; i < controls.size(); ++i) {
- QColor knobColour = Qt::white;
+ TQColor knobColour = Qt::white;
if (controls[i].getColourIndex() > 0) {
Colour c =
m_document->getComposition().getGeneralColourMap().
getColourByIndex(controls[i].getColourIndex());
- knobColour = QColor(c.getRed(),
+ knobColour = TQColor(c.getRed(),
c.getGreen(), c.getBlue());
}
@@ -248,8 +248,8 @@ MidiMixerWindow::setupTabs()
controller->setKnobColour(knobColour);
- connect(controller, SIGNAL(valueChanged(float)),
- this, SLOT(slotControllerChanged(float)));
+ connect(controller, TQT_SIGNAL(valueChanged(float)),
+ this, TQT_SLOT(slotControllerChanged(float)));
mainLayout->addWidget(controller, i + 1, posCount,
Qt::AlignCenter);
@@ -281,7 +281,7 @@ MidiMixerWindow::setupTabs()
// Label
//
- QLabel *idLabel = new QLabel(QString("%1").
+ TQLabel *idLabel = new TQLabel(TQString("%1").
arg((*iIt)->getId() - firstInstrument + 1),
m_tabFrame, "idLabel");
@@ -293,8 +293,8 @@ MidiMixerWindow::setupTabs()
// Connect them up
//
- connect(fader, SIGNAL(faderChanged(float)),
- this, SLOT(slotFaderLevelChanged(float)));
+ connect(fader, TQT_SIGNAL(faderChanged(float)),
+ this, TQT_SLOT(slotFaderLevelChanged(float)));
// Update all the faders and controllers
//
@@ -306,7 +306,7 @@ MidiMixerWindow::setupTabs()
faderCount++;
}
- QString name = QString("%1 (%2)").arg(strtoqstr(dev->getName()))
+ TQString name = TQString("%1 (%2)").arg(strtoqstr(dev->getName()))
.arg(deviceCount++);
addTab(m_tabFrame, name);
@@ -315,7 +315,7 @@ MidiMixerWindow::setupTabs()
}
void
-MidiMixerWindow::addTab(QWidget *tab, const QString &title)
+MidiMixerWindow::addTab(TQWidget *tab, const TQString &title)
{
m_tabWidget->addTab(tab, title);
}
@@ -323,7 +323,7 @@ MidiMixerWindow::addTab(QWidget *tab, const QString &title)
void
MidiMixerWindow::slotFaderLevelChanged(float value)
{
- const QObject *s = sender();
+ const TQObject *s = sender();
for (FaderVector::const_iterator it = m_faders.begin();
it != m_faders.end(); ++it) {
@@ -376,7 +376,7 @@ MidiMixerWindow::slotFaderLevelChanged(float value)
void
MidiMixerWindow::slotControllerChanged(float value)
{
- const QObject *s = sender();
+ const TQObject *s = sender();
unsigned int i = 0, j = 0;
for (i = 0; i < m_faders.size(); ++i) {
@@ -648,7 +648,7 @@ MidiMixerWindow::slotControllerDeviceEventReceived(MappedEvent *e,
}
void
-MidiMixerWindow::slotCurrentTabChanged(QWidget *)
+MidiMixerWindow::slotCurrentTabChanged(TQWidget *)
{
sendControllerRefresh();
}
diff --git a/src/gui/studio/MidiMixerWindow.h b/src/gui/studio/MidiMixerWindow.h
index d90dc55..28ab9e3 100644
--- a/src/gui/studio/MidiMixerWindow.h
+++ b/src/gui/studio/MidiMixerWindow.h
@@ -31,10 +31,10 @@
#include <vector>
-class QWidget;
-class QTabWidget;
-class QString;
-class QFrame;
+class TQWidget;
+class TQTabWidget;
+class TQString;
+class TQFrame;
namespace Rosegarden
@@ -53,7 +53,7 @@ class MidiMixerWindow : public MixerWindow
Q_OBJECT
public:
- MidiMixerWindow(QWidget *parent, RosegardenGUIDoc *document);
+ MidiMixerWindow(TQWidget *parent, RosegardenGUIDoc *document);
/**
* Setup the tabs on the Mixer according to the Studio
@@ -72,7 +72,7 @@ public slots:
void slotControllerDeviceEventReceived(MappedEvent *,
const void *);
- void slotCurrentTabChanged(QWidget *);
+ void slotCurrentTabChanged(TQWidget *);
signals:
void play();
@@ -95,11 +95,11 @@ protected slots:
void slotControllerChanged(float);
protected:
- void addTab(QWidget *tab, const QString &title);
+ void addTab(TQWidget *tab, const TQString &title);
virtual void sendControllerRefresh();
- QTabWidget *m_tabWidget;
+ TQTabWidget *m_tabWidget;
struct FaderStruct {
@@ -115,7 +115,7 @@ protected:
typedef std::vector<FaderStruct*> FaderVector;
FaderVector m_faders;
- QFrame *m_tabFrame;
+ TQFrame *m_tabFrame;
};
diff --git a/src/gui/studio/MidiProgramsEditor.cpp b/src/gui/studio/MidiProgramsEditor.cpp
index 8f81a04..e69b1a9 100644
--- a/src/gui/studio/MidiProgramsEditor.cpp
+++ b/src/gui/studio/MidiProgramsEditor.cpp
@@ -38,29 +38,29 @@
#include <klineedit.h>
#include <klocale.h>
#include <kstddirs.h>
-#include <qcheckbox.h>
-#include <qcursor.h>
-#include <qfile.h>
-#include <qframe.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qobjectlist.h>
-#include <qpixmap.h>
-#include <qpoint.h>
-#include <qpopupmenu.h>
-#include <qpushbutton.h>
-#include <qspinbox.h>
-#include <qstring.h>
-#include <qtooltip.h>
-#include <qvgroupbox.h>
-#include <qwidget.h>
+#include <tqcheckbox.h>
+#include <tqcursor.h>
+#include <tqfile.h>
+#include <tqframe.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqobjectlist.h>
+#include <tqpixmap.h>
+#include <tqpoint.h>
+#include <tqpopupmenu.h>
+#include <tqpushbutton.h>
+#include <tqspinbox.h>
+#include <tqstring.h>
+#include <tqtooltip.h>
+#include <tqvgroupbox.h>
+#include <tqwidget.h>
#include <algorithm>
namespace Rosegarden
{
MidiProgramsEditor::MidiProgramsEditor(BankEditorDialog* bankEditor,
- QWidget* parent,
+ TQWidget* parent,
const char* name)
: NameSetEditor(bankEditor,
i18n("Bank and Program details"),
@@ -70,57 +70,57 @@ MidiProgramsEditor::MidiProgramsEditor(BankEditorDialog* bankEditor,
m_programList(bankEditor->getProgramList()),
m_oldBank(false, 0, 0)
{
- QWidget *additionalWidget = makeAdditionalWidget(m_mainFrame);
+ TQWidget *additionalWidget = makeAdditionalWidget(m_mainFrame);
if (additionalWidget) {
m_mainLayout->addMultiCellWidget(additionalWidget, 0, 2, 0, 2);
}
}
-QWidget *
-MidiProgramsEditor::makeAdditionalWidget(QWidget *parent)
+TQWidget *
+MidiProgramsEditor::makeAdditionalWidget(TQWidget *parent)
{
- QFrame *frame = new QFrame(parent);
+ TQFrame *frame = new TQFrame(parent);
- m_percussion = new QCheckBox(frame);
- m_msb = new QSpinBox(frame);
- m_lsb = new QSpinBox(frame);
+ m_percussion = new TQCheckBox(frame);
+ m_msb = new TQSpinBox(frame);
+ m_lsb = new TQSpinBox(frame);
- QGridLayout *gridLayout = new QGridLayout(frame,
+ TQGridLayout *gridLayout = new TQGridLayout(frame,
3, // rows
2, // cols
2); // margin
- gridLayout->addWidget(new QLabel(i18n("Percussion"), frame),
+ gridLayout->addWidget(new TQLabel(i18n("Percussion"), frame),
0, 0, AlignLeft);
gridLayout->addWidget(m_percussion, 0, 1, AlignLeft);
- connect(m_percussion, SIGNAL(clicked()),
- this, SLOT(slotNewPercussion()));
+ connect(m_percussion, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotNewPercussion()));
- gridLayout->addWidget(new QLabel(i18n("MSB Value"), frame),
+ gridLayout->addWidget(new TQLabel(i18n("MSB Value"), frame),
1, 0, AlignLeft);
m_msb->setMinValue(0);
m_msb->setMaxValue(127);
gridLayout->addWidget(m_msb, 1, 1, AlignLeft);
- QToolTip::add
+ TQToolTip::add
(m_msb,
i18n("Selects a MSB controller Bank number (MSB/LSB pairs are always unique for any Device)"));
- QToolTip::add
+ TQToolTip::add
(m_lsb,
i18n("Selects a LSB controller Bank number (MSB/LSB pairs are always unique for any Device)"));
- connect(m_msb, SIGNAL(valueChanged(int)),
- this, SLOT(slotNewMSB(int)));
+ connect(m_msb, TQT_SIGNAL(valueChanged(int)),
+ this, TQT_SLOT(slotNewMSB(int)));
- gridLayout->addWidget(new QLabel(i18n("LSB Value"), frame),
+ gridLayout->addWidget(new TQLabel(i18n("LSB Value"), frame),
2, 0, AlignLeft);
m_lsb->setMinValue(0);
m_lsb->setMaxValue(127);
gridLayout->addWidget(m_lsb, 2, 1, AlignLeft);
- connect(m_lsb, SIGNAL(valueChanged(int)),
- this, SLOT(slotNewLSB(int)));
+ connect(m_lsb, TQT_SIGNAL(valueChanged(int)),
+ this, TQT_SLOT(slotNewLSB(int)));
return frame;
}
@@ -180,7 +180,7 @@ MidiProgramsEditor::clearAll()
}
void
-MidiProgramsEditor::populate(QListViewItem* item)
+MidiProgramsEditor::populate(TQListViewItem* item)
{
RG_DEBUG << "MidiProgramsEditor::populate\n";
@@ -221,14 +221,14 @@ MidiProgramsEditor::populate(QListViewItem* item)
ProgramList programSubset = getBankSubset(*m_currentBank);
ProgramList::iterator it;
- QPixmap noKeyPixmap, keyPixmap;
- QString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/");
- QString file = pixmapDir + "/toolbar/key-white.png";
- if (QFile(file).exists())
- noKeyPixmap = QPixmap(file);
+ TQPixmap noKeyPixmap, keyPixmap;
+ TQString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/");
+ TQString file = pixmapDir + "/toolbar/key-white.png";
+ if (TQFile(file).exists())
+ noKeyPixmap = TQPixmap(file);
file = pixmapDir + "/toolbar/key-green.png";
- if (QFile(file).exists())
- keyPixmap = QPixmap(file);
+ if (TQFile(file).exists())
+ keyPixmap = TQPixmap(file);
bool haveKeyMappings = m_currentBank->isPercussion()
&& (m_device->getKeyMappings().size() > 0);
@@ -237,19 +237,19 @@ MidiProgramsEditor::populate(QListViewItem* item)
m_names[i]->clear();
getEntryButton(i)->setEnabled(haveKeyMappings);
getEntryButton(i)->setPixmap(noKeyPixmap);
- QToolTip::remove
+ TQToolTip::remove
( getEntryButton(i) );
for (it = programSubset.begin(); it != programSubset.end(); it++) {
if (it->getProgram() == i) {
- QString programName = strtoqstr(it->getName());
+ TQString programName = strtoqstr(it->getName());
m_completion.addItem(programName);
m_names[i]->setText(programName);
if (m_device->getKeyMappingForProgram(*it)) {
getEntryButton(i)->setPixmap(keyPixmap);
- QToolTip::add
+ TQToolTip::add
(getEntryButton(i),
i18n("Key Mapping: %1").arg(
strtoqstr(m_device->getKeyMappingForProgram(*it)->getName())));
@@ -383,7 +383,7 @@ struct ProgramCmp
};
void
-MidiProgramsEditor::slotNameChanged(const QString& programName)
+MidiProgramsEditor::slotNameChanged(const TQString& programName)
{
const KLineEdit* lineEdit = dynamic_cast<const KLineEdit*>(sender());
if (!lineEdit) {
@@ -391,7 +391,7 @@ MidiProgramsEditor::slotNameChanged(const QString& programName)
return ;
}
- QString senderName = sender()->name();
+ TQString senderName = sender()->name();
// Adjust value back to zero rated
//
@@ -444,13 +444,13 @@ MidiProgramsEditor::slotNameChanged(const QString& programName)
void
MidiProgramsEditor::slotEntryButtonPressed()
{
- QPushButton* button = dynamic_cast<QPushButton*>(const_cast<QObject *>(sender()));
+ TQPushButton* button = dynamic_cast<TQPushButton*>(const_cast<TQObject *>(sender()));
if (!button) {
RG_DEBUG << "MidiProgramsEditor::slotEntryButtonPressed() : %%% ERROR - signal sender is not a QPushButton\n";
return ;
}
- QString senderName = button->name();
+ TQString senderName = button->name();
if (!m_device)
return ;
@@ -474,12 +474,12 @@ MidiProgramsEditor::slotEntryButtonPressed()
int currentEntry = 0;
menu->insertItem(i18n("<no key mapping>"), this,
- SLOT(slotEntryMenuItemSelected(int)), 0, 0);
+ TQT_SLOT(slotEntryMenuItemSelected(int)), 0, 0);
menu->setItemParameter(0, 0);
for (int i = 0; i < kml.size(); ++i) {
menu->insertItem(strtoqstr(kml[i].getName()),
- this, SLOT(slotEntryMenuItemSelected(int)),
+ this, TQT_SLOT(slotEntryMenuItemSelected(int)),
0, i + 1);
menu->setItemParameter(i + 1, i + 1);
if (currentMapping && (kml[i] == *currentMapping))
@@ -487,7 +487,7 @@ MidiProgramsEditor::slotEntryButtonPressed()
}
int itemHeight = menu->itemHeight(0) + 2;
- QPoint pos = QCursor::pos();
+ TQPoint pos = TQCursor::pos();
pos.rx() -= 10;
pos.ry() -= (itemHeight / 2 + currentEntry * itemHeight);
@@ -521,23 +521,23 @@ MidiProgramsEditor::slotEntryMenuItemSelected(int i)
}
m_device->setKeyMappingForProgram(*program, newMapping);
- QString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/");
+ TQString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/");
bool haveKeyMappings = (m_device->getKeyMappings().size() > 0);
- QPushButton *btn = getEntryButton(m_currentMenuProgram);
+ TQPushButton *btn = getEntryButton(m_currentMenuProgram);
if (newMapping.empty()) {
- QString file = pixmapDir + "/toolbar/key-white.png";
- if (QFile(file).exists()) {
- btn->setPixmap(QPixmap(file));
+ TQString file = pixmapDir + "/toolbar/key-white.png";
+ if (TQFile(file).exists()) {
+ btn->setPixmap(TQPixmap(file));
}
- QToolTip::remove
+ TQToolTip::remove
(btn);
} else {
- QString file = pixmapDir + "/toolbar/key-green.png";
- if (QFile(file).exists()) {
- btn->setPixmap(QPixmap(file));
+ TQString file = pixmapDir + "/toolbar/key-green.png";
+ if (TQFile(file).exists()) {
+ btn->setPixmap(TQPixmap(file));
}
- QToolTip::add
+ TQToolTip::add
(btn, i18n("Key Mapping: %1").arg(strtoqstr(newMapping)));
}
btn->setEnabled(haveKeyMappings);
@@ -607,16 +607,16 @@ MidiProgramsEditor::getProgram(const MidiBank &bank, int programNo)
}
void
-MidiProgramsEditor::setBankName(const QString& s)
+MidiProgramsEditor::setBankName(const TQString& s)
{
setTitle(s);
}
void MidiProgramsEditor::blockAllSignals(bool block)
{
- const QObjectList* allChildren = queryList("KLineEdit", "[0-9]+");
- QObjectListIt it(*allChildren);
- QObject *obj;
+ const TQObjectList* allChildren = queryList("KLineEdit", "[0-9]+");
+ TQObjectListIt it(*allChildren);
+ TQObject *obj;
while ( (obj = it.current()) != 0 ) {
obj->blockSignals(block);
diff --git a/src/gui/studio/MidiProgramsEditor.h b/src/gui/studio/MidiProgramsEditor.h
index d0ef565..64375cb 100644
--- a/src/gui/studio/MidiProgramsEditor.h
+++ b/src/gui/studio/MidiProgramsEditor.h
@@ -30,11 +30,11 @@
#include "NameSetEditor.h"
-class QWidget;
-class QString;
-class QSpinBox;
-class QListViewItem;
-class QCheckBox;
+class TQWidget;
+class TQString;
+class TQSpinBox;
+class TQListViewItem;
+class TQCheckBox;
class BankList;
@@ -51,11 +51,11 @@ class MidiProgramsEditor : public NameSetEditor
Q_OBJECT
public:
MidiProgramsEditor(BankEditorDialog *bankEditor,
- QWidget *parent,
+ TQWidget *parent,
const char *name = 0);
void clearAll();
- void populate(QListViewItem*);
+ void populate(TQListViewItem*);
void reset();
public slots:
@@ -66,7 +66,7 @@ public slots:
void slotNewLSB(int value);
void slotNewPercussion(); // gets value from checkbox
- virtual void slotNameChanged(const QString &);
+ virtual void slotNameChanged(const TQString &);
virtual void slotEntryButtonPressed();
void slotEntryMenuItemSelected(int);
@@ -91,16 +91,16 @@ protected:
//
MidiProgram* getProgram(const MidiBank &bank, int program);
- void setBankName(const QString& s);
+ void setBankName(const TQString& s);
- virtual QWidget *makeAdditionalWidget(QWidget *parent);
+ virtual TQWidget *makeAdditionalWidget(TQWidget *parent);
void blockAllSignals(bool block);
//--------------- Data members ---------------------------------
- QCheckBox *m_percussion;
- QSpinBox *m_msb;
- QSpinBox *m_lsb;
+ TQCheckBox *m_percussion;
+ TQSpinBox *m_msb;
+ TQSpinBox *m_lsb;
MidiDevice *m_device;
diff --git a/src/gui/studio/MixerWindow.cpp b/src/gui/studio/MixerWindow.cpp
index 2a65024..d0c233a 100644
--- a/src/gui/studio/MixerWindow.cpp
+++ b/src/gui/studio/MixerWindow.cpp
@@ -30,25 +30,25 @@
#include "base/Studio.h"
#include "document/RosegardenGUIDoc.h"
#include <kmainwindow.h>
-#include <qaccel.h>
-#include <qwidget.h>
+#include <tqaccel.h>
+#include <tqwidget.h>
namespace Rosegarden
{
-MixerWindow::MixerWindow(QWidget *parent,
+MixerWindow::MixerWindow(TQWidget *parent,
RosegardenGUIDoc *document) :
KMainWindow(parent, "mixerwindow"),
m_document(document),
m_studio(&document->getStudio()),
m_currentId(0)
{
- m_accelerators = new QAccel(this);
+ m_accelerators = new TQAccel(this);
}
void
-MixerWindow::closeEvent(QCloseEvent *e)
+MixerWindow::closeEvent(TQCloseEvent *e)
{
RG_DEBUG << "MixerWindow::closeEvent()\n";
emit closing();
diff --git a/src/gui/studio/MixerWindow.h b/src/gui/studio/MixerWindow.h
index 9e5f9cf..94d8bee 100644
--- a/src/gui/studio/MixerWindow.h
+++ b/src/gui/studio/MixerWindow.h
@@ -30,9 +30,9 @@
#include <kmainwindow.h>
-class QWidget;
-class QCloseEvent;
-class QAccel;
+class TQWidget;
+class TQCloseEvent;
+class TQAccel;
namespace Rosegarden
@@ -47,8 +47,8 @@ class MixerWindow: public KMainWindow
Q_OBJECT
public:
- MixerWindow(QWidget *parent, RosegardenGUIDoc *document);
- QAccel* getAccelerators() { return m_accelerators; }
+ MixerWindow(TQWidget *parent, RosegardenGUIDoc *document);
+ TQAccel* getAccelerators() { return m_accelerators; }
signals:
void closing();
@@ -58,7 +58,7 @@ protected slots:
void slotClose();
protected:
- virtual void closeEvent(QCloseEvent *);
+ virtual void closeEvent(TQCloseEvent *);
virtual void windowActivationChange(bool);
virtual void sendControllerRefresh() = 0;
@@ -67,7 +67,7 @@ protected:
Studio *m_studio;
InstrumentId m_currentId;
- QAccel *m_accelerators;
+ TQAccel *m_accelerators;
};
diff --git a/src/gui/studio/NameSetEditor.cpp b/src/gui/studio/NameSetEditor.cpp
index 8dadd0c..6fa9bbe 100644
--- a/src/gui/studio/NameSetEditor.cpp
+++ b/src/gui/studio/NameSetEditor.cpp
@@ -29,87 +29,87 @@
#include <kglobalsettings.h>
#include <klineedit.h>
#include <klocale.h>
-#include <qframe.h>
-#include <qgroupbox.h>
-#include <qhbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qstring.h>
-#include <qtabwidget.h>
-#include <qtooltip.h>
-#include <qvbox.h>
-#include <qvgroupbox.h>
-#include <qwidget.h>
+#include <tqframe.h>
+#include <tqgroupbox.h>
+#include <tqhbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
+#include <tqstring.h>
+#include <tqtabwidget.h>
+#include <tqtooltip.h>
+#include <tqvbox.h>
+#include <tqvgroupbox.h>
+#include <tqwidget.h>
#include <iostream>
namespace Rosegarden
{
NameSetEditor::NameSetEditor(BankEditorDialog* bankEditor,
- QString title,
- QWidget* parent,
+ TQString title,
+ TQWidget* parent,
const char* name,
- QString headingPrefix,
+ TQString headingPrefix,
bool showEntryButtons)
- : QVGroupBox(title, parent, name),
+ : TQVGroupBox(title, parent, name),
m_bankEditor(bankEditor),
- m_mainFrame(new QFrame(this))
+ m_mainFrame(new TQFrame(this))
{
- m_mainLayout = new QGridLayout(m_mainFrame,
+ m_mainLayout = new TQGridLayout(m_mainFrame,
4, // rows
6, // cols
2); // margin
// Librarian
//
- QGroupBox *groupBox = new QGroupBox(2,
+ TQGroupBox *groupBox = new TQGroupBox(2,
Qt::Horizontal,
i18n("Librarian"),
m_mainFrame);
m_mainLayout->addMultiCellWidget(groupBox, 0, 2, 3, 5);
- new QLabel(i18n("Name"), groupBox);
- m_librarian = new QLabel(groupBox);
+ new TQLabel(i18n("Name"), groupBox);
+ m_librarian = new TQLabel(groupBox);
- new QLabel(i18n("Email"), groupBox);
- m_librarianEmail = new QLabel(groupBox);
+ new TQLabel(i18n("Email"), groupBox);
+ m_librarianEmail = new TQLabel(groupBox);
- QToolTip::add
+ TQToolTip::add
(groupBox,
i18n("The librarian maintains the Rosegarden device data for this device.\nIf you've made modifications to suit your own device, it might be worth\nliaising with the librarian in order to publish your information for the benefit\nof others."));
- QTabWidget* tabw = new QTabWidget(this);
+ TQTabWidget* tabw = new TQTabWidget(this);
tabw->setMargin(10);
- QHBox *h;
- QVBox *v;
- QHBox *numBox;
+ TQHBox *h;
+ TQVBox *v;
+ TQHBox *numBox;
unsigned int tabs = 4;
unsigned int cols = 2;
unsigned int labelId = 0;
for (unsigned int tab = 0; tab < tabs; ++tab) {
- h = new QHBox(tabw);
+ h = new TQHBox(tabw);
for (unsigned int col = 0; col < cols; ++col) {
- v = new QVBox(h);
+ v = new TQVBox(h);
for (unsigned int row = 0; row < 128 / (tabs*cols); ++row) {
- numBox = new QHBox(v);
- QString numberText = QString("%1").arg(labelId + 1);
+ numBox = new TQHBox(v);
+ TQString numberText = TQString("%1").arg(labelId + 1);
if (tab == 0 && col == 0 && row == 0) {
// Initial label; button to adjust whether labels start at 0 or 1
- m_initialLabel = new QPushButton(numberText, numBox);
+ m_initialLabel = new TQPushButton(numberText, numBox);
connect(m_initialLabel,
- SIGNAL(clicked()),
+ TQT_SIGNAL(clicked()),
this,
- SLOT(slotToggleInitialLabel()));
+ TQT_SLOT(slotToggleInitialLabel()));
} else {
- QLabel *label = new QLabel(numberText, numBox);
+ TQLabel *label = new TQLabel(numberText, numBox);
label->setFixedWidth(40);
label->setAlignment(AlignCenter);
m_labels.push_back(label);
@@ -118,12 +118,12 @@ NameSetEditor::NameSetEditor(BankEditorDialog* bankEditor,
if (showEntryButtons) {
- QPushButton *button = new QPushButton("", numBox, numberText);
+ TQPushButton *button = new TQPushButton("", numBox, numberText);
button->setMaximumWidth(40);
button->setMaximumHeight(20);
button->setFlat(true);
- connect(button, SIGNAL(clicked()),
- this, SLOT(slotEntryButtonPressed()));
+ connect(button, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotEntryButtonPressed()));
m_entryButtons.push_back(button);
}
@@ -134,17 +134,17 @@ NameSetEditor::NameSetEditor(BankEditorDialog* bankEditor,
m_names.push_back(lineEdit);
connect(m_names[labelId],
- SIGNAL(textChanged(const QString&)),
+ TQT_SIGNAL(textChanged(const TQString&)),
this,
- SLOT(slotNameChanged(const QString&)));
+ TQT_SLOT(slotNameChanged(const TQString&)));
++labelId;
}
}
tabw->addTab(h,
- (tab == 0 ? headingPrefix + QString(" %1 - %2") :
- QString("%1 - %2")).
+ (tab == 0 ? headingPrefix + TQString(" %1 - %2") :
+ TQString("%1 - %2")).
arg(tab * (128 / tabs) + 1).
arg((tab + 1) * (128 / tabs)));
}
@@ -155,7 +155,7 @@ NameSetEditor::NameSetEditor(BankEditorDialog* bankEditor,
void
NameSetEditor::slotToggleInitialLabel()
{
- QString initial = m_initialLabel->text();
+ TQString initial = m_initialLabel->text();
// strip some unrequested nice-ification.. urg!
if (initial.startsWith("&")) {
@@ -178,11 +178,11 @@ NameSetEditor::slotToggleInitialLabel()
else
index = 0;
- m_initialLabel->setText(QString("%1").arg(index++));
- for (std::vector<QLabel*>::iterator it( m_labels.begin() );
+ m_initialLabel->setText(TQString("%1").arg(index++));
+ for (std::vector<TQLabel*>::iterator it( m_labels.begin() );
it != m_labels.end();
++it) {
- (*it)->setText(QString("%1").arg(index++));
+ (*it)->setText(TQString("%1").arg(index++));
}
}
diff --git a/src/gui/studio/NameSetEditor.h b/src/gui/studio/NameSetEditor.h
index e1e1476..8fd33ef 100644
--- a/src/gui/studio/NameSetEditor.h
+++ b/src/gui/studio/NameSetEditor.h
@@ -27,17 +27,17 @@
#define _RG_NAMESETEDITOR_H_
#include <kcompletion.h>
-#include <qstring.h>
-#include <qvgroupbox.h>
+#include <tqstring.h>
+#include <tqvgroupbox.h>
#include <vector>
-class QWidget;
-class QPushButton;
-class QListViewItem;
-class QLabel;
-class QGridLayout;
-class QFrame;
+class TQWidget;
+class TQPushButton;
+class TQListViewItem;
+class TQLabel;
+class TQGridLayout;
+class TQFrame;
class KLineEdit;
@@ -53,35 +53,35 @@ class NameSetEditor : public QVGroupBox
public:
virtual void clearAll() = 0;
- virtual void populate(QListViewItem *) = 0;
+ virtual void populate(TQListViewItem *) = 0;
virtual void reset() = 0;
public slots:
- virtual void slotNameChanged(const QString&) = 0;
+ virtual void slotNameChanged(const TQString&) = 0;
virtual void slotEntryButtonPressed() = 0;
void slotToggleInitialLabel();
protected:
NameSetEditor(BankEditorDialog *bankEditor,
- QString title,
- QWidget *parent,
+ TQString title,
+ TQWidget *parent,
const char *name,
- QString headingPrefix = "",
+ TQString headingPrefix = "",
bool showEntryButtons = false);
- QPushButton *getEntryButton(int n) { return m_entryButtons[n]; }
- const QPushButton *getEntryButton(int n) const { return m_entryButtons[n]; }
+ TQPushButton *getEntryButton(int n) { return m_entryButtons[n]; }
+ const TQPushButton *getEntryButton(int n) const { return m_entryButtons[n]; }
- QGridLayout *m_mainLayout;
+ TQGridLayout *m_mainLayout;
BankEditorDialog* m_bankEditor;
KCompletion m_completion;
- QPushButton *m_initialLabel;
- std::vector<QLabel*> m_labels;
+ TQPushButton *m_initialLabel;
+ std::vector<TQLabel*> m_labels;
std::vector<KLineEdit*> m_names;
- QFrame *m_mainFrame;
- QLabel *m_librarian;
- QLabel *m_librarianEmail;
- std::vector<QPushButton *> m_entryButtons;
+ TQFrame *m_mainFrame;
+ TQLabel *m_librarian;
+ TQLabel *m_librarianEmail;
+ std::vector<TQPushButton *> m_entryButtons;
};
diff --git a/src/gui/studio/RemapInstrumentDialog.cpp b/src/gui/studio/RemapInstrumentDialog.cpp
index dae43da..a957650 100644
--- a/src/gui/studio/RemapInstrumentDialog.cpp
+++ b/src/gui/studio/RemapInstrumentDialog.cpp
@@ -39,43 +39,43 @@
#include <kcommand.h>
#include <kdialogbase.h>
#include <klocale.h>
-#include <qbuttongroup.h>
-#include <qgroupbox.h>
-#include <qlabel.h>
-#include <qradiobutton.h>
-#include <qvbox.h>
-#include <qwidget.h>
+#include <tqbuttongroup.h>
+#include <tqgroupbox.h>
+#include <tqlabel.h>
+#include <tqradiobutton.h>
+#include <tqvbox.h>
+#include <tqwidget.h>
namespace Rosegarden
{
-RemapInstrumentDialog::RemapInstrumentDialog(QWidget *parent,
+RemapInstrumentDialog::RemapInstrumentDialog(TQWidget *parent,
RosegardenGUIDoc *doc):
KDialogBase(parent, "", true, i18n("Remap Instrument assigments..."),
Ok | Apply | Cancel),
m_doc(doc)
{
- QVBox *vBox = makeVBoxMainWidget();
+ TQVBox *vBox = makeVBoxMainWidget();
- m_buttonGroup = new QButtonGroup(1, Qt::Horizontal,
+ m_buttonGroup = new TQButtonGroup(1, Qt::Horizontal,
i18n("Device or Instrument"),
vBox);
- new QLabel(i18n("Remap Tracks by all Instruments on a Device or by single Instrument"), m_buttonGroup);
- m_deviceButton = new QRadioButton(i18n("Device"), m_buttonGroup);
- m_instrumentButton = new QRadioButton(i18n("Instrument"), m_buttonGroup);
+ new TQLabel(i18n("Remap Tracks by all Instruments on a Device or by single Instrument"), m_buttonGroup);
+ m_deviceButton = new TQRadioButton(i18n("Device"), m_buttonGroup);
+ m_instrumentButton = new TQRadioButton(i18n("Instrument"), m_buttonGroup);
- connect(m_buttonGroup, SIGNAL(released(int)),
- this, SLOT(slotRemapReleased(int)));
+ connect(m_buttonGroup, TQT_SIGNAL(released(int)),
+ this, TQT_SLOT(slotRemapReleased(int)));
- QGroupBox *groupBox = new QGroupBox(2, Qt::Horizontal,
+ TQGroupBox *groupBox = new TQGroupBox(2, Qt::Horizontal,
i18n("Choose Source and Destination"),
vBox);
- new QLabel(i18n("From"), groupBox);
- new QLabel(i18n("To"), groupBox);
+ new TQLabel(i18n("From"), groupBox);
+ new TQLabel(i18n("To"), groupBox);
m_fromCombo = new KComboBox(groupBox);
m_toCombo = new KComboBox(groupBox);
diff --git a/src/gui/studio/RemapInstrumentDialog.h b/src/gui/studio/RemapInstrumentDialog.h
index 669020e..c0cae3a 100644
--- a/src/gui/studio/RemapInstrumentDialog.h
+++ b/src/gui/studio/RemapInstrumentDialog.h
@@ -30,9 +30,9 @@
#include <kdialogbase.h>
-class QWidget;
-class QRadioButton;
-class QButtonGroup;
+class TQWidget;
+class TQRadioButton;
+class TQButtonGroup;
class KCommand;
class KComboBox;
@@ -49,7 +49,7 @@ class RemapInstrumentDialog : public KDialogBase
{
Q_OBJECT
public:
- RemapInstrumentDialog(QWidget *parent,
+ RemapInstrumentDialog(TQWidget *parent,
RosegardenGUIDoc *doc);
void populateCombo(int id);
@@ -67,10 +67,10 @@ protected:
RosegardenGUIDoc *m_doc;
- QRadioButton *m_deviceButton;
- QRadioButton *m_instrumentButton;
+ TQRadioButton *m_deviceButton;
+ TQRadioButton *m_instrumentButton;
- QButtonGroup *m_buttonGroup;
+ TQButtonGroup *m_buttonGroup;
KComboBox *m_fromCombo;
KComboBox *m_toCombo;
diff --git a/src/gui/studio/StudioControl.cpp b/src/gui/studio/StudioControl.cpp
index e94016a..6a4d643 100644
--- a/src/gui/studio/StudioControl.cpp
+++ b/src/gui/studio/StudioControl.cpp
@@ -36,9 +36,9 @@
#include "sound/MappedEvent.h"
#include "sound/MappedInstrument.h"
#include "sound/MappedStudio.h"
-#include <qcstring.h>
-#include <qdatastream.h>
-#include <qstring.h>
+#include <tqcstring.h>
+#include <tqdatastream.h>
+#include <tqstring.h>
namespace Rosegarden
@@ -50,10 +50,10 @@ StudioControl::createStudioObject(MappedObject::MappedObjectType type)
Profiler profiler("StudioControl::createStudioObject", true);
int value = -1;
-QByteArray data;
-QCString replyType;
-QByteArray replyData;
-QDataStream streamOut(data, IO_WriteOnly);
+TQByteArray data;
+TQCString replyType;
+TQByteArray replyData;
+TQDataStream streamOut(data, IO_WriteOnly);
streamOut << (int)type;
@@ -65,7 +65,7 @@ if (!rgapp->sequencerCall("createMappedObject(int)",
<< endl;
} else
{
- QDataStream streamIn(replyData, IO_ReadOnly);
+ TQDataStream streamIn(replyData, IO_ReadOnly);
streamIn >> value;
}
@@ -78,10 +78,10 @@ StudioControl::destroyStudioObject(MappedObjectId id)
Profiler profiler("StudioControl::destroyStudioObject", true);
int value = 0;
- QByteArray data;
- QCString replyType;
- QByteArray replyData;
- QDataStream streamOut(data, IO_WriteOnly);
+ TQByteArray data;
+ TQCString replyType;
+ TQByteArray replyData;
+ TQDataStream streamOut(data, IO_WriteOnly);
streamOut << int(id);
@@ -91,7 +91,7 @@ StudioControl::destroyStudioObject(MappedObjectId id)
<< "failed to contact Rosegarden sequencer"
<< endl;
} else {
- QDataStream streamIn(replyData, IO_ReadOnly);
+ TQDataStream streamIn(replyData, IO_ReadOnly);
streamIn >> value;
}
@@ -109,21 +109,21 @@ StudioControl::getStudioObjectProperty(MappedObjectId id,
MappedObjectPropertyList list;
- QByteArray data;
- QCString replyType;
- QByteArray replyData;
- QDataStream streamOut(data, IO_WriteOnly);
+ TQByteArray data;
+ TQCString replyType;
+ TQByteArray replyData;
+ TQDataStream streamOut(data, IO_WriteOnly);
streamOut << (int)id;
- streamOut << QString(property);
+ streamOut << TQString(property);
- if (!rgapp->sequencerCall("getPropertyList(int, QString)",
+ if (!rgapp->sequencerCall("getPropertyList(int, TQString)",
replyType, replyData, data)) {
SEQMAN_DEBUG << "getStudioObjectProperty - "
<< "failed to contact Rosegarden sequencer"
<< endl;
} else {
- QDataStream streamIn(replyData, IO_ReadOnly);
+ TQDataStream streamIn(replyData, IO_ReadOnly);
streamIn >> list;
}
@@ -137,14 +137,14 @@ StudioControl::setStudioObjectProperty(MappedObjectId id,
{
Profiler profiler("StudioControl::setStudioObjectProperty(float)", true);
- QByteArray data;
- QDataStream streamOut(data, IO_WriteOnly);
+ TQByteArray data;
+ TQDataStream streamOut(data, IO_WriteOnly);
streamOut << (int)id;
- streamOut << (QString)property;
+ streamOut << (TQString)property;
streamOut << (float)value;
- rgapp->sequencerSend("setMappedProperty(int, QString, float)", data);
+ rgapp->sequencerSend("setMappedProperty(int, TQString, float)", data);
return true;
}
@@ -156,8 +156,8 @@ StudioControl::setStudioObjectProperties(const MappedObjectIdList &ids,
{
Profiler profiler("StudioControl::setStudioObjectProperties(floats)", true);
- QByteArray data;
- QDataStream streamOut(data, IO_WriteOnly);
+ TQByteArray data;
+ TQDataStream streamOut(data, IO_WriteOnly);
streamOut << ids;
streamOut << properties;
@@ -171,18 +171,18 @@ StudioControl::setStudioObjectProperties(const MappedObjectIdList &ids,
bool
StudioControl::setStudioObjectProperty(MappedObjectId id,
const MappedObjectProperty &property,
- const QString &value)
+ const TQString &value)
{
Profiler profiler("StudioControl::setStudioObjectProperty(string)", true);
- QByteArray data;
- QDataStream streamOut(data, IO_WriteOnly);
+ TQByteArray data;
+ TQDataStream streamOut(data, IO_WriteOnly);
streamOut << (int)id;
- streamOut << (QString)property;
- streamOut << (QString)value;
+ streamOut << (TQString)property;
+ streamOut << (TQString)value;
- rgapp->sequencerSend("setMappedProperty(int, QString, QString)", data);
+ rgapp->sequencerSend("setMappedProperty(int, TQString, TQString)", data);
return true;
}
@@ -194,16 +194,16 @@ StudioControl::setStudioObjectPropertyList(MappedObjectId id,
{
Profiler profiler("StudioControl::setStudioObjectPropertyList", true);
- QByteArray data;
- QDataStream streamOut(data, IO_WriteOnly);
+ TQByteArray data;
+ TQDataStream streamOut(data, IO_WriteOnly);
streamOut << (int)id;
- streamOut << (QString)property;
+ streamOut << (TQString)property;
streamOut << values;
RG_DEBUG << "StudioControl::setStudioObjectPropertyList: " << values.size() << " values for property " << property << endl;
- rgapp->sequencerSend("setMappedPropertyList(int, QString, MappedObjectPropertyList)",
+ rgapp->sequencerSend("setMappedPropertyList(int, TQString, MappedObjectPropertyList)",
data);
return true;
@@ -215,10 +215,10 @@ StudioControl::getStudioObjectByType(MappedObject::MappedObjectType type)
Profiler profiler("StudioControl::getStudioObjectByType", true);
int value = -1;
- QByteArray data;
- QCString replyType;
- QByteArray replyData;
- QDataStream streamOut(data, IO_WriteOnly);
+ TQByteArray data;
+ TQCString replyType;
+ TQByteArray replyData;
+ TQDataStream streamOut(data, IO_WriteOnly);
streamOut << (int)type;
@@ -228,7 +228,7 @@ StudioControl::getStudioObjectByType(MappedObject::MappedObjectType type)
<< "failed to contact Rosegarden sequencer"
<< endl;
} else {
- QDataStream streamIn(replyData, IO_ReadOnly);
+ TQDataStream streamIn(replyData, IO_ReadOnly);
streamIn >> value;
}
@@ -242,8 +242,8 @@ StudioControl::setStudioPluginPort(MappedObjectId pluginId,
{
Profiler profiler("StudioControl::setStudioPluginPort", true);
- QByteArray data;
- QDataStream streamOut(data, IO_WriteOnly);
+ TQByteArray data;
+ TQDataStream streamOut(data, IO_WriteOnly);
// Use new MappedEvent interface
//
@@ -261,10 +261,10 @@ StudioControl::getStudioPluginPort(MappedObjectId pluginId,
Profiler profiler("StudioControl::getStudioPluginPort", true);
float value = 0.0;
- QByteArray data;
- QCString replyType;
- QByteArray replyData;
- QDataStream streamOut(data, IO_WriteOnly);
+ TQByteArray data;
+ TQCString replyType;
+ TQByteArray replyData;
+ TQDataStream streamOut(data, IO_WriteOnly);
streamOut << (int)pluginId;
streamOut << (unsigned long)portId;
@@ -275,7 +275,7 @@ StudioControl::getStudioPluginPort(MappedObjectId pluginId,
<< "failed to contact Rosegarden sequencer"
<< endl;
} else {
- QDataStream streamIn(replyData, IO_ReadOnly);
+ TQDataStream streamIn(replyData, IO_ReadOnly);
streamIn >> value;
}
@@ -287,9 +287,9 @@ StudioControl::getPluginInformation()
{
MappedObjectPropertyList list;
- QByteArray data;
- QCString replyType;
- QByteArray replyData;
+ TQByteArray data;
+ TQCString replyType;
+ TQByteArray replyData;
if (!rgapp->sequencerCall("getPluginInformation()",
replyType, replyData, data)) {
@@ -297,7 +297,7 @@ StudioControl::getPluginInformation()
<< "failed to contact Rosegarden sequencer"
<< endl;
} else {
- QDataStream streamIn(replyData, IO_ReadOnly);
+ TQDataStream streamIn(replyData, IO_ReadOnly);
streamIn >> list;
}
@@ -307,16 +307,16 @@ StudioControl::getPluginInformation()
QString
StudioControl::getPluginProgram(MappedObjectId id, int bank, int program)
{
- QByteArray data;
- QCString replyType;
- QByteArray replyData;
- QDataStream streamOut(data, IO_WriteOnly);
+ TQByteArray data;
+ TQCString replyType;
+ TQByteArray replyData;
+ TQDataStream streamOut(data, IO_WriteOnly);
streamOut << (int)id;
streamOut << (int)bank;
streamOut << (int)program;
- QString programName;
+ TQString programName;
if (!rgapp->sequencerCall("getPluginProgram(int, int, int)",
replyType, replyData, data)) {
@@ -324,7 +324,7 @@ StudioControl::getPluginProgram(MappedObjectId id, int bank, int program)
<< "failed to contact Rosegarden sequencer"
<< endl;
} else {
- QDataStream streamIn(replyData, IO_ReadOnly);
+ TQDataStream streamIn(replyData, IO_ReadOnly);
streamIn >> programName;
}
@@ -332,25 +332,25 @@ StudioControl::getPluginProgram(MappedObjectId id, int bank, int program)
}
unsigned long
-StudioControl::getPluginProgram(MappedObjectId id, QString name)
+StudioControl::getPluginProgram(MappedObjectId id, TQString name)
{
- QByteArray data;
- QCString replyType;
- QByteArray replyData;
- QDataStream streamOut(data, IO_WriteOnly);
+ TQByteArray data;
+ TQCString replyType;
+ TQByteArray replyData;
+ TQDataStream streamOut(data, IO_WriteOnly);
streamOut << (int)id;
streamOut << name;
unsigned long rv;
- if (!rgapp->sequencerCall("getPluginProgram(int, QString)",
+ if (!rgapp->sequencerCall("getPluginProgram(int, TQString)",
replyType, replyData, data)) {
SEQMAN_DEBUG << "getPluginProgram - "
<< "failed to contact Rosegarden sequencer"
<< endl;
} else {
- QDataStream streamIn(replyData, IO_ReadOnly);
+ TQDataStream streamIn(replyData, IO_ReadOnly);
streamIn >> rv;
}
@@ -363,8 +363,8 @@ StudioControl::connectStudioObjects(MappedObjectId id1,
{
Profiler profiler("StudioControl::connectStudioObjects", true);
- QByteArray data;
- QDataStream streamOut(data, IO_WriteOnly);
+ TQByteArray data;
+ TQDataStream streamOut(data, IO_WriteOnly);
streamOut << (int)id1;
streamOut << (int)id2;
@@ -384,8 +384,8 @@ StudioControl::disconnectStudioObjects(MappedObjectId id1,
{
Profiler profiler("StudioControl::disconnectStudioObjects", true);
- QByteArray data;
- QDataStream streamOut(data, IO_WriteOnly);
+ TQByteArray data;
+ TQDataStream streamOut(data, IO_WriteOnly);
streamOut << (int)id1;
streamOut << (int)id2;
@@ -404,8 +404,8 @@ StudioControl::disconnectStudioObject(MappedObjectId id)
{
Profiler profiler("StudioControl::disconnectStudioObject", true);
- QByteArray data;
- QDataStream streamOut(data, IO_WriteOnly);
+ TQByteArray data;
+ TQDataStream streamOut(data, IO_WriteOnly);
streamOut << (int)id;
@@ -443,14 +443,14 @@ StudioControl::sendMappedComposition(const MappedComposition &mC)
if (mC.size() == 0)
return ;
- QCString replyType;
- QByteArray replyData;
+ TQCString replyType;
+ TQByteArray replyData;
MappedComposition::const_iterator it = mC.begin();
for (; it != mC.end(); it++) {
- QByteArray data;
- QDataStream streamOut(data, IO_WriteOnly);
+ TQByteArray data;
+ TQDataStream streamOut(data, IO_WriteOnly);
streamOut << (*it);
rgapp->sequencerSend("processMappedEvent(MappedEvent)", data);
@@ -462,8 +462,8 @@ StudioControl::sendMappedInstrument(const MappedInstrument &mI)
{
Profiler profiler("StudioControl::sendMappedInstrument", true);
- QByteArray data;
- QDataStream streamOut(data, IO_WriteOnly);
+ TQByteArray data;
+ TQDataStream streamOut(data, IO_WriteOnly);
streamOut << (int)mI.getType();
streamOut << (unsigned char)mI.getChannel();
@@ -477,8 +477,8 @@ StudioControl::sendQuarterNoteLength(const RealTime &length)
{
Profiler profiler("StudioControl::sendQuarterNoteLength", true);
- QByteArray data;
- QDataStream streamOut(data, IO_WriteOnly);
+ TQByteArray data;
+ TQDataStream streamOut(data, IO_WriteOnly);
streamOut << (long)length.sec;
streamOut << (long)length.nsec;
diff --git a/src/gui/studio/StudioControl.h b/src/gui/studio/StudioControl.h
index cf05d44..c251cde 100644
--- a/src/gui/studio/StudioControl.h
+++ b/src/gui/studio/StudioControl.h
@@ -29,7 +29,7 @@
#include "base/MidiProgram.h"
#include "sound/MappedCommon.h"
#include "sound/MappedStudio.h"
-#include <qstring.h>
+#include <tqstring.h>
class MappedObjectValueList;
@@ -80,7 +80,7 @@ public:
//
static bool setStudioObjectProperty(MappedObjectId id,
const MappedObjectProperty &property,
- const QString &value);
+ const TQString &value);
// Set a value to a string list
//
@@ -101,12 +101,12 @@ public:
// Get program name for a given program
//
- static QString getPluginProgram(MappedObjectId, int bank, int program);
+ static TQString getPluginProgram(MappedObjectId, int bank, int program);
// Get program numbers for a given name (rv is bank << 16 + program)
// This is one of the nastiest hacks in the whole application
//
- static unsigned long getPluginProgram(MappedObjectId, QString name);
+ static unsigned long getPluginProgram(MappedObjectId, TQString name);
// Connection
//
diff --git a/src/gui/studio/SynthPluginManagerDialog.cpp b/src/gui/studio/SynthPluginManagerDialog.cpp
index f9a54ea..037fa3a 100644
--- a/src/gui/studio/SynthPluginManagerDialog.cpp
+++ b/src/gui/studio/SynthPluginManagerDialog.cpp
@@ -24,7 +24,7 @@
#include "SynthPluginManagerDialog.h"
-#include <qlayout.h>
+#include <tqlayout.h>
#include <klocale.h>
#include "misc/Debug.h"
@@ -41,20 +41,20 @@
#include <kcombobox.h>
#include <kmainwindow.h>
#include <kstdaction.h>
-#include <qframe.h>
-#include <qgroupbox.h>
-#include <qlabel.h>
-#include <qobject.h>
-#include <qpushbutton.h>
-#include <qsizepolicy.h>
-#include <qstring.h>
-#include <qwidget.h>
+#include <tqframe.h>
+#include <tqgroupbox.h>
+#include <tqlabel.h>
+#include <tqobject.h>
+#include <tqpushbutton.h>
+#include <tqsizepolicy.h>
+#include <tqstring.h>
+#include <tqwidget.h>
namespace Rosegarden
{
-SynthPluginManagerDialog::SynthPluginManagerDialog(QWidget *parent,
+SynthPluginManagerDialog::SynthPluginManagerDialog(TQWidget *parent,
RosegardenGUIDoc *doc
#ifdef HAVE_LIBLO
, AudioPluginOSCGUIManager *guiManager
@@ -70,16 +70,16 @@ SynthPluginManagerDialog::SynthPluginManagerDialog(QWidget *parent,
{
setCaption(i18n("Manage Synth Plugins"));
- QFrame *mainBox = new QFrame(this);
+ TQFrame *mainBox = new TQFrame(this);
setCentralWidget(mainBox);
- QVBoxLayout *mainLayout = new QVBoxLayout(mainBox, 10, 10);
+ TQVBoxLayout *mainLayout = new TQVBoxLayout(mainBox, 10, 10);
- QGroupBox *groupBox = new QGroupBox(1, Horizontal, i18n("Synth plugins"), mainBox);
+ TQGroupBox *groupBox = new TQGroupBox(1, Horizontal, i18n("Synth plugins"), mainBox);
mainLayout->addWidget(groupBox);
- QFrame *pluginFrame = new QFrame(groupBox);
- QGridLayout *pluginLayout = new QGridLayout(pluginFrame, 1, 4, 3, 3);
+ TQFrame *pluginFrame = new TQFrame(groupBox);
+ TQGridLayout *pluginLayout = new TQGridLayout(pluginFrame, 1, 4, 3, 3);
m_synthPlugins.clear();
m_synthPlugins.push_back( -1);
@@ -103,9 +103,9 @@ SynthPluginManagerDialog::SynthPluginManagerDialog(QWidget *parent,
if (!instrument)
continue;
- // pluginLayout->addWidget(new QLabel(instrument->getPresentationName().c_str(),
+ // pluginLayout->addWidget(new TQLabel(instrument->getPresentationName().c_str(),
// pluginFrame), i, 0);
- pluginLayout->addWidget(new QLabel(QString("%1").arg(i + 1),
+ pluginLayout->addWidget(new TQLabel(TQString("%1").arg(i + 1),
pluginFrame), i, 0);
AudioPluginInstance *plugin = instrument->getPlugin
@@ -135,48 +135,48 @@ SynthPluginManagerDialog::SynthPluginManagerDialog(QWidget *parent,
}
}
- connect(pluginCombo, SIGNAL(activated(int)),
- this, SLOT(slotPluginChanged(int)));
+ connect(pluginCombo, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotPluginChanged(int)));
pluginLayout->addWidget(pluginCombo, i, 1);
m_synthCombos.push_back(pluginCombo);
- QPushButton *controlsButton = new QPushButton(i18n("Controls"), pluginFrame);
+ TQPushButton *controlsButton = new TQPushButton(i18n("Controls"), pluginFrame);
pluginLayout->addWidget(controlsButton, i, 2);
- connect(controlsButton, SIGNAL(clicked()), this, SLOT(slotControlsButtonClicked()));
+ connect(controlsButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotControlsButtonClicked()));
m_controlsButtons.push_back(controlsButton);
#ifdef HAVE_LIBLO
- QPushButton *guiButton = new QPushButton(i18n("Editor >>"), pluginFrame);
+ TQPushButton *guiButton = new TQPushButton(i18n("Editor >>"), pluginFrame);
pluginLayout->addWidget(guiButton, i, 3);
guiButton->setEnabled(m_guiManager->hasGUI
(id, Instrument::SYNTH_PLUGIN_POSITION));
- connect(guiButton, SIGNAL(clicked()), this, SLOT(slotGUIButtonClicked()));
+ connect(guiButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotGUIButtonClicked()));
m_guiButtons.push_back(guiButton);
#endif
}
- QFrame* btnBox = new QFrame(mainBox);
+ TQFrame* btnBox = new TQFrame(mainBox);
btnBox->setSizePolicy(
- QSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed));
+ TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Fixed));
- QPushButton *closeButton = new QPushButton(i18n("Close"), btnBox);
+ TQPushButton *closeButton = new TQPushButton(i18n("Close"), btnBox);
- QHBoxLayout* layout = new QHBoxLayout(btnBox, 0, 10);
+ TQHBoxLayout* layout = new TQHBoxLayout(btnBox, 0, 10);
layout->addStretch(10);
layout->addWidget(closeButton);
layout->addSpacing(5);
KAction* close = KStdAction::close(this,
- SLOT(slotClose()),
+ TQT_SLOT(slotClose()),
actionCollection());
closeButton->setText(close->text());
- connect(closeButton, SIGNAL(clicked()), this, SLOT(slotClose()));
+ connect(closeButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotClose()));
mainLayout->addWidget(btnBox);
@@ -224,7 +224,7 @@ SynthPluginManagerDialog::SynthPluginManagerDialog(QWidget *parent,
}
void
- SynthPluginManagerDialog::closeEvent(QCloseEvent *e)
+ SynthPluginManagerDialog::closeEvent(TQCloseEvent *e)
{
emit closing();
KMainWindow::closeEvent(e);
@@ -233,7 +233,7 @@ SynthPluginManagerDialog::SynthPluginManagerDialog(QWidget *parent,
void
SynthPluginManagerDialog::slotGUIButtonClicked()
{
- const QObject *s = sender();
+ const TQObject *s = sender();
int instrumentNo = -1;
@@ -255,7 +255,7 @@ SynthPluginManagerDialog::SynthPluginManagerDialog(QWidget *parent,
void
SynthPluginManagerDialog::slotControlsButtonClicked()
{
- const QObject *s = sender();
+ const TQObject *s = sender();
int instrumentNo = -1;
@@ -277,7 +277,7 @@ SynthPluginManagerDialog::SynthPluginManagerDialog(QWidget *parent,
void
SynthPluginManagerDialog::slotPluginChanged(int index)
{
- const QObject *s = sender();
+ const TQObject *s = sender();
RG_DEBUG << "SynthPluginManagerDialog::slotPluginChanged(" << index
<< ")" << endl;
diff --git a/src/gui/studio/SynthPluginManagerDialog.h b/src/gui/studio/SynthPluginManagerDialog.h
index b66a338..f58c07c 100644
--- a/src/gui/studio/SynthPluginManagerDialog.h
+++ b/src/gui/studio/SynthPluginManagerDialog.h
@@ -31,9 +31,9 @@
#include <vector>
-class QWidget;
-class QPushButton;
-class QCloseEvent;
+class TQWidget;
+class TQPushButton;
+class TQCloseEvent;
class KComboBox;
@@ -51,7 +51,7 @@ class SynthPluginManagerDialog : public KMainWindow
Q_OBJECT
public:
- SynthPluginManagerDialog(QWidget *parent,
+ SynthPluginManagerDialog(TQWidget *parent,
RosegardenGUIDoc *doc
#ifdef HAVE_LIBLO
, AudioPluginOSCGUIManager *guiManager
@@ -65,7 +65,7 @@ public:
signals:
void closing();
void pluginSelected(InstrumentId, int pluginIndex, int plugin);
- void showPluginDialog(QWidget *, InstrumentId, int pluginIndex);
+ void showPluginDialog(TQWidget *, InstrumentId, int pluginIndex);
void showPluginGUI(InstrumentId, int pluginIndex);
protected slots:
@@ -75,7 +75,7 @@ protected slots:
void slotGUIButtonClicked();
protected:
- virtual void closeEvent(QCloseEvent *);
+ virtual void closeEvent(TQCloseEvent *);
protected:
RosegardenGUIDoc *m_document;
@@ -83,8 +83,8 @@ protected:
AudioPluginManager *m_pluginManager;
std::vector<int> m_synthPlugins;
std::vector<KComboBox *> m_synthCombos;
- std::vector<QPushButton *> m_controlsButtons;
- std::vector<QPushButton *> m_guiButtons;
+ std::vector<TQPushButton *> m_controlsButtons;
+ std::vector<TQPushButton *> m_guiButtons;
#ifdef HAVE_LIBLO
AudioPluginOSCGUIManager *m_guiManager;
diff --git a/src/gui/studio/TimerCallbackAssistant.cpp b/src/gui/studio/TimerCallbackAssistant.cpp
index ec8518c..7b2bc76 100644
--- a/src/gui/studio/TimerCallbackAssistant.cpp
+++ b/src/gui/studio/TimerCallbackAssistant.cpp
@@ -25,8 +25,8 @@
#include "TimerCallbackAssistant.h"
-#include <qobject.h>
-#include <qtimer.h>
+#include <tqobject.h>
+#include <tqtimer.h>
namespace Rosegarden
@@ -37,14 +37,14 @@ TimerCallbackAssistant::TimerCallbackAssistant(int ms, void (*callback)(void *da
m_callback(callback),
m_data(data)
{
- QTimer *timer = new QTimer(this);
- connect(timer, SIGNAL(timeout()), this, SLOT(slotCallback()));
+ TQTimer *timer = new TQTimer(this);
+ connect(timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotCallback()));
timer->start(ms, FALSE);
}
TimerCallbackAssistant::~TimerCallbackAssistant()
{
- // nothing -- the QTimer is deleted automatically by its parent QObject (me)
+ // nothing -- the TQTimer is deleted automatically by its parent TQObject (me)
}
void
diff --git a/src/gui/studio/TimerCallbackAssistant.h b/src/gui/studio/TimerCallbackAssistant.h
index 2a8e353..836db90 100644
--- a/src/gui/studio/TimerCallbackAssistant.h
+++ b/src/gui/studio/TimerCallbackAssistant.h
@@ -26,7 +26,7 @@
#ifndef _RG_TIMERCALLBACKASSISTANT_H_
#define _RG_TIMERCALLBACKASSISTANT_H_
-#include <qobject.h>
+#include <tqobject.h>
@@ -36,7 +36,7 @@ namespace Rosegarden
/* This assistant class is here simply to work around the fact that
- AudioPluginOSCGUI cannot be a QObject because it's only
+ AudioPluginOSCGUI cannot be a TQObject because it's only
conditionally compiled. */
class TimerCallbackAssistant : public QObject