summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/parameters/AudioInstrumentParameterPanel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/editors/parameters/AudioInstrumentParameterPanel.cpp')
-rw-r--r--src/gui/editors/parameters/AudioInstrumentParameterPanel.cpp94
1 files changed, 47 insertions, 47 deletions
diff --git a/src/gui/editors/parameters/AudioInstrumentParameterPanel.cpp b/src/gui/editors/parameters/AudioInstrumentParameterPanel.cpp
index 44a202b..bfa61a8 100644
--- a/src/gui/editors/parameters/AudioInstrumentParameterPanel.cpp
+++ b/src/gui/editors/parameters/AudioInstrumentParameterPanel.cpp
@@ -24,7 +24,7 @@
#include "AudioInstrumentParameterPanel.h"
-#include <qlayout.h>
+#include <tqlayout.h>
#include <kapplication.h>
#include <klocale.h>
@@ -45,16 +45,16 @@
#include "InstrumentParameterPanel.h"
#include "sound/MappedCommon.h"
#include "sound/MappedStudio.h"
-#include <qcolor.h>
-#include <qframe.h>
-#include <qlabel.h>
-#include <qpalette.h>
-#include <qpixmap.h>
-#include <qpushbutton.h>
-#include <qstring.h>
-#include <qtooltip.h>
-#include <qwidget.h>
-#include <qsignalmapper.h>
+#include <tqcolor.h>
+#include <tqframe.h>
+#include <tqlabel.h>
+#include <tqpalette.h>
+#include <tqpixmap.h>
+#include <tqpushbutton.h>
+#include <tqstring.h>
+#include <tqtooltip.h>
+#include <tqwidget.h>
+#include <tqsignalmapper.h>
namespace Rosegarden
@@ -115,11 +115,11 @@ AudioInstrumentParameterPanel::slotPluginSelected(InstrumentId instrumentId,
<< ", index = " << index
<< ", plugin = " << plugin << endl;
- QColor pluginBackgroundColour = Qt::black;
+ TQColor pluginBackgroundColour = Qt::black;
bool bypassed = false;
- QPushButton *button = 0;
- QString noneText;
+ TQPushButton *button = 0;
+ TQString noneText;
// updates synth gui button &c:
m_audioFader->slotSetInstrument(&m_doc->getStudio(), m_selectedInstrument);
@@ -138,7 +138,7 @@ AudioInstrumentParameterPanel::slotPluginSelected(InstrumentId instrumentId,
if (plugin == -1) {
button->setText(noneText);
- QToolTip::add
+ TQToolTip::add
(button, noneText);
} else {
@@ -148,7 +148,7 @@ AudioInstrumentParameterPanel::slotPluginSelected(InstrumentId instrumentId,
if (pluginClass) {
button->setText(pluginClass->getLabel());
- QToolTip::add
+ TQToolTip::add
(button, pluginClass->getLabel());
pluginBackgroundColour = pluginClass->getColour();
@@ -179,7 +179,7 @@ AudioInstrumentParameterPanel::slotPluginBypassed(InstrumentId instrumentId,
AudioPluginInstance *inst =
m_selectedInstrument->getPlugin(pluginIndex);
- QColor backgroundColour = Qt::black; // default background colour
+ TQColor backgroundColour = Qt::black; // default background colour
if (inst && inst->isAssigned()) {
AudioPlugin *pluginClass
@@ -198,14 +198,14 @@ AudioInstrumentParameterPanel::slotPluginBypassed(InstrumentId instrumentId,
void
AudioInstrumentParameterPanel::setButtonColour(
- int pluginIndex, bool bypassState, const QColor &colour)
+ int pluginIndex, bool bypassState, const TQColor &colour)
{
RG_DEBUG << "AudioInstrumentParameterPanel::setButtonColour "
<< "pluginIndex = " << pluginIndex
<< ", bypassState = " << bypassState
<< ", rgb = " << colour.name() << endl;
- QPushButton *button = 0;
+ TQPushButton *button = 0;
if (pluginIndex == Instrument::SYNTH_PLUGIN_POSITION) {
button = m_audioFader->m_synthButton;
@@ -220,19 +220,19 @@ AudioInstrumentParameterPanel::setButtonColour(
if (bypassState) {
button->
setPaletteForegroundColor(kapp->palette().
- color(QPalette::Active, QColorGroup::Button));
+ color(TQPalette::Active, TQColorGroup::Button));
button->
setPaletteBackgroundColor(kapp->palette().
- color(QPalette::Active, QColorGroup::ButtonText));
+ color(TQPalette::Active, TQColorGroup::ButtonText));
} else if (colour == Qt::black) {
button->
setPaletteForegroundColor(kapp->palette().
- color(QPalette::Active, QColorGroup::ButtonText));
+ color(TQPalette::Active, TQColorGroup::ButtonText));
button->
setPaletteBackgroundColor(kapp->palette().
- color(QPalette::Active, QColorGroup::Button));
+ color(TQPalette::Active, TQColorGroup::Button));
} else {
button->
setPaletteForegroundColor(Qt::white);
@@ -242,11 +242,11 @@ AudioInstrumentParameterPanel::setButtonColour(
}
}
-AudioInstrumentParameterPanel::AudioInstrumentParameterPanel(RosegardenGUIDoc* doc, QWidget* parent)
+AudioInstrumentParameterPanel::AudioInstrumentParameterPanel(RosegardenGUIDoc* doc, TQWidget* parent)
: InstrumentParameterPanel(doc, parent),
m_audioFader(new AudioFaderBox(this))
{
- QGridLayout *gridLayout = new QGridLayout(this, 3, 2, 5, 5);
+ TQGridLayout *gridLayout = new TQGridLayout(this, 3, 2, 5, 5);
// Instrument label : first row, all cols
gridLayout->addMultiCellWidget(m_instrumentLabel, 0, 0, 0, 1, AlignCenter);
@@ -256,32 +256,32 @@ AudioInstrumentParameterPanel::AudioInstrumentParameterPanel(RosegardenGUIDoc* d
gridLayout->setRowStretch(2, 1);
- connect(m_audioFader, SIGNAL(audioChannelsChanged(int)),
- this, SLOT(slotAudioChannels(int)));
+ connect(m_audioFader, TQT_SIGNAL(audioChannelsChanged(int)),
+ this, TQT_SLOT(slotAudioChannels(int)));
- connect(m_audioFader->m_signalMapper, SIGNAL(mapped(int)),
- this, SLOT(slotSelectPlugin(int)));
+ connect(m_audioFader->m_signalMapper, TQT_SIGNAL(mapped(int)),
+ this, TQT_SLOT(slotSelectPlugin(int)));
- connect(m_audioFader->m_fader, SIGNAL(faderChanged(float)),
- this, SLOT(slotSelectAudioLevel(float)));
+ connect(m_audioFader->m_fader, TQT_SIGNAL(faderChanged(float)),
+ this, TQT_SLOT(slotSelectAudioLevel(float)));
- connect(m_audioFader->m_recordFader, SIGNAL(faderChanged(float)),
- this, SLOT(slotSelectAudioRecordLevel(float)));
+ connect(m_audioFader->m_recordFader, TQT_SIGNAL(faderChanged(float)),
+ this, TQT_SLOT(slotSelectAudioRecordLevel(float)));
- connect(m_audioFader->m_pan, SIGNAL(valueChanged(float)),
- this, SLOT(slotSetPan(float)));
+ connect(m_audioFader->m_pan, TQT_SIGNAL(valueChanged(float)),
+ this, TQT_SLOT(slotSetPan(float)));
- connect(m_audioFader->m_audioOutput, SIGNAL(changed()),
- this, SLOT(slotAudioRoutingChanged()));
+ connect(m_audioFader->m_audioOutput, TQT_SIGNAL(changed()),
+ this, TQT_SLOT(slotAudioRoutingChanged()));
- connect(m_audioFader->m_audioInput, SIGNAL(changed()),
- this, SLOT(slotAudioRoutingChanged()));
+ connect(m_audioFader->m_audioInput, TQT_SIGNAL(changed()),
+ this, TQT_SLOT(slotAudioRoutingChanged()));
- connect(m_audioFader->m_synthButton, SIGNAL(clicked()),
- this, SLOT(slotSynthButtonClicked()));
+ connect(m_audioFader->m_synthButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotSynthButtonClicked()));
- connect(m_audioFader->m_synthGUIButton, SIGNAL(clicked()),
- this, SLOT(slotSynthGUIButtonClicked()));
+ connect(m_audioFader->m_synthGUIButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotSynthGUIButtonClicked()));
}
void
@@ -348,8 +348,8 @@ AudioInstrumentParameterPanel::setupForInstrument(Instrument* instrument)
for (int i = start; i < int(m_audioFader->m_plugins.size()); i++) {
int index;
- QPushButton *button;
- QString noneText;
+ TQPushButton *button;
+ TQString noneText;
if (i == -1) {
index = Instrument::SYNTH_PLUGIN_POSITION;
@@ -373,14 +373,14 @@ AudioInstrumentParameterPanel::setupForInstrument(Instrument* instrument)
if (pluginClass) {
button->setText(pluginClass->getLabel());
- QToolTip::add
+ TQToolTip::add
(button, pluginClass->getLabel());
setButtonColour(index, inst->isBypassed(),
pluginClass->getColour());
}
} else {
button->setText(noneText);
- QToolTip::add
+ TQToolTip::add
(button, noneText);
setButtonColour(index, inst ? inst->isBypassed() : false, Qt::black);
}