summaryrefslogtreecommitdiffstats
path: root/src/gui/studio/AudioMixerWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/studio/AudioMixerWindow.cpp')
-rw-r--r--src/gui/studio/AudioMixerWindow.cpp142
1 files changed, 71 insertions, 71 deletions
diff --git a/src/gui/studio/AudioMixerWindow.cpp b/src/gui/studio/AudioMixerWindow.cpp
index 2b7ad0e..e95a6b1 100644
--- a/src/gui/studio/AudioMixerWindow.cpp
+++ b/src/gui/studio/AudioMixerWindow.cpp
@@ -89,90 +89,90 @@ static const unsigned int MIXER_SHOW_UNASSIGNED_FADERS = 1 << 3;
static const unsigned int MIXER_OMIT_SYNTH_FADERS = 1 << 4;
-AudioMixerWindow::AudioMixerWindow(TQWidget *parent,
+AudioMixerWindow::AudioMixerWindow(TQWidget *tqparent,
RosegardenGUIDoc *document):
- MixerWindow(parent, document),
+ MixerWindow(tqparent, document),
m_mainBox (0)
{
populate();
- KStdAction::close(this,
+ KStdAction::close(TQT_TQOBJECT(this),
TQT_SLOT(slotClose()),
actionCollection());
- TQIconSet icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ TQIconSet icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-play")));
- KAction *play = new KAction(i18n("&Play"), icon, Key_Enter, this,
+ KAction *play = new KAction(i18n("&Play"), icon, Key_Enter, TQT_TQOBJECT(this),
TQT_SIGNAL(play()), actionCollection(), "play");
// Alternative shortcut for Play
KShortcut playShortcut = play->shortcut();
playShortcut.append( KKey(Key_Return + CTRL) );
play->setShortcut(playShortcut);
- icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-stop")));
- new KAction(i18n("&Stop"), icon, Key_Insert, this,
+ new KAction(i18n("&Stop"), icon, Key_Insert, TQT_TQOBJECT(this),
TQT_SIGNAL(stop()), actionCollection(), "stop");
- icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-rewind")));
- new KAction(i18n("Re&wind"), icon, Key_End, this,
+ new KAction(i18n("Re&wind"), icon, Key_End, TQT_TQOBJECT(this),
TQT_SIGNAL(rewindPlayback()), actionCollection(),
"playback_pointer_back_bar");
- icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-ffwd")));
- new KAction(i18n("&Fast Forward"), icon, Key_PageDown, this,
+ new KAction(i18n("&Fast Forward"), icon, Key_PageDown, TQT_TQOBJECT(this),
TQT_SIGNAL(fastForwardPlayback()), actionCollection(),
"playback_pointer_forward_bar");
- icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-rewind-end")));
- new KAction(i18n("Rewind to &Beginning"), icon, 0, this,
+ new KAction(i18n("Rewind to &Beginning"), icon, 0, TQT_TQOBJECT(this),
TQT_SIGNAL(rewindPlaybackToBeginning()), actionCollection(),
"playback_pointer_start");
- icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-ffwd-end")));
- new KAction(i18n("Fast Forward to &End"), icon, 0, this,
+ new KAction(i18n("Fast Forward to &End"), icon, 0, TQT_TQOBJECT(this),
TQT_SIGNAL(fastForwardPlaybackToEnd()), actionCollection(),
"playback_pointer_end");
- icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-record")));
- new KAction(i18n("&Record"), icon, 0, this,
+ new KAction(i18n("&Record"), icon, 0, TQT_TQOBJECT(this),
TQT_SIGNAL(record()), actionCollection(),
"record");
- icon = TQIconSet(NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap
+ icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory::makeToolbarPixmap
("transport-panic")));
- new KAction(i18n("Panic"), icon, Key_P + CTRL + ALT, this,
+ new KAction(i18n("Panic"), icon, Key_P + CTRL + ALT, TQT_TQOBJECT(this),
TQT_SIGNAL(panic()), actionCollection(),
"panic");
unsigned int mixerOptions = m_studio->getMixerDisplayOptions();
- (new KToggleAction(i18n("Show Audio &Faders"), 0, this,
+ (new KToggleAction(i18n("Show Audio &Faders"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotToggleFaders()), actionCollection(),
"show_audio_faders"))->setChecked
(!(mixerOptions & MIXER_OMIT_FADERS));
- (new KToggleAction(i18n("Show Synth &Faders"), 0, this,
+ (new KToggleAction(i18n("Show Synth &Faders"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotToggleSynthFaders()), actionCollection(),
"show_synth_faders"))->setChecked
(!(mixerOptions & MIXER_OMIT_SYNTH_FADERS));
- (new KToggleAction(i18n("Show &Submasters"), 0, this,
+ (new KToggleAction(i18n("Show &Submasters"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotToggleSubmasters()), actionCollection(),
"show_audio_submasters"))->setChecked
(!(mixerOptions & MIXER_OMIT_SUBMASTERS));
- (new KToggleAction(i18n("Show &Plugin Buttons"), 0, this,
+ (new KToggleAction(i18n("Show &Plugin Buttons"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotTogglePluginButtons()), actionCollection(),
"show_plugin_buttons"))->setChecked
(!(mixerOptions & MIXER_OMIT_PLUGINS));
- (new KToggleAction(i18n("Show &Unassigned Faders"), 0, this,
+ (new KToggleAction(i18n("Show &Unassigned Faders"), 0, TQT_TQOBJECT(this),
TQT_SLOT(slotToggleUnassignedFaders()), actionCollection(),
"show_unassigned_faders"))->setChecked
(mixerOptions & MIXER_SHOW_UNASSIGNED_FADERS);
@@ -182,9 +182,9 @@ AudioMixerWindow::AudioMixerWindow(TQWidget *parent,
for (int i = 1; i <= 16; i *= 2) {
action =
new KRadioAction(i18n("1 Input", "%n Inputs", i),
- 0, this,
+ 0, TQT_TQOBJECT(this),
TQT_SLOT(slotSetInputCountFromAction()), actionCollection(),
- TQString("inputs_%1").arg(i));
+ TQString("inputs_%1").tqarg(i));
action->setExclusiveGroup("inputs");
if (i == int(m_studio->getRecordIns().size()))
action->setChecked(true);
@@ -192,7 +192,7 @@ AudioMixerWindow::AudioMixerWindow(TQWidget *parent,
action = new KRadioAction
(i18n("No Submasters"),
- 0, this,
+ 0, TQT_TQOBJECT(this),
TQT_SLOT(slotSetSubmasterCountFromAction()), actionCollection(),
TQString("submasters_0"));
action->setExclusiveGroup("submasters");
@@ -201,9 +201,9 @@ AudioMixerWindow::AudioMixerWindow(TQWidget *parent,
for (int i = 2; i <= 8; i *= 2) {
action = new KRadioAction
(i18n("1 Submaster", "%n Submasters", i),
- 0, this,
+ 0, TQT_TQOBJECT(this),
TQT_SLOT(slotSetSubmasterCountFromAction()), actionCollection(),
- TQString("submasters_%1").arg(i));
+ TQString("submasters_%1").tqarg(i));
action->setExclusiveGroup("submasters");
if (i == int(m_studio->getBusses().size()) - 1)
action->setChecked(true);
@@ -268,12 +268,12 @@ AudioMixerWindow::populate()
BussList busses = m_studio->getBusses();
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));
+ m_monoPixmap.load(TQString("%1/misc/mono.xpm").tqarg(pixmapDir));
+ m_stereoPixmap.load(TQString("%1/misc/stereo.xpm").tqarg(pixmapDir));
// Total cols: is 2 for each fader, submaster or master, plus 1
// for each spacer.
- TQGridLayout *mainLayout = new QGridLayout
+ TQGridLayout *mainLayout = new TQGridLayout
(m_mainBox, (instruments.size() + busses.size()) * 3, 7);
setCaption(i18n("Audio Mixer"));
@@ -397,11 +397,11 @@ AudioMixerWindow::populate()
TQLabel *idLabel;
TQString idString;
if ((*i)->getType() == Instrument::Audio) {
- idString = i18n("Audio %1").arg((*i)->getId() -
+ idString = i18n("Audio %1").tqarg((*i)->getId() -
AudioInstrumentBase + 1);
idLabel = new TQLabel(idString, m_mainBox, "audioIdLabel");
} else {
- idString = i18n("Synth %1").arg((*i)->getId() -
+ idString = i18n("Synth %1").tqarg((*i)->getId() -
SoftSynthInstrumentBase + 1);
idLabel = new TQLabel(idString, m_mainBox, "synthIdLabel");
}
@@ -411,14 +411,14 @@ AudioMixerWindow::populate()
mainLayout->addMultiCellWidget(rec.m_input->getWidget(), 1, 1, col, col + 1);
}
mainLayout->addMultiCellWidget(rec.m_output->getWidget(), 2, 2, col, col + 1);
- // mainLayout->addWidget(idLabel, 2, col, Qt::AlignCenter);
- // mainLayout->addWidget(rec.m_pan, 2, col+1, Qt::AlignLeft);
+ // mainLayout->addWidget(idLabel, 2, col, TQt::AlignCenter);
+ // mainLayout->addWidget(rec.m_pan, 2, col+1, TQt::AlignLeft);
- mainLayout->addMultiCellWidget(idLabel, 0, 0, col, col + 1, Qt::AlignCenter);
- mainLayout->addWidget(rec.m_pan, 5, col, Qt::AlignCenter);
+ mainLayout->addMultiCellWidget(idLabel, 0, 0, col, col + 1, TQt::AlignCenter);
+ mainLayout->addWidget(rec.m_pan, 5, col, TQt::AlignCenter);
- mainLayout->addWidget(rec.m_fader, 3, col, Qt::AlignCenter);
- mainLayout->addWidget(rec.m_meter, 3, col + 1, Qt::AlignCenter);
+ mainLayout->addWidget(rec.m_fader, 3, col, TQt::AlignCenter);
+ mainLayout->addWidget(rec.m_meter, 3, col + 1, TQt::AlignCenter);
// commented out until implemented
// mainLayout->addWidget(rec.m_muteButton, 4, col);
@@ -525,17 +525,17 @@ AudioMixerWindow::populate()
this, TQT_SLOT(slotSelectPlugin()));
}
- TQLabel *idLabel = new TQLabel(i18n("Sub %1").arg(count), m_mainBox, "subMaster");
+ TQLabel *idLabel = new TQLabel(i18n("Sub %1").tqarg(count), m_mainBox, "subMaster");
idLabel->setFont(boldFont);
- // mainLayout->addWidget(idLabel, 2, col, Qt::AlignCenter);
- mainLayout->addMultiCellWidget(idLabel, 0, 0, col, col + 1, Qt::AlignCenter);
+ // mainLayout->addWidget(idLabel, 2, col, TQt::AlignCenter);
+ mainLayout->addMultiCellWidget(idLabel, 0, 0, col, col + 1, TQt::AlignCenter);
- // mainLayout->addWidget(rec.m_pan, 2, col+1, Qt::AlignLeft);
- mainLayout->addMultiCellWidget(rec.m_pan, 5, 5, col, col + 1, Qt::AlignCenter);
+ // mainLayout->addWidget(rec.m_pan, 2, col+1, TQt::AlignLeft);
+ mainLayout->addMultiCellWidget(rec.m_pan, 5, 5, col, col + 1, TQt::AlignCenter);
- mainLayout->addWidget(rec.m_fader, 3, col, Qt::AlignCenter);
- mainLayout->addWidget(rec.m_meter, 3, col + 1, Qt::AlignCenter);
+ mainLayout->addWidget(rec.m_fader, 3, col, TQt::AlignCenter);
+ mainLayout->addWidget(rec.m_meter, 3, col + 1, TQt::AlignCenter);
// mainLayout->addMultiCellWidget(rec.m_muteButton, 4, 4, col, col+1);
rec.m_muteButton->hide();
@@ -587,9 +587,9 @@ AudioMixerWindow::populate()
TQLabel *idLabel = new TQLabel(i18n("Master"), m_mainBox);
idLabel->setFont(boldFont);
- mainLayout->addMultiCellWidget(idLabel, 0, 0, col, col + 1, Qt::AlignCenter);
- mainLayout->addWidget(rec.m_fader, 3, col, Qt::AlignCenter);
- mainLayout->addWidget(rec.m_meter, 3, col + 1, Qt::AlignCenter);
+ mainLayout->addMultiCellWidget(idLabel, 0, 0, col, col + 1, TQt::AlignCenter);
+ mainLayout->addWidget(rec.m_fader, 3, col, TQt::AlignCenter);
+ mainLayout->addWidget(rec.m_meter, 3, col + 1, TQt::AlignCenter);
// mainLayout->addMultiCellWidget(rec.m_muteButton, 4, 4, col, col+1);
rec.m_muteButton->hide();
@@ -706,7 +706,7 @@ AudioMixerWindow::slotPluginSelected(InstrumentId id,
}
- rec.m_plugins[index]->setPaletteForegroundColor(Qt::white);
+ rec.m_plugins[index]->setPaletteForegroundColor(TQt::white);
rec.m_plugins[index]->setPaletteBackgroundColor(pluginBgColour);
}
} else if (id > 0 && id <= m_submasters.size()) {
@@ -745,7 +745,7 @@ AudioMixerWindow::slotPluginSelected(InstrumentId id,
}
- rec.m_plugins[index]->setPaletteForegroundColor(Qt::white);
+ rec.m_plugins[index]->setPaletteForegroundColor(TQt::white);
rec.m_plugins[index]->setPaletteBackgroundColor(pluginBgColour);
}
}
@@ -921,7 +921,7 @@ AudioMixerWindow::updatePluginButtons(int id)
} else if (used) {
- rec->m_plugins[i]->setPaletteForegroundColor(Qt::white);
+ rec->m_plugins[i]->setPaletteForegroundColor(TQt::white);
rec->m_plugins[i]->setPaletteBackgroundColor(pluginBgColour);
@@ -942,7 +942,7 @@ AudioMixerWindow::updatePluginButtons(int id)
void
AudioMixerWindow::slotSelectPlugin()
{
- const TQObject *s = sender();
+ const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender()));
for (FaderMap::iterator i = m_faders.begin();
i != m_faders.end(); ++i) {
@@ -954,7 +954,7 @@ AudioMixerWindow::slotSelectPlugin()
for (std::vector<TQPushButton *>::iterator pli = i->second.m_plugins.begin();
pli != i->second.m_plugins.end(); ++pli) {
- if (*pli == s) {
+ if (TQT_BASE_OBJECT(*pli) == TQT_BASE_OBJECT_CONST(s)) {
emit selectPlugin(this, i->first, index);
return ;
@@ -977,7 +977,7 @@ AudioMixerWindow::slotSelectPlugin()
for (std::vector<TQPushButton *>::iterator pli = i->m_plugins.begin();
pli != i->m_plugins.end(); ++pli) {
- if (*pli == s) {
+ if (TQT_BASE_OBJECT(*pli) == TQT_BASE_OBJECT_CONST(s)) {
emit selectPlugin(this, b, index);
return ;
@@ -993,7 +993,7 @@ AudioMixerWindow::slotSelectPlugin()
void
AudioMixerWindow::slotInputChanged()
{
- const TQObject *s = sender();
+ const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender()));
for (FaderMap::iterator i = m_faders.begin();
i != m_faders.end(); ++i) {
@@ -1006,7 +1006,7 @@ AudioMixerWindow::slotInputChanged()
void
AudioMixerWindow::slotOutputChanged()
{
- const TQObject *s = sender();
+ const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender()));
for (FaderMap::iterator i = m_faders.begin();
i != m_faders.end(); ++i) {
@@ -1060,11 +1060,11 @@ AudioMixerWindow::sendControllerRefresh()
void
AudioMixerWindow::slotFaderLevelChanged(float dB)
{
- const TQObject *s = sender();
+ const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender()));
BussList busses = m_studio->getBusses();
- if (m_master.m_fader == s) {
+ if (TQT_BASE_OBJECT(m_master.m_fader) == TQT_BASE_OBJECT_CONST(s)) {
if (busses.size() > 0) {
StudioControl::setStudioObjectProperty
@@ -1082,7 +1082,7 @@ AudioMixerWindow::slotFaderLevelChanged(float dB)
for (FaderVector::iterator i = m_submasters.begin();
i != m_submasters.end(); ++i) {
- if (i->m_fader == s) {
+ if (TQT_BASE_OBJECT(i->m_fader) == TQT_BASE_OBJECT_CONST(s)) {
if ((int)busses.size() > index) {
StudioControl::setStudioObjectProperty
(MappedObjectId(busses[index]->getMappedId()),
@@ -1102,7 +1102,7 @@ AudioMixerWindow::slotFaderLevelChanged(float dB)
for (FaderMap::iterator i = m_faders.begin();
i != m_faders.end(); ++i) {
- if (i->second.m_fader == s) {
+ if (TQT_BASE_OBJECT(i->second.m_fader) == TQT_BASE_OBJECT_CONST(s)) {
Instrument *instrument =
m_studio->getInstrumentById(i->first);
@@ -1140,7 +1140,7 @@ AudioMixerWindow::slotFaderLevelChanged(float dB)
void
AudioMixerWindow::slotPanChanged(float pan)
{
- const TQObject *s = sender();
+ const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender()));
BussList busses = m_studio->getBusses();
@@ -1149,7 +1149,7 @@ AudioMixerWindow::slotPanChanged(float pan)
for (FaderVector::iterator i = m_submasters.begin();
i != m_submasters.end(); ++i) {
- if (i->m_pan == s) {
+ if (TQT_BASE_OBJECT(i->m_pan) == TQT_BASE_OBJECT_CONST(s)) {
if ((int)busses.size() > index) {
StudioControl::setStudioObjectProperty
(MappedObjectId(busses[index]->getMappedId()),
@@ -1168,7 +1168,7 @@ AudioMixerWindow::slotPanChanged(float pan)
for (FaderMap::iterator i = m_faders.begin();
i != m_faders.end(); ++i) {
- if (i->second.m_pan == s) {
+ if (TQT_BASE_OBJECT(i->second.m_pan) == TQT_BASE_OBJECT_CONST(s)) {
Instrument *instrument =
m_studio->getInstrumentById(i->first);
@@ -1208,7 +1208,7 @@ AudioMixerWindow::slotPanChanged(float pan)
void
AudioMixerWindow::slotChannelsChanged()
{
- const TQObject *s = sender();
+ const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender()));
// channels are only switchable on instruments
@@ -1218,7 +1218,7 @@ AudioMixerWindow::slotChannelsChanged()
for (FaderMap::iterator i = m_faders.begin();
i != m_faders.end(); ++i) {
- if (s == i->second.m_stereoButton) {
+ if (TQT_BASE_OBJECT_CONST(s) == TQT_BASE_OBJECT(i->second.m_stereoButton)) {
Instrument *instrument =
m_studio->getInstrumentById(i->first);
@@ -1322,7 +1322,7 @@ AudioMixerWindow::updateMonitorMeters(SequencerMapper *mapper)
// only show monitor levels when quiescent or when recording (as
// record levels)
if (m_document->getSequenceManager() &&
- m_document->getSequenceManager()->getTransportStatus() == PLAYING) {
+ m_document->getSequenceManager()->getTransporttqStatus() == PLAYING) {
return ;
}
@@ -1444,7 +1444,7 @@ AudioMixerWindow::slotControllerDeviceEventReceived(MappedEvent *e,
void
AudioMixerWindow::slotSetInputCountFromAction()
{
- const TQObject *s = sender();
+ const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender()));
TQString name = s->name();
if (name.left(7) == "inputs_") {
@@ -1475,7 +1475,7 @@ AudioMixerWindow::slotSetInputCountFromAction()
void
AudioMixerWindow::slotSetSubmasterCountFromAction()
{
- const TQObject *s = sender();
+ const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender()));
TQString name = s->name();
if (name.left(11) == "submasters_") {
@@ -1714,7 +1714,7 @@ AudioMixerWindow::slotToggleUnassignedFaders()
void
AudioMixerWindow::toggleNamedWidgets(bool show, const char* const name)
{
- TQLayoutIterator it = m_mainBox->layout()->iterator();
+ TQLayoutIterator it = m_mainBox->tqlayout()->iterator();
TQLayoutItem *child;
while ( (child = it.current()) != 0 ) {
TQWidget * widget = child->widget();