diff options
Diffstat (limited to 'src/gui/studio/MidiMixerWindow.cpp')
-rw-r--r-- | src/gui/studio/MidiMixerWindow.cpp | 106 |
1 files changed, 53 insertions, 53 deletions
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(); } |