diff options
Diffstat (limited to 'src/gui/studio/AudioMixerWindow.cpp')
-rw-r--r-- | src/gui/studio/AudioMixerWindow.cpp | 304 |
1 files changed, 152 insertions, 152 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(); |