summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/parameters
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/editors/parameters')
-rw-r--r--src/gui/editors/parameters/AudioInstrumentParameterPanel.cpp94
-rw-r--r--src/gui/editors/parameters/AudioInstrumentParameterPanel.h20
-rw-r--r--src/gui/editors/parameters/InstrumentParameterBox.cpp56
-rw-r--r--src/gui/editors/parameters/InstrumentParameterBox.h20
-rw-r--r--src/gui/editors/parameters/InstrumentParameterPanel.cpp14
-rw-r--r--src/gui/editors/parameters/InstrumentParameterPanel.h12
-rw-r--r--src/gui/editors/parameters/MIDIInstrumentParameterPanel.cpp120
-rw-r--r--src/gui/editors/parameters/MIDIInstrumentParameterPanel.h42
-rw-r--r--src/gui/editors/parameters/RosegardenParameterArea.cpp52
-rw-r--r--src/gui/editors/parameters/RosegardenParameterArea.h24
-rw-r--r--src/gui/editors/parameters/RosegardenParameterBox.cpp32
-rw-r--r--src/gui/editors/parameters/RosegardenParameterBox.h28
-rw-r--r--src/gui/editors/parameters/SegmentParameterBox.cpp212
-rw-r--r--src/gui/editors/parameters/SegmentParameterBox.h42
-rw-r--r--src/gui/editors/parameters/TrackParameterBox.cpp204
-rw-r--r--src/gui/editors/parameters/TrackParameterBox.h60
16 files changed, 516 insertions, 516 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);
}
diff --git a/src/gui/editors/parameters/AudioInstrumentParameterPanel.h b/src/gui/editors/parameters/AudioInstrumentParameterPanel.h
index 932e6bc..87da334 100644
--- a/src/gui/editors/parameters/AudioInstrumentParameterPanel.h
+++ b/src/gui/editors/parameters/AudioInstrumentParameterPanel.h
@@ -28,12 +28,12 @@
#include "base/MidiProgram.h"
#include "InstrumentParameterPanel.h"
-#include <qpixmap.h>
-#include <qstring.h>
+#include <tqpixmap.h>
+#include <tqstring.h>
-class QWidget;
-class QColor;
+class TQWidget;
+class TQColor;
namespace Rosegarden
@@ -48,7 +48,7 @@ class AudioInstrumentParameterPanel : public InstrumentParameterPanel
{
Q_OBJECT
public:
- AudioInstrumentParameterPanel(RosegardenGUIDoc* doc, QWidget* parent);
+ AudioInstrumentParameterPanel(RosegardenGUIDoc* doc, TQWidget* parent);
virtual void setupForInstrument(Instrument*);
@@ -61,7 +61,7 @@ public:
// Set the button colour
//
void setButtonColour(int pluginIndex, bool bypassState,
- const QColor &color);
+ const TQColor &color);
public slots:
// From AudioFaderBox
@@ -84,10 +84,10 @@ public slots:
void slotSynthGUIButtonClicked();
signals:
- void selectPlugin(QWidget *, InstrumentId, int index);
+ void selectPlugin(TQWidget *, InstrumentId, int index);
void instrumentParametersChanged(InstrumentId);
void showPluginGUI(InstrumentId, int index);
- void changeInstrumentLabel(InstrumentId id, QString label);
+ void changeInstrumentLabel(InstrumentId id, TQString label);
protected:
//--------------- Data members ---------------------------------
@@ -96,8 +96,8 @@ protected:
private:
- QPixmap m_monoPixmap;
- QPixmap m_stereoPixmap;
+ TQPixmap m_monoPixmap;
+ TQPixmap m_stereoPixmap;
};
diff --git a/src/gui/editors/parameters/InstrumentParameterBox.cpp b/src/gui/editors/parameters/InstrumentParameterBox.cpp
index 8114e0d..1d5b99d 100644
--- a/src/gui/editors/parameters/InstrumentParameterBox.cpp
+++ b/src/gui/editors/parameters/InstrumentParameterBox.cpp
@@ -24,7 +24,7 @@
#include "InstrumentParameterBox.h"
-#include <qlayout.h>
+#include <tqlayout.h>
#include <klocale.h>
#include "misc/Debug.h"
@@ -36,25 +36,25 @@
#include "RosegardenParameterArea.h"
#include "RosegardenParameterBox.h"
#include <ktabwidget.h>
-#include <qfont.h>
-#include <qframe.h>
-#include <qscrollview.h>
-#include <qstring.h>
-#include <qvbox.h>
-#include <qwidget.h>
-#include <qwidgetstack.h>
+#include <tqfont.h>
+#include <tqframe.h>
+#include <tqscrollview.h>
+#include <tqstring.h>
+#include <tqvbox.h>
+#include <tqwidget.h>
+#include <tqwidgetstack.h>
namespace Rosegarden
{
InstrumentParameterBox::InstrumentParameterBox(RosegardenGUIDoc *doc,
- QWidget *parent)
+ TQWidget *parent)
: RosegardenParameterBox(i18n("Instrument"),
i18n("Instrument Parameters"),
parent),
- m_widgetStack(new QWidgetStack(this)),
- m_noInstrumentParameters(new QVBox(this)),
+ m_widgetStack(new TQWidgetStack(this)),
+ m_noInstrumentParameters(new TQVBox(this)),
m_midiInstrumentParameters(new MIDIInstrumentParameterPanel(doc, this)),
m_audioInstrumentParameters(new AudioInstrumentParameterPanel(doc, this)),
m_selectedInstrument(-1),
@@ -86,43 +86,43 @@ InstrumentParameterBox::InstrumentParameterBox(RosegardenGUIDoc *doc,
m_audioInstrumentParameters->adjustSize();
m_noInstrumentParameters->adjustSize();
- connect(m_audioInstrumentParameters, SIGNAL(updateAllBoxes()),
- this, SLOT(slotUpdateAllBoxes()));
+ connect(m_audioInstrumentParameters, TQT_SIGNAL(updateAllBoxes()),
+ this, TQT_SLOT(slotUpdateAllBoxes()));
connect(m_audioInstrumentParameters,
- SIGNAL(instrumentParametersChanged(InstrumentId)),
+ TQT_SIGNAL(instrumentParametersChanged(InstrumentId)),
this,
- SIGNAL(instrumentParametersChanged(InstrumentId)));
+ TQT_SIGNAL(instrumentParametersChanged(InstrumentId)));
connect(m_audioInstrumentParameters,
- SIGNAL(selectPlugin(QWidget *, InstrumentId, int)),
+ TQT_SIGNAL(selectPlugin(TQWidget *, InstrumentId, int)),
this,
- SIGNAL(selectPlugin(QWidget *, InstrumentId, int)));
+ TQT_SIGNAL(selectPlugin(TQWidget *, InstrumentId, int)));
connect(m_audioInstrumentParameters,
- SIGNAL(showPluginGUI(InstrumentId, int)),
+ TQT_SIGNAL(showPluginGUI(InstrumentId, int)),
this,
- SIGNAL(showPluginGUI(InstrumentId, int)));
+ TQT_SIGNAL(showPluginGUI(InstrumentId, int)));
- connect(m_midiInstrumentParameters, SIGNAL(updateAllBoxes()),
- this, SLOT(slotUpdateAllBoxes()));
+ connect(m_midiInstrumentParameters, TQT_SIGNAL(updateAllBoxes()),
+ this, TQT_SLOT(slotUpdateAllBoxes()));
connect(m_midiInstrumentParameters,
- SIGNAL(changeInstrumentLabel(InstrumentId, QString)),
- this, SIGNAL(changeInstrumentLabel(InstrumentId, QString)));
+ TQT_SIGNAL(changeInstrumentLabel(InstrumentId, TQString)),
+ this, TQT_SIGNAL(changeInstrumentLabel(InstrumentId, TQString)));
connect(m_audioInstrumentParameters,
- SIGNAL(changeInstrumentLabel(InstrumentId, QString)),
- this, SIGNAL(changeInstrumentLabel(InstrumentId, QString)));
+ TQT_SIGNAL(changeInstrumentLabel(InstrumentId, TQString)),
+ this, TQT_SIGNAL(changeInstrumentLabel(InstrumentId, TQString)));
connect(m_midiInstrumentParameters,
- SIGNAL(instrumentParametersChanged(InstrumentId)),
+ TQT_SIGNAL(instrumentParametersChanged(InstrumentId)),
this,
- SIGNAL(instrumentParametersChanged(InstrumentId)));
+ TQT_SIGNAL(instrumentParametersChanged(InstrumentId)));
// Layout the groups left to right.
- QBoxLayout* layout = new QVBoxLayout(this);
+ TQBoxLayout* layout = new TQVBoxLayout(this);
layout->addWidget(m_widgetStack);
}
diff --git a/src/gui/editors/parameters/InstrumentParameterBox.h b/src/gui/editors/parameters/InstrumentParameterBox.h
index f406567..cc36351 100644
--- a/src/gui/editors/parameters/InstrumentParameterBox.h
+++ b/src/gui/editors/parameters/InstrumentParameterBox.h
@@ -29,13 +29,13 @@
#include "base/MidiProgram.h"
#include "RosegardenParameterArea.h"
#include "RosegardenParameterBox.h"
-#include <qstring.h>
+#include <tqstring.h>
#include <vector>
-class QWidgetStack;
-class QWidget;
-class QFrame;
+class TQWidgetStack;
+class TQWidget;
+class TQFrame;
namespace Rosegarden
@@ -56,7 +56,7 @@ Q_OBJECT
public:
InstrumentParameterBox(RosegardenGUIDoc *doc,
- QWidget *parent = 0);
+ TQWidget *parent = 0);
~InstrumentParameterBox();
void useInstrument(Instrument *instrument);
@@ -70,7 +70,7 @@ public:
virtual void showAdditionalControls(bool showThem);
- virtual QString getPreviousBox(RosegardenParameterArea::Arrangement) const;
+ virtual TQString getPreviousBox(RosegardenParameterArea::Arrangement) const;
public slots:
@@ -91,9 +91,9 @@ public slots:
signals:
- void changeInstrumentLabel(InstrumentId id, QString label);
+ void changeInstrumentLabel(InstrumentId id, TQString label);
- void selectPlugin(QWidget*, InstrumentId id, int index);
+ void selectPlugin(TQWidget*, InstrumentId id, int index);
void showPluginGUI(InstrumentId id, int index);
void instrumentParametersChanged(InstrumentId);
@@ -102,8 +102,8 @@ signals:
protected:
//--------------- Data members ---------------------------------
- QWidgetStack *m_widgetStack;
- QFrame *m_noInstrumentParameters;
+ TQWidgetStack *m_widgetStack;
+ TQFrame *m_noInstrumentParameters;
MIDIInstrumentParameterPanel *m_midiInstrumentParameters;
AudioInstrumentParameterPanel *m_audioInstrumentParameters;
diff --git a/src/gui/editors/parameters/InstrumentParameterPanel.cpp b/src/gui/editors/parameters/InstrumentParameterPanel.cpp
index 9437daf..a47a8a8 100644
--- a/src/gui/editors/parameters/InstrumentParameterPanel.cpp
+++ b/src/gui/editors/parameters/InstrumentParameterPanel.cpp
@@ -28,23 +28,23 @@
#include "base/Instrument.h"
#include "document/RosegardenGUIDoc.h"
#include <ksqueezedtextlabel.h>
-#include <qfontmetrics.h>
-#include <qframe.h>
-#include <qlabel.h>
-#include <qwidget.h>
+#include <tqfontmetrics.h>
+#include <tqframe.h>
+#include <tqlabel.h>
+#include <tqwidget.h>
namespace Rosegarden
{
InstrumentParameterPanel::InstrumentParameterPanel(RosegardenGUIDoc *doc,
- QWidget* parent)
- : QFrame(parent),
+ TQWidget* parent)
+ : TQFrame(parent),
m_instrumentLabel(new KSqueezedTextLabel(this)),
m_selectedInstrument(0),
m_doc(doc)
{
- QFontMetrics metrics(m_instrumentLabel->fontMetrics());
+ TQFontMetrics metrics(m_instrumentLabel->fontMetrics());
int width25 = metrics.width("1234567890123456789012345");
m_instrumentLabel->setFixedWidth(width25);
diff --git a/src/gui/editors/parameters/InstrumentParameterPanel.h b/src/gui/editors/parameters/InstrumentParameterPanel.h
index 9a794d0..717ffd2 100644
--- a/src/gui/editors/parameters/InstrumentParameterPanel.h
+++ b/src/gui/editors/parameters/InstrumentParameterPanel.h
@@ -26,12 +26,12 @@
#ifndef _RG_INSTRUMENTPARAMETERPANEL_H_
#define _RG_INSTRUMENTPARAMETERPANEL_H_
-#include <qframe.h>
+#include <tqframe.h>
#include <vector>
#include <utility>
-class QWidget;
-class QLabel;
+class TQWidget;
+class TQLabel;
namespace Rosegarden
@@ -41,7 +41,7 @@ class RosegardenGUIDoc;
class Instrument;
class Rotary;
-typedef std::pair<Rotary *, QLabel *> RotaryPair;
+typedef std::pair<Rotary *, TQLabel *> RotaryPair;
typedef std::vector<std::pair<int, RotaryPair> > RotaryMap;
@@ -51,7 +51,7 @@ class InstrumentParameterPanel : public QFrame
{
Q_OBJECT
public:
- InstrumentParameterPanel(RosegardenGUIDoc *doc, QWidget* parent);
+ InstrumentParameterPanel(RosegardenGUIDoc *doc, TQWidget* parent);
virtual ~InstrumentParameterPanel() {};
@@ -66,7 +66,7 @@ signals:
protected:
//--------------- Data members ---------------------------------
- QLabel *m_instrumentLabel;
+ TQLabel *m_instrumentLabel;
Instrument *m_selectedInstrument;
RosegardenGUIDoc *m_doc;
};
diff --git a/src/gui/editors/parameters/MIDIInstrumentParameterPanel.cpp b/src/gui/editors/parameters/MIDIInstrumentParameterPanel.cpp
index fcd4247..61a9256 100644
--- a/src/gui/editors/parameters/MIDIInstrumentParameterPanel.cpp
+++ b/src/gui/editors/parameters/MIDIInstrumentParameterPanel.cpp
@@ -24,7 +24,7 @@
#include "MIDIInstrumentParameterPanel.h"
-#include <qlayout.h>
+#include <tqlayout.h>
#include "sound/Midi.h"
#include <klocale.h>
@@ -44,52 +44,52 @@
#include "sound/MappedInstrument.h"
#include <kcombobox.h>
#include <ksqueezedtextlabel.h>
-#include <qcheckbox.h>
-#include <qcolor.h>
-#include <qfontmetrics.h>
-#include <qframe.h>
-#include <qhbox.h>
-#include <qlabel.h>
-#include <qregexp.h>
-#include <qsignalmapper.h>
-#include <qstring.h>
-#include <qwidget.h>
+#include <tqcheckbox.h>
+#include <tqcolor.h>
+#include <tqfontmetrics.h>
+#include <tqframe.h>
+#include <tqhbox.h>
+#include <tqlabel.h>
+#include <tqregexp.h>
+#include <tqsignalmapper.h>
+#include <tqstring.h>
+#include <tqwidget.h>
#include <algorithm>
namespace Rosegarden
{
-MIDIInstrumentParameterPanel::MIDIInstrumentParameterPanel(RosegardenGUIDoc *doc, QWidget* parent):
+MIDIInstrumentParameterPanel::MIDIInstrumentParameterPanel(RosegardenGUIDoc *doc, TQWidget* parent):
InstrumentParameterPanel(doc, parent),
m_rotaryFrame(0),
- m_rotaryMapper(new QSignalMapper(this))
+ m_rotaryMapper(new TQSignalMapper(this))
{
- m_mainGrid = new QGridLayout(this, 10, 3, 2, 1);
+ m_mainGrid = new TQGridLayout(this, 10, 3, 2, 1);
m_connectionLabel = new KSqueezedTextLabel(this);
m_bankValue = new KComboBox(this);
m_channelValue = new KComboBox(this);
m_programValue = new KComboBox(this);
m_variationValue = new KComboBox(this);
- m_bankCheckBox = new QCheckBox(this);
- m_programCheckBox = new QCheckBox(this);
- m_variationCheckBox = new QCheckBox(this);
- m_percussionCheckBox = new QCheckBox(this);
+ m_bankCheckBox = new TQCheckBox(this);
+ m_programCheckBox = new TQCheckBox(this);
+ m_variationCheckBox = new TQCheckBox(this);
+ m_percussionCheckBox = new TQCheckBox(this);
m_bankValue->setSizeLimit(20);
m_programValue->setSizeLimit(20);
m_variationValue->setSizeLimit(20);
- m_bankLabel = new QLabel(i18n("Bank"), this);
- m_variationLabel = new QLabel(i18n("Variation"), this);
- m_programLabel = new QLabel(i18n("Program"), this);
- QLabel *channelLabel = new QLabel(i18n("Channel out"), this);
- QLabel *percussionLabel = new QLabel(i18n("Percussion"), this);
+ m_bankLabel = new TQLabel(i18n("Bank"), this);
+ m_variationLabel = new TQLabel(i18n("Variation"), this);
+ m_programLabel = new TQLabel(i18n("Program"), this);
+ TQLabel *channelLabel = new TQLabel(i18n("Channel out"), this);
+ TQLabel *percussionLabel = new TQLabel(i18n("Percussion"), this);
// Ensure a reasonable amount of space in the program dropdowns even
// if no instrument initially selected
- QFontMetrics metrics(m_programValue->font());
+ TQFontMetrics metrics(m_programValue->font());
int width22 = metrics.width("1234567890123456789012");
int width25 = metrics.width("1234567890123456789012345");
@@ -131,7 +131,7 @@ MIDIInstrumentParameterPanel::MIDIInstrumentParameterPanel(RosegardenGUIDoc *doc
// Populate channel lists
//
for (int i = 0; i < 16; i++) {
- m_channelValue->insertItem(QString("%1").arg(i + 1));
+ m_channelValue->insertItem(TQString("%1").arg(i + 1));
}
m_channelValue->setSizeLimit(16);
@@ -152,32 +152,32 @@ MIDIInstrumentParameterPanel::MIDIInstrumentParameterPanel(RosegardenGUIDoc *doc
// Connect up the toggle boxes
//
- connect(m_percussionCheckBox, SIGNAL(toggled(bool)),
- this, SLOT(slotTogglePercussion(bool)));
+ connect(m_percussionCheckBox, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotTogglePercussion(bool)));
- connect(m_programCheckBox, SIGNAL(toggled(bool)),
- this, SLOT(slotToggleProgramChange(bool)));
+ connect(m_programCheckBox, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotToggleProgramChange(bool)));
- connect(m_bankCheckBox, SIGNAL(toggled(bool)),
- this, SLOT(slotToggleBank(bool)));
+ connect(m_bankCheckBox, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotToggleBank(bool)));
- connect(m_variationCheckBox, SIGNAL(toggled(bool)),
- this, SLOT(slotToggleVariation(bool)));
+ connect(m_variationCheckBox, TQT_SIGNAL(toggled(bool)),
+ this, TQT_SLOT(slotToggleVariation(bool)));
// Connect activations
//
- connect(m_bankValue, SIGNAL(activated(int)),
- this, SLOT(slotSelectBank(int)));
+ connect(m_bankValue, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotSelectBank(int)));
- connect(m_variationValue, SIGNAL(activated(int)),
- this, SLOT(slotSelectVariation(int)));
+ connect(m_variationValue, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotSelectVariation(int)));
- connect(m_programValue, SIGNAL(activated(int)),
- this, SLOT(slotSelectProgram(int)));
+ connect(m_programValue, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotSelectProgram(int)));
- connect(m_channelValue, SIGNAL(activated(int)),
- this, SLOT(slotSelectChannel(int)));
+ connect(m_channelValue, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotSelectChannel(int)));
// don't select any of the options in any dropdown
m_programValue->setCurrentItem( -1);
@@ -185,8 +185,8 @@ MIDIInstrumentParameterPanel::MIDIInstrumentParameterPanel(RosegardenGUIDoc *doc
m_channelValue->setCurrentItem( -1);
m_variationValue->setCurrentItem( -1);
- connect(m_rotaryMapper, SIGNAL(mapped(int)),
- this, SLOT(slotControllerChanged(int)));
+ connect(m_rotaryMapper, TQT_SIGNAL(mapped(int)),
+ this, TQT_SLOT(slotControllerChanged(int)));
}
void
@@ -210,18 +210,18 @@ MIDIInstrumentParameterPanel::setupForInstrument(Instrument *instrument)
// Set Studio Device name
//
- QString connection(strtoqstr(md->getConnection()));
+ TQString connection(strtoqstr(md->getConnection()));
if (connection == "") {
m_connectionLabel->setText(i18n("[ %1 ]").arg(i18n("No connection")));
} else {
// remove trailing "(duplex)", "(read only)", "(write only)" etc
- connection.replace(QRegExp("\\s*\\([^)0-9]+\\)\\s*$"), "");
+ connection.replace(TQRegExp("\\s*\\([^)0-9]+\\)\\s*$"), "");
- QString text = i18n("[ %1 ]").arg(connection);
- /*QString origText(text);
+ TQString text = i18n("[ %1 ]").arg(connection);
+ /*TQString origText(text);
- QFontMetrics metrics(m_connectionLabel->fontMetrics());
+ TQFontMetrics metrics(m_connectionLabel->fontMetrics());
int maxwidth = metrics.width
("Program: [X] Acoustic Grand Piano 123");// kind of arbitrary!
@@ -292,10 +292,10 @@ void
MIDIInstrumentParameterPanel::setupControllers(MidiDevice *md)
{
if (!m_rotaryFrame) {
- m_rotaryFrame = new QFrame(this);
+ m_rotaryFrame = new TQFrame(this);
m_mainGrid->addMultiCellWidget(m_rotaryFrame, 8, 8, 0, 2, Qt::AlignHCenter);
- m_rotaryGrid = new QGridLayout(m_rotaryFrame, 10, 3, 8, 1);
- m_rotaryGrid->addItem(new QSpacerItem(10, 4), 0, 1);
+ m_rotaryGrid = new TQGridLayout(m_rotaryFrame, 10, 3, 8, 1);
+ m_rotaryGrid->addItem(new TQSpacerItem(10, 4), 0, 1);
}
// To cut down on flicker, we avoid destroying and recreating
@@ -321,12 +321,12 @@ MIDIInstrumentParameterPanel::setupControllers(MidiDevice *md)
// Get the knob colour - only if the colour is non-default (>0)
//
- QColor knobColour = Qt::black; // special case for Rotary
+ TQColor knobColour = Qt::black; // special case for Rotary
if (it->getColourIndex() > 0) {
Colour c =
comp.getGeneralColourMap().getColourByIndex
(it->getColourIndex());
- knobColour = QColor(c.getRed(), c.getGreen(), c.getBlue());
+ knobColour = TQColor(c.getRed(), c.getGreen(), c.getBlue());
}
Rotary *rotary = 0;
@@ -367,14 +367,14 @@ MIDIInstrumentParameterPanel::setupControllers(MidiDevice *md)
// Update the controller name that is associated with
// with the existing rotary widget.
- QLabel *label = rmi->second.second;
+ TQLabel *label = rmi->second.second;
label->setText(strtoqstr(it->getName()));
++rmi;
} else {
- QHBox *hbox = new QHBox(m_rotaryFrame);
+ TQHBox *hbox = new TQHBox(m_rotaryFrame);
hbox->setSpacing(8);
float smallStep = 1.0;
@@ -400,7 +400,7 @@ MIDIInstrumentParameterPanel::setupControllers(MidiDevice *md)
rotary->setKnobColour(knobColour);
// Add a label
- QLabel *label = new KSqueezedTextLabel(strtoqstr(it->getName()), hbox);
+ TQLabel *label = new KSqueezedTextLabel(strtoqstr(it->getName()), hbox);
RG_DEBUG << "Adding new widget at " << (count / 2) << "," << (count % 2) << endl;
@@ -417,8 +417,8 @@ MIDIInstrumentParameterPanel::setupControllers(MidiDevice *md)
// Connect
//
- connect(rotary, SIGNAL(valueChanged(float)),
- m_rotaryMapper, SLOT(map()));
+ connect(rotary, TQT_SIGNAL(valueChanged(float)),
+ m_rotaryMapper, TQT_SLOT(map()));
rmi = m_rotaries.end();
}
@@ -640,7 +640,7 @@ MIDIInstrumentParameterPanel::populateProgramList()
for (unsigned int i = 0; i < programs.size(); ++i) {
std::string programName = programs[i].getName();
if (programName != "") {
- m_programValue->insertItem(QString("%1. %2")
+ m_programValue->insertItem(TQString("%1. %2")
.arg(programs[i].getProgram() + 1)
.arg(strtoqstr(programName)));
if (m_selectedInstrument->getProgram() == programs[i]) {
@@ -762,7 +762,7 @@ MIDIInstrumentParameterPanel::populateVariationList()
i18n("(default)") :
strtoqstr(programName));
*/
- m_variationValue->insertItem(QString("%1. %2")
+ m_variationValue->insertItem(TQString("%1. %2")
.arg(variations[i] + 1)
.arg(strtoqstr(programName)));
if (m_selectedInstrument->getProgram() == program) {
diff --git a/src/gui/editors/parameters/MIDIInstrumentParameterPanel.h b/src/gui/editors/parameters/MIDIInstrumentParameterPanel.h
index 7f1a1c5..22c0ba1 100644
--- a/src/gui/editors/parameters/MIDIInstrumentParameterPanel.h
+++ b/src/gui/editors/parameters/MIDIInstrumentParameterPanel.h
@@ -29,15 +29,15 @@
#include "base/MidiProgram.h"
#include "base/MidiDevice.h"
#include "InstrumentParameterPanel.h"
-#include <qstring.h>
+#include <tqstring.h>
-class QWidget;
-class QSignalMapper;
-class QLabel;
-class QGridLayout;
-class QFrame;
-class QCheckBox;
+class TQWidget;
+class TQSignalMapper;
+class TQLabel;
+class TQGridLayout;
+class TQFrame;
+class TQCheckBox;
class KComboBox;
@@ -54,7 +54,7 @@ class MIDIInstrumentParameterPanel : public InstrumentParameterPanel
Q_OBJECT
public:
- MIDIInstrumentParameterPanel(RosegardenGUIDoc *doc, QWidget* parent);
+ MIDIInstrumentParameterPanel(RosegardenGUIDoc *doc, TQWidget* parent);
void setupControllers(MidiDevice *); // setup ControlParameters on box
@@ -63,7 +63,7 @@ public:
void showAdditionalControls(bool showThem);
signals:
- void changeInstrumentLabel(InstrumentId id, QString label);
+ void changeInstrumentLabel(InstrumentId id, TQString label);
void instrumentParametersChanged(InstrumentId);
public slots:
@@ -102,7 +102,7 @@ protected:
//--------------- Data members ---------------------------------
- QLabel *m_connectionLabel;
+ TQLabel *m_connectionLabel;
KComboBox *m_bankValue;
KComboBox *m_variationValue;
@@ -110,20 +110,20 @@ protected:
KComboBox *m_programValue;
//KComboBox *m_channelInValue;
- QCheckBox *m_percussionCheckBox;
- QCheckBox *m_bankCheckBox;
- QCheckBox *m_variationCheckBox;
- QCheckBox *m_programCheckBox;
+ TQCheckBox *m_percussionCheckBox;
+ TQCheckBox *m_bankCheckBox;
+ TQCheckBox *m_variationCheckBox;
+ TQCheckBox *m_programCheckBox;
- QLabel *m_bankLabel;
- QLabel *m_variationLabel;
- QLabel *m_programLabel;
+ TQLabel *m_bankLabel;
+ TQLabel *m_variationLabel;
+ TQLabel *m_programLabel;
- QGridLayout *m_mainGrid;
- QFrame *m_rotaryFrame;
- QGridLayout *m_rotaryGrid;
+ TQGridLayout *m_mainGrid;
+ TQFrame *m_rotaryFrame;
+ TQGridLayout *m_rotaryGrid;
RotaryMap m_rotaries;
- QSignalMapper *m_rotaryMapper;
+ TQSignalMapper *m_rotaryMapper;
BankList m_banks;
ProgramList m_programs;
diff --git a/src/gui/editors/parameters/RosegardenParameterArea.cpp b/src/gui/editors/parameters/RosegardenParameterArea.cpp
index 968c737..8790122 100644
--- a/src/gui/editors/parameters/RosegardenParameterArea.cpp
+++ b/src/gui/editors/parameters/RosegardenParameterArea.cpp
@@ -29,16 +29,16 @@
#include "RosegardenParameterBox.h"
#include <ktabwidget.h>
-#include <qfont.h>
-#include <qframe.h>
-#include <qpoint.h>
-#include <qscrollview.h>
-#include <qstring.h>
-#include <qvbox.h>
-#include <qlayout.h>
-#include <qvgroupbox.h>
-#include <qwidget.h>
-#include <qwidgetstack.h>
+#include <tqfont.h>
+#include <tqframe.h>
+#include <tqpoint.h>
+#include <tqscrollview.h>
+#include <tqstring.h>
+#include <tqvbox.h>
+#include <tqlayout.h>
+#include <tqvgroupbox.h>
+#include <tqwidget.h>
+#include <tqwidgetstack.h>
#include <iostream>
#include <set>
@@ -46,20 +46,20 @@
namespace Rosegarden
{
-RosegardenParameterArea::RosegardenParameterArea(QWidget *parent,
+RosegardenParameterArea::RosegardenParameterArea(TQWidget *parent,
const char *name, WFlags f)
- : QWidgetStack(parent, name, f),
+ : TQWidgetStack(parent, name, f),
m_style(RosegardenParameterArea::CLASSIC_STYLE),
- m_scrollView(new QScrollView(this, 0, Qt::WStaticContents)),
- m_classic(new QVBox(m_scrollView->viewport())),
+ m_scrollView(new TQScrollView(this, 0, Qt::WStaticContents)),
+ m_classic(new TQVBox(m_scrollView->viewport())),
m_tabBox(new KTabWidget(this)),
m_active(0),
m_spacing(0)
{
m_scrollView->addChild(m_classic);
- m_scrollView->setHScrollBarMode(QScrollView::AlwaysOff);
- m_scrollView->setVScrollBarMode(QScrollView::Auto);
- m_scrollView->setResizePolicy(QScrollView::AutoOneFit);
+ m_scrollView->setHScrollBarMode(TQScrollView::AlwaysOff);
+ m_scrollView->setVScrollBarMode(TQScrollView::Auto);
+ m_scrollView->setResizePolicy(TQScrollView::AutoOneFit);
// Install the classic-style VBox widget in the widget-stack.
@@ -93,16 +93,16 @@ void RosegardenParameterArea::addRosegardenParameterBox(
// and outline, in classic mode. Add this container to an array that
// parallels the above array of parameter boxes.
- QVGroupBox *box = new QVGroupBox(b->getLongLabel(), m_classic);
+ TQVGroupBox *box = new TQVGroupBox(b->getLongLabel(), m_classic);
box->layout()->setMargin( 4 ); // about half the default value
- QFont f;
+ TQFont f;
f.setBold( true );
box->setFont( f );
m_groupBoxes.push_back(box);
if (m_spacing)
delete m_spacing;
- m_spacing = new QFrame(m_classic);
+ m_spacing = new TQFrame(m_classic);
m_classic->setStretchFactor(m_spacing, 100);
// Add the parameter box to the current container of the displayed
@@ -120,7 +120,7 @@ void RosegardenParameterArea::setArrangement(Arrangement style)
{
// Lookup the container of the specified style.
- QWidget *container;
+ TQWidget *container;
switch (style) {
case CLASSIC_STYLE:
container = m_classic;
@@ -149,7 +149,7 @@ void RosegardenParameterArea::setArrangement(Arrangement style)
unsorted.insert(m_parameterBoxes[i]);
}
- QString previous = "";
+ TQString previous = "";
while (!unsorted.empty()) {
std::set<RosegardenParameterBox *>::iterator i = unsorted.begin();
@@ -191,8 +191,8 @@ void RosegardenParameterArea::setArrangement(Arrangement style)
m_style = style;
}
-void RosegardenParameterArea::moveWidget(QWidget *old_container,
- QWidget *new_container,
+void RosegardenParameterArea::moveWidget(TQWidget *old_container,
+ TQWidget *new_container,
RosegardenParameterBox *box)
{
// Remove any state that is associated with the parameter boxes,
@@ -215,10 +215,10 @@ void RosegardenParameterArea::moveWidget(QWidget *old_container,
++index;
}
if (index < m_parameterBoxes.size()) {
- box->reparent(m_groupBoxes[index], 0, QPoint(0, 0), FALSE);
+ box->reparent(m_groupBoxes[index], 0, TQPoint(0, 0), FALSE);
}
} else if (new_container == m_tabBox) {
- box->reparent(new_container, 0, QPoint(0, 0), FALSE);
+ box->reparent(new_container, 0, TQPoint(0, 0), FALSE);
m_tabBox->insertTab(box, box->getShortLabel());
}
}
diff --git a/src/gui/editors/parameters/RosegardenParameterArea.h b/src/gui/editors/parameters/RosegardenParameterArea.h
index 1236a43..7af178a 100644
--- a/src/gui/editors/parameters/RosegardenParameterArea.h
+++ b/src/gui/editors/parameters/RosegardenParameterArea.h
@@ -28,14 +28,14 @@
#ifndef _RG_ROSEGARDENPARAMETERAREA_H_
#define _RG_ROSEGARDENPARAMETERAREA_H_
-#include <qwidgetstack.h>
+#include <tqwidgetstack.h>
#include <vector>
-class QWidget;
-class QVGroupBox;
-class QVBox;
-class QScrollView;
+class TQWidget;
+class TQVGroupBox;
+class TQVBox;
+class TQScrollView;
class KTabWidget;
@@ -56,7 +56,7 @@ public:
// Create the parameter display area.
- RosegardenParameterArea(QWidget *parent=0, const char *name=0, WFlags f=0);
+ RosegardenParameterArea(TQWidget *parent=0, const char *name=0, WFlags f=0);
// Add a rosegarden parameter box to the list that are to be displayed.
@@ -88,18 +88,18 @@ private:
// corresponding parameter box widget needs to be enclosed by a
// titled outline.
- std::vector<QVGroupBox *> m_groupBoxes;
+ std::vector<TQVGroupBox *> m_groupBoxes;
// Move a RosegardenParameterBox widget from one container to another.
- void moveWidget(QWidget *old_container, QWidget *new_container,
+ void moveWidget(TQWidget *old_container, TQWidget *new_container,
RosegardenParameterBox *box);
- QScrollView *m_scrollView; // Holds the m_classic container
- QVBox *m_classic; // The container widget for m_style==CLASSIC_STYLE.
+ TQScrollView *m_scrollView; // Holds the m_classic container
+ TQVBox *m_classic; // The container widget for m_style==CLASSIC_STYLE.
KTabWidget *m_tabBox; // The container widget for m_style==TAB_BOX_STYLE.
- QWidget *m_active; // The current container widget.
- QWidget *m_spacing;
+ TQWidget *m_active; // The current container widget.
+ TQWidget *m_spacing;
};
diff --git a/src/gui/editors/parameters/RosegardenParameterBox.cpp b/src/gui/editors/parameters/RosegardenParameterBox.cpp
index 7d9100c..dbefda0 100644
--- a/src/gui/editors/parameters/RosegardenParameterBox.cpp
+++ b/src/gui/editors/parameters/RosegardenParameterBox.cpp
@@ -27,23 +27,23 @@
#include "RosegardenParameterArea.h"
#include <ktabwidget.h>
-#include <qfont.h>
-#include <qframe.h>
-#include <qscrollview.h>
-#include <qstring.h>
-#include <qvbox.h>
-#include <qwidget.h>
-#include <qwidgetstack.h>
+#include <tqfont.h>
+#include <tqframe.h>
+#include <tqscrollview.h>
+#include <tqstring.h>
+#include <tqvbox.h>
+#include <tqwidget.h>
+#include <tqwidgetstack.h>
namespace Rosegarden
{
-RosegardenParameterBox::RosegardenParameterBox(const QString &shortLabel,
- const QString &longLabel,
- QWidget *parent,
+RosegardenParameterBox::RosegardenParameterBox(const TQString &shortLabel,
+ const TQString &longLabel,
+ TQWidget *parent,
const char *name) :
- QFrame(parent, name),
+ TQFrame(parent, name),
m_shortLabel(shortLabel),
m_longLabel(longLabel),
m_mode(LANDSCAPE_MODE)
@@ -53,14 +53,14 @@ RosegardenParameterBox::RosegardenParameterBox(const QString &shortLabel,
void RosegardenParameterBox::init()
{
- QFont plainFont;
+ TQFont plainFont;
plainFont.setPointSize(plainFont.pointSize() * 95 / 100);
if (plainFont.pixelSize() > 14)
plainFont.setPixelSize(14);
plainFont.setBold(false);
m_font = plainFont;
- QFont boldFont;
+ TQFont boldFont;
boldFont.setPointSize(int(boldFont.pointSize() * 9.5 / 10.0 + 0.5));
if (boldFont.pixelSize() > 14)
boldFont.setPixelSize(14);
@@ -69,17 +69,17 @@ void RosegardenParameterBox::init()
setFont(boldFont);
}
-QString RosegardenParameterBox::getShortLabel() const
+TQString RosegardenParameterBox::getShortLabel() const
{
return m_shortLabel;
}
-QString RosegardenParameterBox::getLongLabel() const
+TQString RosegardenParameterBox::getLongLabel() const
{
return m_longLabel;
}
-QString RosegardenParameterBox::getPreviousBox(RosegardenParameterArea::Arrangement) const
+TQString RosegardenParameterBox::getPreviousBox(RosegardenParameterArea::Arrangement) const
{
// No ordering known -- depends on subclasses
return "";
diff --git a/src/gui/editors/parameters/RosegardenParameterBox.h b/src/gui/editors/parameters/RosegardenParameterBox.h
index 6f17358..629245f 100644
--- a/src/gui/editors/parameters/RosegardenParameterBox.h
+++ b/src/gui/editors/parameters/RosegardenParameterBox.h
@@ -27,13 +27,13 @@
#define _RG_ROSEGARDENPARAMETERBOX_H_
#include "RosegardenParameterArea.h"
-#include <qfont.h>
-#include <qframe.h>
-#include <qstring.h>
+#include <tqfont.h>
+#include <tqframe.h>
+#include <tqstring.h>
#include <klocale.h>
-class QWidget;
+class TQWidget;
namespace Rosegarden
@@ -42,7 +42,7 @@ namespace Rosegarden
/**
- * A flat QFrame, in which a group of parameters can be laid out.
+ * A flat TQFrame, in which a group of parameters can be laid out.
* Virtual method functions are defined for for requesting a layout
* style, and returning the single-word to use for labelling the
* box.
@@ -52,19 +52,19 @@ class RosegardenParameterBox : public QFrame
{
Q_OBJECT
public:
- RosegardenParameterBox(const QString &shortLabel, // e.g. i18n("Track")
- const QString &longLabel, // e.g. i18n("Track Parameters")
- QWidget *parent = 0,
+ RosegardenParameterBox(const TQString &shortLabel, // e.g. i18n("Track")
+ const TQString &longLabel, // e.g. i18n("Track Parameters")
+ TQWidget *parent = 0,
const char *name = 0);
// Ask for a one-word string that can be used to label the widget.
- QString getShortLabel() const;
+ TQString getShortLabel() const;
// Ask for the full label (e.g. short-label "Parameters")
- QString getLongLabel() const;
+ TQString getLongLabel() const;
// Get the short label of the prior parameter box (to establish an ordering)
- virtual QString getPreviousBox(RosegardenParameterArea::Arrangement) const;
+ virtual TQString getPreviousBox(RosegardenParameterArea::Arrangement) const;
virtual void showAdditionalControls(bool) = 0;
@@ -80,9 +80,9 @@ protected:
void setLayoutMode(LayoutMode mode);
- QFont m_font;
- QString m_shortLabel; // The string that containers can use for labelling and identification
- QString m_longLabel; // The full title
+ TQFont m_font;
+ TQString m_shortLabel; // The string that containers can use for labelling and identification
+ TQString m_longLabel; // The full title
LayoutMode m_mode; // The current layout mode.
};
diff --git a/src/gui/editors/parameters/SegmentParameterBox.cpp b/src/gui/editors/parameters/SegmentParameterBox.cpp
index c17cbe2..23fce12 100644
--- a/src/gui/editors/parameters/SegmentParameterBox.cpp
+++ b/src/gui/editors/parameters/SegmentParameterBox.cpp
@@ -24,7 +24,7 @@
#include "SegmentParameterBox.h"
-#include <qlayout.h>
+#include <tqlayout.h>
#include <kapplication.h>
#include <klocale.h>
@@ -61,30 +61,30 @@
#include <kconfig.h>
#include <klineeditdlg.h>
#include <ktabwidget.h>
-#include <qbutton.h>
-#include <qcheckbox.h>
-#include <qcolor.h>
-#include <qdialog.h>
-#include <qfont.h>
-#include <qfontmetrics.h>
-#include <qframe.h>
-#include <qlabel.h>
-#include <qpixmap.h>
-#include <qpushbutton.h>
-#include <qscrollview.h>
-#include <qspinbox.h>
-#include <qstring.h>
-#include <qtooltip.h>
-#include <qvbox.h>
-#include <qwidget.h>
-#include <qwidgetstack.h>
+#include <tqbutton.h>
+#include <tqcheckbox.h>
+#include <tqcolor.h>
+#include <tqdialog.h>
+#include <tqfont.h>
+#include <tqfontmetrics.h>
+#include <tqframe.h>
+#include <tqlabel.h>
+#include <tqpixmap.h>
+#include <tqpushbutton.h>
+#include <tqscrollview.h>
+#include <tqspinbox.h>
+#include <tqstring.h>
+#include <tqtooltip.h>
+#include <tqvbox.h>
+#include <tqwidget.h>
+#include <tqwidgetstack.h>
namespace Rosegarden
{
SegmentParameterBox::SegmentParameterBox(RosegardenGUIDoc* doc,
- QWidget *parent)
+ TQWidget *parent)
: RosegardenParameterBox(i18n("Segment"),
i18n("Segment Parameters"),
parent),
@@ -98,8 +98,8 @@ SegmentParameterBox::SegmentParameterBox(RosegardenGUIDoc* doc,
m_doc->getComposition().addObserver(this);
- connect(getCommandHistory(), SIGNAL(commandExecuted()),
- this, SLOT(update()));
+ connect(getCommandHistory(), TQT_SIGNAL(commandExecuted()),
+ this, TQT_SLOT(update()));
}
SegmentParameterBox::~SegmentParameterBox()
@@ -112,48 +112,48 @@ SegmentParameterBox::~SegmentParameterBox()
void
SegmentParameterBox::initBox()
{
- QFont font(m_font);
+ TQFont font(m_font);
- QFontMetrics fontMetrics(font);
+ TQFontMetrics fontMetrics(font);
// magic numbers: 13 is the height of the menu pixmaps, 10 is just 10
//int comboHeight = std::max(fontMetrics.height(), 13) + 10;
int width = fontMetrics.width("12345678901234567890");
- // QFrame *frame = new QFrame(this);
- QGridLayout *gridLayout = new QGridLayout(this, 8, 6, 4, 2);
+ // TQFrame *frame = new TQFrame(this);
+ TQGridLayout *gridLayout = new TQGridLayout(this, 8, 6, 4, 2);
- QLabel *label = new QLabel(i18n("Label"), this);
- QLabel *repeatLabel = new QLabel(i18n("Repeat"), this);
- QLabel *quantizeLabel = new QLabel(i18n("Quantize"), this);
- QLabel *transposeLabel = new QLabel(i18n("Transpose"), this);
- QLabel *delayLabel = new QLabel(i18n("Delay"), this);
- QLabel *colourLabel = new QLabel(i18n("Color"), this);
-// m_autoFadeLabel = new QLabel(i18n("Audio auto-fade"), this);
-// m_fadeInLabel = new QLabel(i18n("Fade in"), this);
-// m_fadeOutLabel = new QLabel(i18n("Fade out"), this);
-// m_rangeLabel = new QLabel(i18n("Range"), this);
+ TQLabel *label = new TQLabel(i18n("Label"), this);
+ TQLabel *repeatLabel = new TQLabel(i18n("Repeat"), this);
+ TQLabel *quantizeLabel = new TQLabel(i18n("Quantize"), this);
+ TQLabel *transposeLabel = new TQLabel(i18n("Transpose"), this);
+ TQLabel *delayLabel = new TQLabel(i18n("Delay"), this);
+ TQLabel *colourLabel = new TQLabel(i18n("Color"), this);
+// m_autoFadeLabel = new TQLabel(i18n("Audio auto-fade"), this);
+// m_fadeInLabel = new TQLabel(i18n("Fade in"), this);
+// m_fadeOutLabel = new TQLabel(i18n("Fade out"), this);
+// m_rangeLabel = new TQLabel(i18n("Range"), this);
// Label ..
- m_label = new QLabel(this);
+ m_label = new TQLabel(this);
m_label->setFont(font);
m_label->setFixedWidth(width);
//m_label->setFixedHeight(comboHeight);
- m_label->setFrameStyle(QFrame::Panel | QFrame::Sunken);
+ m_label->setFrameStyle(TQFrame::Panel | TQFrame::Sunken);
// .. and edit button
- m_labelButton = new QPushButton(i18n("Edit"), this);
+ m_labelButton = new TQPushButton(i18n("Edit"), this);
m_labelButton->setFont(font);
// m_labelButton->setFixedWidth(50);
- connect(m_labelButton, SIGNAL(released()),
- SLOT(slotEditSegmentLabel()));
+ connect(m_labelButton, TQT_SIGNAL(released()),
+ TQT_SLOT(slotEditSegmentLabel()));
m_repeatValue = new TristateCheckBox(this);
m_repeatValue->setFont(font);
//m_repeatValue->setFixedHeight(comboHeight);
// handle state changes
- connect(m_repeatValue, SIGNAL(pressed()), SLOT(slotRepeatPressed()));
+ connect(m_repeatValue, TQT_SIGNAL(pressed()), TQT_SLOT(slotRepeatPressed()));
// non-reversing motif style read-only combo
m_quantizeValue = new KComboBox(this);
@@ -161,8 +161,8 @@ SegmentParameterBox::initBox()
//m_quantizeValue->setFixedHeight(comboHeight);
// handle quantize changes from drop down
- connect(m_quantizeValue, SIGNAL(activated(int)),
- SLOT(slotQuantizeSelected(int)));
+ connect(m_quantizeValue, TQT_SIGNAL(activated(int)),
+ TQT_SLOT(slotQuantizeSelected(int)));
// reversing motif style read-write combo
m_transposeValue = new KComboBox(this);
@@ -170,12 +170,12 @@ SegmentParameterBox::initBox()
//m_transposeValue->setFixedHeight(comboHeight);
// handle transpose combo changes
- connect(m_transposeValue, SIGNAL(activated(int)),
- SLOT(slotTransposeSelected(int)));
+ connect(m_transposeValue, TQT_SIGNAL(activated(int)),
+ TQT_SLOT(slotTransposeSelected(int)));
// and text changes
- connect(m_transposeValue, SIGNAL(textChanged(const QString&)),
- SLOT(slotTransposeTextChanged(const QString&)));
+ connect(m_transposeValue, TQT_SIGNAL(textChanged(const TQString&)),
+ TQT_SLOT(slotTransposeTextChanged(const TQString&)));
// reversing motif style read-write combo
m_delayValue = new KComboBox(this);
@@ -183,16 +183,16 @@ SegmentParameterBox::initBox()
//m_delayValue->setFixedHeight(comboHeight);
// handle delay combo changes
- connect(m_delayValue, SIGNAL(activated(int)),
- SLOT(slotDelaySelected(int)));
+ connect(m_delayValue, TQT_SIGNAL(activated(int)),
+ TQT_SLOT(slotDelaySelected(int)));
// Detect when the document colours are updated
- connect(m_doc, SIGNAL(docColoursChanged()),
- this, SLOT(slotDocColoursChanged()));
+ connect(m_doc, TQT_SIGNAL(docColoursChanged()),
+ this, TQT_SLOT(slotDocColoursChanged()));
// handle text changes for delay
- connect(m_delayValue, SIGNAL(textChanged(const QString&)),
- SLOT(slotDelayTextChanged(const QString &)));
+ connect(m_delayValue, TQT_SIGNAL(textChanged(const TQString&)),
+ TQT_SLOT(slotDelayTextChanged(const TQString &)));
// set up combo box for colours
m_colourValue = new KComboBox(false, this);
@@ -202,55 +202,55 @@ SegmentParameterBox::initBox()
m_colourValue->setSizeLimit(20);
// handle colour combo changes
- connect(m_colourValue, SIGNAL(activated(int)),
- SLOT(slotColourSelected(int)));
+ connect(m_colourValue, TQT_SIGNAL(activated(int)),
+ TQT_SLOT(slotColourSelected(int)));
// pre-set width of buttons so they don't grow later
// width = fontMetrics.width(i18n("used internally for spacing", "High: ----"));
// highest playable note
//
-// m_highButton = new QPushButton(i18n("High: ---"), this);
-// QToolTip::add
+// m_highButton = new TQPushButton(i18n("High: ---"), this);
+// TQToolTip::add
// (m_highButton, i18n("Choose the highest suggested playable note, using a staff"));
// m_highButton->setFont(font);
// m_highButton->setMinimumWidth(width);
-// connect(m_highButton, SIGNAL(released()),
-// SLOT(slotHighestPressed()));
+// connect(m_highButton, TQT_SIGNAL(released()),
+// TQT_SLOT(slotHighestPressed()));
// lowest playable note
//
-// m_lowButton = new QPushButton(i18n("Low: ----"), this);
-// QToolTip::add
+// m_lowButton = new TQPushButton(i18n("Low: ----"), this);
+// TQToolTip::add
// (m_lowButton, i18n("Choose the lowest suggested playable note, using a staff"));
// m_lowButton->setFont(font);
// m_lowButton->setMinimumWidth(width);
-// connect(m_lowButton, SIGNAL(released()),
-// SLOT(slotLowestPressed()));
+// connect(m_lowButton, TQT_SIGNAL(released()),
+// TQT_SLOT(slotLowestPressed()));
// Audio autofade enabled
//
-// m_autoFadeBox = new QCheckBox(this);
-// connect(m_autoFadeBox, SIGNAL(stateChanged(int)),
-// this, SLOT(slotAudioFadeChanged(int)));
+// m_autoFadeBox = new TQCheckBox(this);
+// connect(m_autoFadeBox, TQT_SIGNAL(stateChanged(int)),
+// this, TQT_SLOT(slotAudioFadeChanged(int)));
// Fade in and out times
//
-// m_fadeInSpin = new QSpinBox(this);
+// m_fadeInSpin = new TQSpinBox(this);
// m_fadeInSpin->setMinValue(0);
// m_fadeInSpin->setMaxValue(5000);
// m_fadeInSpin->setSuffix(i18n(" ms"));
-// connect(m_fadeInSpin, SIGNAL(valueChanged(int)),
-// this, SLOT(slotFadeInChanged(int)));
+// connect(m_fadeInSpin, TQT_SIGNAL(valueChanged(int)),
+// this, TQT_SLOT(slotFadeInChanged(int)));
-// m_fadeOutSpin = new QSpinBox(this);
+// m_fadeOutSpin = new TQSpinBox(this);
// m_fadeOutSpin->setMinValue(0);
// m_fadeOutSpin->setMaxValue(5000);
// m_fadeOutSpin->setSuffix(i18n(" ms"));
-// connect(m_fadeOutSpin, SIGNAL(valueChanged(int)),
-// this, SLOT(slotFadeOutChanged(int)));
+// connect(m_fadeOutSpin, TQT_SIGNAL(valueChanged(int)),
+// this, TQT_SLOT(slotFadeOutChanged(int)));
label->setFont(font);
repeatLabel->setFont(font);
@@ -315,14 +315,14 @@ SegmentParameterBox::initBox()
// populate the quantize combo
//
- QPixmap noMap = NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap("menu-no-note"));
+ TQPixmap noMap = NotePixmapFactory::toQPixmap(NotePixmapFactory::makeToolbarPixmap("menu-no-note"));
for (unsigned int i = 0; i < m_standardQuantizations.size(); ++i) {
timeT time = m_standardQuantizations[i];
timeT error = 0;
- QString label = NotationStrings::makeNoteMenuLabel(time, true, error);
- QPixmap pmap = NotePixmapFactory::toQPixmap(NotePixmapFactory::makeNoteMenuPixmap(time, error));
+ TQString label = NotationStrings::makeNoteMenuLabel(time, true, error);
+ TQPixmap pmap = NotePixmapFactory::toQPixmap(NotePixmapFactory::makeNoteMenuPixmap(time, error));
m_quantizeValue->insertItem(error ? noMap : pmap, label);
}
m_quantizeValue->insertItem(noMap, i18n("Off"));
@@ -333,7 +333,7 @@ SegmentParameterBox::initBox()
// populate the transpose combo
//
for (int i = -m_transposeRange; i < m_transposeRange + 1; i++) {
- m_transposeValue->insertItem(noMap, QString("%1").arg(i));
+ m_transposeValue->insertItem(noMap, TQString("%1").arg(i));
if (i == 0)
m_transposeValue->setCurrentItem(m_transposeValue->count() - 1);
}
@@ -355,8 +355,8 @@ SegmentParameterBox::initBox()
// resolution it might not be) & include a note pixmap if so
//
timeT error = 0;
- QString label = NotationStrings::makeNoteMenuLabel(time, true, error);
- QPixmap pmap = NotePixmapFactory::toQPixmap(NotePixmapFactory::makeNoteMenuPixmap(time, error));
+ TQString label = NotationStrings::makeNoteMenuLabel(time, true, error);
+ TQPixmap pmap = NotePixmapFactory::toQPixmap(NotePixmapFactory::makeNoteMenuPixmap(time, error));
m_delayValue->insertItem((error ? noMap : pmap), label);
}
@@ -384,14 +384,14 @@ void
SegmentParameterBox::setDocument(RosegardenGUIDoc* doc)
{
if (m_doc != 0)
- disconnect(m_doc, SIGNAL(docColoursChanged()),
- this, SLOT(slotDocColoursChanged()));
+ disconnect(m_doc, TQT_SIGNAL(docColoursChanged()),
+ this, TQT_SLOT(slotDocColoursChanged()));
m_doc = doc;
// Detect when the document colours are updated
- connect (m_doc, SIGNAL(docColoursChanged()),
- this, SLOT(slotDocColoursChanged()));
+ connect (m_doc, TQT_SIGNAL(docColoursChanged()),
+ this, TQT_SLOT(slotDocColoursChanged()));
slotDocColoursChanged(); // repopulate combo
}
@@ -428,8 +428,8 @@ SegmentParameterBox::slotDocColoursChanged()
unsigned int i = 0;
for (RCMap::const_iterator it = temp.begin(); it != temp.end(); ++it) {
- QString qtrunc(strtoqstr(it->second.second));
- QPixmap colour(15, 15);
+ TQString qtrunc(strtoqstr(it->second.second));
+ TQPixmap colour(15, 15);
colour.fill(GUIPalette::convertColour(it->second.first));
if (qtrunc == "") {
m_colourValue->insertItem(colour, i18n("Default"), i);
@@ -666,11 +666,11 @@ SegmentParameterBox::populateBoxFromSegments()
// 2nd arg of "true" means "add if necessary"
case All:
m_transposeValue->
- setCurrentItem(QString("%1").arg(transposeLevel), true);
+ setCurrentItem(TQString("%1").arg(transposeLevel), true);
break;
case Some:
- m_transposeValue->setCurrentItem(QString(""), true);
+ m_transposeValue->setCurrentItem(TQString(""), true);
break;
case None:
@@ -687,7 +687,7 @@ SegmentParameterBox::populateBoxFromSegments()
case All:
if (delayLevel >= 0) {
timeT error = 0;
- QString label = NotationStrings::makeNoteMenuLabel(delayLevel,
+ TQString label = NotationStrings::makeNoteMenuLabel(delayLevel,
true,
error);
m_delayValue->setCurrentItem(label, true);
@@ -834,12 +834,12 @@ void SegmentParameterBox::slotRepeatPressed()
bool state = false;
switch (m_repeatValue->state()) {
- case QButton::Off:
+ case TQButton::Off:
state = true;
break;
- case QButton::NoChange:
- case QButton::On:
+ case TQButton::NoChange:
+ case TQButton::On:
default:
state = false;
break;
@@ -874,7 +874,7 @@ SegmentParameterBox::slotQuantizeSelected(int qLevel)
}
void
-SegmentParameterBox::slotTransposeTextChanged(const QString &text)
+SegmentParameterBox::slotTransposeTextChanged(const TQString &text)
{
if (text.isEmpty() || m_segments.size() == 0)
return ;
@@ -934,7 +934,7 @@ SegmentParameterBox::slotDelayTimeChanged(timeT delayValue)
}
void
-SegmentParameterBox::slotDelayTextChanged(const QString &text)
+SegmentParameterBox::slotDelayTextChanged(const TQString &text)
{
if (text.isEmpty() || m_segments.size() == 0)
return ;
@@ -978,9 +978,9 @@ SegmentParameterBox::slotColourSelected(int value)
addCommandToHistory(command);
} else {
ColourMap newMap = m_doc->getComposition().getSegmentColourMap();
- QColor newColour;
+ TQColor newColour;
bool ok = false;
- QString newName = KLineEditDlg::getText(i18n("New Color Name"), i18n("Enter new name"),
+ TQString newName = KLineEditDlg::getText(i18n("New Color Name"), i18n("Enter new name"),
i18n("New"), &ok);
if ((ok == true) && (!newName.isEmpty())) {
KColorDialog box(this, "", true);
@@ -1019,8 +1019,8 @@ SegmentParameterBox::updateHighLow()
//!!! FIXME this code is broken, and needs to be fixed after the fashion of
//the TPB, but I'm not bothering with that at this time, because they are
//going to be hidden for 1.3 anyway
-// m_highButton->setText(QString("&High: %1%2").arg(highest.getNoteName(key)).arg(highest.getOctave(base)));
-// m_lowButton->setText(QString("&Low: %1%2").arg(lowest.getNoteName(key)).arg(lowest.getOctave(base)));
+// m_highButton->setText(TQString("&High: %1%2").arg(highest.getNoteName(key)).arg(highest.getOctave(base)));
+// m_lowButton->setText(TQString("&Low: %1%2").arg(lowest.getNoteName(key)).arg(lowest.getOctave(base)));
}
void
@@ -1031,7 +1031,7 @@ SegmentParameterBox::slotHighestPressed()
PitchPickerDialog dialog(0, m_highestPlayable, i18n("Highest playable note"));
std::vector<Segment*>::iterator it;
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
m_highestPlayable = dialog.getPitch();
updateHighLow();
@@ -1051,7 +1051,7 @@ SegmentParameterBox::slotLowestPressed()
PitchPickerDialog dialog(0, m_lowestPlayable, i18n("Lowest playable note"));
std::vector<Segment*>::iterator it;
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
m_lowestPlayable = dialog.getPitch();
updateHighLow();
@@ -1078,7 +1078,7 @@ SegmentParameterBox::addCommandToHistory(KCommand *command)
void
SegmentParameterBox::slotEditSegmentLabel()
{
- QString editLabel;
+ TQString editLabel;
if (m_segments.size() == 0)
return ;
@@ -1091,11 +1091,11 @@ SegmentParameterBox::slotEditSegmentLabel()
// Remove the asterisk if we're using it
//
- QString label = m_label->text();
+ TQString label = m_label->text();
if (label == "*")
label = "";
- QString newLabel = KLineEditDlg::getText(editLabel,
+ TQString newLabel = KLineEditDlg::getText(editLabel,
i18n("Enter new label"),
m_label->text(),
&ok,
@@ -1127,7 +1127,7 @@ SegmentParameterBox::slotAudioFadeChanged(int value)
return ;
bool state = false;
- if (value == QButton::On)
+ if (value == TQButton::On)
state = true;
std::vector<Segment*>::iterator it;
@@ -1147,9 +1147,9 @@ SegmentParameterBox::slotFadeInChanged(int value)
return ;
if (value == 0 && m_fadeOutSpin->value() == 0)
- slotAudioFadeChanged(QButton::Off);
+ slotAudioFadeChanged(TQButton::Off);
else
- slotAudioFadeChanged(QButton::On);
+ slotAudioFadeChanged(TQButton::On);
// Convert from ms
//
@@ -1174,9 +1174,9 @@ SegmentParameterBox::slotFadeOutChanged(int value)
return ;
if (value == 0 && m_fadeInSpin->value() == 0)
- slotAudioFadeChanged(QButton::Off);
+ slotAudioFadeChanged(TQButton::Off);
else
- slotAudioFadeChanged(QButton::On);
+ slotAudioFadeChanged(TQButton::On);
// Convert from ms
//
diff --git a/src/gui/editors/parameters/SegmentParameterBox.h b/src/gui/editors/parameters/SegmentParameterBox.h
index a8b0353..0a7a266 100644
--- a/src/gui/editors/parameters/SegmentParameterBox.h
+++ b/src/gui/editors/parameters/SegmentParameterBox.h
@@ -31,16 +31,16 @@
#include "gui/widgets/ColourTable.h"
#include "RosegardenParameterArea.h"
#include "RosegardenParameterBox.h"
-#include <qstring.h>
+#include <tqstring.h>
#include <vector>
#include "base/Event.h"
-class QWidget;
-class QSpinBox;
-class QPushButton;
-class QLabel;
-class QCheckBox;
+class TQWidget;
+class TQSpinBox;
+class TQPushButton;
+class TQLabel;
+class TQCheckBox;
class KCommand;
class KComboBox;
@@ -72,7 +72,7 @@ public:
} Tristate;
SegmentParameterBox(RosegardenGUIDoc *doc,
- QWidget *parent=0);
+ TQWidget *parent=0);
~SegmentParameterBox();
// Use Segments to update GUI parameters
@@ -93,18 +93,18 @@ public:
virtual void showAdditionalControls(bool showThem);
- virtual QString getPreviousBox(RosegardenParameterArea::Arrangement) const;
+ virtual TQString getPreviousBox(RosegardenParameterArea::Arrangement) const;
public slots:
void slotRepeatPressed();
void slotQuantizeSelected(int);
void slotTransposeSelected(int);
- void slotTransposeTextChanged(const QString &);
+ void slotTransposeTextChanged(const TQString &);
void slotDelaySelected(int);
void slotDelayTimeChanged(timeT delayValue);
- void slotDelayTextChanged(const QString &);
+ void slotDelayTextChanged(const TQString &);
void slotEditSegmentLabel();
@@ -129,11 +129,11 @@ protected:
void populateBoxFromSegments();
void updateHighLow();
- QLabel *m_label;
-// QLabel *m_rangeLabel;
- QPushButton *m_labelButton;
-// QPushButton *m_highButton;
-// QPushButton *m_lowButton;
+ TQLabel *m_label;
+// TQLabel *m_rangeLabel;
+ TQPushButton *m_labelButton;
+// TQPushButton *m_highButton;
+// TQPushButton *m_lowButton;
TristateCheckBox *m_repeatValue;
KComboBox *m_quantizeValue;
KComboBox *m_transposeValue;
@@ -142,12 +142,12 @@ protected:
// Audio autofade
//
-// QLabel *m_autoFadeLabel;
-// QCheckBox *m_autoFadeBox;
-// QLabel *m_fadeInLabel;
-// QSpinBox *m_fadeInSpin;
-// QLabel *m_fadeOutLabel;
-// QSpinBox *m_fadeOutSpin;
+// TQLabel *m_autoFadeLabel;
+// TQCheckBox *m_autoFadeBox;
+// TQLabel *m_fadeInLabel;
+// TQSpinBox *m_fadeInSpin;
+// TQLabel *m_fadeOutLabel;
+// TQSpinBox *m_fadeOutSpin;
int m_addColourPos;
diff --git a/src/gui/editors/parameters/TrackParameterBox.cpp b/src/gui/editors/parameters/TrackParameterBox.cpp
index fc85346..3ddfa69 100644
--- a/src/gui/editors/parameters/TrackParameterBox.cpp
+++ b/src/gui/editors/parameters/TrackParameterBox.cpp
@@ -28,7 +28,7 @@
#include "TrackParameterBox.h"
-#include <qlayout.h>
+#include <tqlayout.h>
#include <kapplication.h>
#include <klocale.h>
@@ -66,29 +66,29 @@
#include <kmessagebox.h>
#include <ksqueezedtextlabel.h>
#include <ktabwidget.h>
-#include <qcolor.h>
-#include <qdialog.h>
-#include <qfont.h>
-#include <qfontmetrics.h>
-#include <qframe.h>
-#include <qlabel.h>
-#include <qpixmap.h>
-#include <qpushbutton.h>
-#include <qregexp.h>
-#include <qscrollview.h>
-#include <qstring.h>
-#include <qtooltip.h>
-#include <qvbox.h>
-#include <qwidget.h>
-#include <qwidgetstack.h>
-#include <qcheckbox.h>
+#include <tqcolor.h>
+#include <tqdialog.h>
+#include <tqfont.h>
+#include <tqfontmetrics.h>
+#include <tqframe.h>
+#include <tqlabel.h>
+#include <tqpixmap.h>
+#include <tqpushbutton.h>
+#include <tqregexp.h>
+#include <tqscrollview.h>
+#include <tqstring.h>
+#include <tqtooltip.h>
+#include <tqvbox.h>
+#include <tqwidget.h>
+#include <tqwidgetstack.h>
+#include <tqcheckbox.h>
namespace Rosegarden
{
TrackParameterBox::TrackParameterBox( RosegardenGUIDoc *doc,
- QWidget *parent)
+ TQWidget *parent)
: RosegardenParameterBox(i18n("Track"),
i18n("Track Parameters"),
parent),
@@ -97,9 +97,9 @@ TrackParameterBox::TrackParameterBox( RosegardenGUIDoc *doc,
m_lowestPlayable(0),
m_selectedTrackId( -1)
{
- QFont font(m_font);
- QFont title_font(m_font);
- QFontMetrics metrics(font);
+ TQFont font(m_font);
+ TQFont title_font(m_font);
+ TQFontMetrics metrics(font);
int width11 = metrics.width("12345678901");
int width20 = metrics.width("12345678901234567890");
int width22 = metrics.width("1234567890123456789012");
@@ -109,7 +109,7 @@ TrackParameterBox::TrackParameterBox( RosegardenGUIDoc *doc,
// Set up default expansions for the collapsing elements
KConfig *config = kapp->config();
- QString groupTemp = config->group();
+ TQString groupTemp = config->group();
config->setGroup("CollapsingFrame");
bool expanded = config->readBoolEntry("trackparametersplayback", true);
config->writeEntry("trackparametersplayback", expanded);
@@ -121,7 +121,7 @@ TrackParameterBox::TrackParameterBox( RosegardenGUIDoc *doc,
config->writeEntry("trackstaffgroup", expanded);
config->setGroup(groupTemp);
- QGridLayout *mainLayout = new QGridLayout(this, 5, 1, 2, 1);
+ TQGridLayout *mainLayout = new TQGridLayout(this, 5, 1, 2, 1);
int row = 0;
@@ -136,9 +136,9 @@ TrackParameterBox::TrackParameterBox( RosegardenGUIDoc *doc,
//
CollapsingFrame *cframe = new CollapsingFrame(i18n("Playback parameters"),
this, "trackparametersplayback");
- m_playbackGroup = new QFrame(cframe);
+ m_playbackGroup = new TQFrame(cframe);
cframe->setWidget(m_playbackGroup);
- QGridLayout *groupLayout = new QGridLayout(m_playbackGroup, 3, 3, 3, 2);
+ TQGridLayout *groupLayout = new TQGridLayout(m_playbackGroup, 3, 3, 3, 2);
// playback group title
//
@@ -147,7 +147,7 @@ TrackParameterBox::TrackParameterBox( RosegardenGUIDoc *doc,
// playback device
//
// row++;
- QLabel *devLabel = new QLabel(i18n("Device"), m_playbackGroup);
+ TQLabel *devLabel = new TQLabel(i18n("Device"), m_playbackGroup);
groupLayout->addWidget(devLabel, row, 0);
m_playDevice = new KComboBox(m_playbackGroup);
m_playDevice->setMinimumWidth(width25);
@@ -156,7 +156,7 @@ TrackParameterBox::TrackParameterBox( RosegardenGUIDoc *doc,
// playback instrument
//
row++;
- QLabel *insLabel = new QLabel(i18n("Instrument"), m_playbackGroup);
+ TQLabel *insLabel = new TQLabel(i18n("Instrument"), m_playbackGroup);
groupLayout->addMultiCellWidget(insLabel, row, row, 0, 1);
m_instrument = new KComboBox(m_playbackGroup);
m_instrument->setSizeLimit( 16 );
@@ -171,16 +171,16 @@ TrackParameterBox::TrackParameterBox( RosegardenGUIDoc *doc,
//
cframe = new CollapsingFrame(i18n("Recording filters"), this,
"trackparametersrecord");
- m_recordGroup = new QFrame(cframe);
+ m_recordGroup = new TQFrame(cframe);
cframe->setWidget(m_recordGroup);
- groupLayout = new QGridLayout(m_recordGroup, 3, 3, 3, 2);
+ groupLayout = new TQGridLayout(m_recordGroup, 3, 3, 3, 2);
// recording group title
//
row = 0;
// recording device
- groupLayout->addWidget(new QLabel(i18n("Device"), m_recordGroup), row, 0);
+ groupLayout->addWidget(new TQLabel(i18n("Device"), m_recordGroup), row, 0);
m_recDevice = new KComboBox(m_recordGroup);
m_recDevice->setMinimumWidth(width25);
groupLayout->addMultiCellWidget(m_recDevice, row, row, 1, 2);
@@ -188,7 +188,7 @@ TrackParameterBox::TrackParameterBox( RosegardenGUIDoc *doc,
// recording channel
//
row++;
- groupLayout->addMultiCellWidget(new QLabel(i18n("Channel"), m_recordGroup), row, row, 0, 1);
+ groupLayout->addMultiCellWidget(new TQLabel(i18n("Channel"), m_recordGroup), row, row, 0, 1);
m_recChannel = new KComboBox(m_recordGroup);
m_recChannel->setSizeLimit( 17 );
m_recChannel->setMinimumWidth(width11);
@@ -202,9 +202,9 @@ TrackParameterBox::TrackParameterBox( RosegardenGUIDoc *doc,
//
cframe = new CollapsingFrame(i18n("Staff export options"), this,
"staffoptions");
- m_staffGroup = new QFrame(cframe);
+ m_staffGroup = new TQFrame(cframe);
cframe->setWidget(m_staffGroup);
- groupLayout = new QGridLayout(m_staffGroup, 2, 2, 2, 2);
+ groupLayout = new TQGridLayout(m_staffGroup, 2, 2, 2, 2);
groupLayout->setColStretch(1, 1);
@@ -217,7 +217,7 @@ TrackParameterBox::TrackParameterBox( RosegardenGUIDoc *doc,
// per-staff (rather than per-score) basis is something the author of the
// LilyPond documentation has no idea how to do, so we settle for this,
// which is not as nice, but actually a lot easier to implement.
- m_staffGrpLbl = new QLabel(i18n("Notation size:"), m_staffGroup);
+ m_staffGrpLbl = new TQLabel(i18n("Notation size:"), m_staffGroup);
groupLayout->addWidget(m_staffGrpLbl, row, 0, AlignLeft);
m_staffSizeCombo = new KComboBox(m_staffGroup);
m_staffSizeCombo->setMinimumWidth(width11);
@@ -230,7 +230,7 @@ TrackParameterBox::TrackParameterBox( RosegardenGUIDoc *doc,
// Staff bracketing (export only at the moment, but using this for GUI
// rendering would be nice in the future!) //!!!
row++;
- m_grandStaffLbl = new QLabel(i18n("Bracket type:"), m_staffGroup);
+ m_grandStaffLbl = new TQLabel(i18n("Bracket type:"), m_staffGroup);
groupLayout->addWidget(m_grandStaffLbl, row, 0, AlignLeft);
m_staffBracketCombo = new KComboBox(m_staffGroup);
m_staffBracketCombo->setMinimumWidth(width11);
@@ -252,30 +252,30 @@ TrackParameterBox::TrackParameterBox( RosegardenGUIDoc *doc,
//
cframe = new CollapsingFrame(i18n("Create segments with"), this,
"trackparametersdefaults");
- m_defaultsGroup = new QFrame(cframe);
+ m_defaultsGroup = new TQFrame(cframe);
cframe->setWidget(m_defaultsGroup);
- groupLayout = new QGridLayout(m_defaultsGroup, 6, 6, 3, 2);
+ groupLayout = new TQGridLayout(m_defaultsGroup, 6, 6, 3, 2);
groupLayout->setColStretch(1, 1);
row = 0;
// preset picker
- m_psetLbl = new QLabel(i18n("Preset"), m_defaultsGroup);
+ m_psetLbl = new TQLabel(i18n("Preset"), m_defaultsGroup);
groupLayout->addWidget(m_psetLbl, row, 0, AlignLeft);
- m_presetLbl = new QLabel(i18n("<none>"), m_defaultsGroup);
- m_presetLbl->setFrameStyle(QFrame::Panel | QFrame::Sunken);
+ m_presetLbl = new TQLabel(i18n("<none>"), m_defaultsGroup);
+ m_presetLbl->setFrameStyle(TQFrame::Panel | TQFrame::Sunken);
m_presetLbl->setFixedWidth(width20);
groupLayout->addMultiCellWidget(m_presetLbl, row, row, 1, 3);
- m_presetButton = new QPushButton(i18n("Load"), m_defaultsGroup);
+ m_presetButton = new TQPushButton(i18n("Load"), m_defaultsGroup);
groupLayout->addMultiCellWidget(m_presetButton, row, row, 4, 5);
// default clef
//
row++;
- m_clefLbl = new QLabel(i18n("Clef"), m_defaultsGroup);
+ m_clefLbl = new TQLabel(i18n("Clef"), m_defaultsGroup);
groupLayout->addWidget(m_clefLbl, row, 0, AlignLeft);
m_defClef = new KComboBox(m_defaultsGroup);
m_defClef->setMinimumWidth(width11);
@@ -302,16 +302,16 @@ TrackParameterBox::TrackParameterBox( RosegardenGUIDoc *doc,
// default transpose
//
- m_transpLbl = new QLabel(i18n("Transpose"), m_defaultsGroup);
+ m_transpLbl = new TQLabel(i18n("Transpose"), m_defaultsGroup);
groupLayout->addMultiCellWidget(m_transpLbl, row, row, 3, 4, AlignRight);
m_defTranspose = new KComboBox(m_defaultsGroup);
- connect(m_defTranspose, SIGNAL(activated(int)),
- SLOT(slotTransposeIndexChanged(int)));
+ connect(m_defTranspose, TQT_SIGNAL(activated(int)),
+ TQT_SLOT(slotTransposeIndexChanged(int)));
int transposeRange = 48;
for (int i = -transposeRange; i < transposeRange + 1; i++) {
- m_defTranspose->insertItem(QString("%1").arg(i));
+ m_defTranspose->insertItem(TQString("%1").arg(i));
if (i == 0)
m_defTranspose->setCurrentItem(m_defTranspose->count() - 1);
}
@@ -321,20 +321,20 @@ TrackParameterBox::TrackParameterBox( RosegardenGUIDoc *doc,
// highest/lowest playable note
//
row++;
- m_rangeLbl = new QLabel(i18n("Pitch"), m_defaultsGroup);
+ m_rangeLbl = new TQLabel(i18n("Pitch"), m_defaultsGroup);
groupLayout->addMultiCellWidget(m_rangeLbl, row, row, 0, 0);
- groupLayout->addWidget(new QLabel(i18n("Lowest"), m_defaultsGroup), row, 1, AlignRight);
+ groupLayout->addWidget(new TQLabel(i18n("Lowest"), m_defaultsGroup), row, 1, AlignRight);
- m_lowButton = new QPushButton(i18n("---"), m_defaultsGroup);
- QToolTip::add
+ m_lowButton = new TQPushButton(i18n("---"), m_defaultsGroup);
+ TQToolTip::add
(m_lowButton, i18n("Choose the lowest suggested playable note, using a staff"));
groupLayout->addMultiCellWidget(m_lowButton, row, row, 2, 2);
- groupLayout->addWidget(new QLabel(i18n("Highest"), m_defaultsGroup), row, 3, AlignRight);
+ groupLayout->addWidget(new TQLabel(i18n("Highest"), m_defaultsGroup), row, 3, AlignRight);
- m_highButton = new QPushButton(i18n("---"), m_defaultsGroup);
- QToolTip::add
+ m_highButton = new TQPushButton(i18n("---"), m_defaultsGroup);
+ TQToolTip::add
(m_highButton, i18n("Choose the highest suggested playable note, using a staff"));
groupLayout->addMultiCellWidget(m_highButton, row, row, 4, 5);
@@ -343,7 +343,7 @@ TrackParameterBox::TrackParameterBox( RosegardenGUIDoc *doc,
// default color
//
row++;
- m_colorLbl = new QLabel(i18n("Color"), m_defaultsGroup);
+ m_colorLbl = new TQLabel(i18n("Color"), m_defaultsGroup);
groupLayout->addWidget(m_colorLbl, row, 0, AlignLeft);
m_defColor = new KComboBox(false, m_defaultsGroup);
m_defColor->setSizeLimit(20);
@@ -361,43 +361,43 @@ TrackParameterBox::TrackParameterBox( RosegardenGUIDoc *doc,
mainLayout->setRowStretch(mainLayout->numRows() - 1, 1);
// Connections
- connect( m_playDevice, SIGNAL(activated(int)),
- this, SLOT(slotPlaybackDeviceChanged(int)));
+ connect( m_playDevice, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotPlaybackDeviceChanged(int)));
- connect( m_instrument, SIGNAL(activated(int)),
- this, SLOT(slotInstrumentChanged(int)));
+ connect( m_instrument, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotInstrumentChanged(int)));
- connect( m_recDevice, SIGNAL(activated(int)),
- this, SLOT(slotRecordingDeviceChanged(int)));
+ connect( m_recDevice, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotRecordingDeviceChanged(int)));
- connect( m_recChannel, SIGNAL(activated(int)),
- this, SLOT(slotRecordingChannelChanged(int)));
+ connect( m_recChannel, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotRecordingChannelChanged(int)));
- connect( m_defClef, SIGNAL(activated(int)),
- this, SLOT(slotClefChanged(int)));
+ connect( m_defClef, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotClefChanged(int)));
// Detect when the document colours are updated
- connect(m_doc, SIGNAL(docColoursChanged()),
- this, SLOT(slotDocColoursChanged()));
+ connect(m_doc, TQT_SIGNAL(docColoursChanged()),
+ this, TQT_SLOT(slotDocColoursChanged()));
// handle colour combo changes
- connect(m_defColor, SIGNAL(activated(int)),
- SLOT(slotColorChanged(int)));
+ connect(m_defColor, TQT_SIGNAL(activated(int)),
+ TQT_SLOT(slotColorChanged(int)));
- connect(m_highButton, SIGNAL(released()),
- SLOT(slotHighestPressed()));
+ connect(m_highButton, TQT_SIGNAL(released()),
+ TQT_SLOT(slotHighestPressed()));
- connect(m_lowButton, SIGNAL(released()),
- SLOT(slotLowestPressed()));
+ connect(m_lowButton, TQT_SIGNAL(released()),
+ TQT_SLOT(slotLowestPressed()));
- connect(m_presetButton, SIGNAL(released()),
- SLOT(slotPresetPressed()));
+ connect(m_presetButton, TQT_SIGNAL(released()),
+ TQT_SLOT(slotPresetPressed()));
- connect(m_staffSizeCombo, SIGNAL(activated(int)),
- this, SLOT(slotStaffSizeChanged(int)));
+ connect(m_staffSizeCombo, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotStaffSizeChanged(int)));
- connect(m_staffBracketCombo, SIGNAL(activated(int)),
- this, SLOT(slotStaffBracketChanged(int)));
+ connect(m_staffBracketCombo, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotStaffBracketChanged(int)));
}
TrackParameterBox::~TrackParameterBox()
@@ -446,9 +446,9 @@ TrackParameterBox::populatePlaybackDeviceList()
if (! (*it))
continue; // sanity check
- //QString iname(strtoqstr((*it)->getPresentationName()));
- QString iname(strtoqstr((*it)->getName()));
- QString pname(strtoqstr((*it)->getProgramName()));
+ //TQString iname(strtoqstr((*it)->getPresentationName()));
+ TQString iname(strtoqstr((*it)->getName()));
+ TQString pname(strtoqstr((*it)->getProgramName()));
Device *device = (*it)->getDevice();
DeviceId devId = device->getId();
@@ -459,16 +459,16 @@ TrackParameterBox::populatePlaybackDeviceList()
(Instrument::SYNTH_PLUGIN_POSITION);
if (plugin) {
pname = strtoqstr(plugin->getProgram());
- QString identifier = strtoqstr(plugin->getIdentifier());
+ TQString identifier = strtoqstr(plugin->getIdentifier());
if (identifier != "") {
- QString type, soName, label;
+ TQString type, soName, label;
PluginIdentifier::parseIdentifier
(identifier, type, soName, label);
if (pname == "") {
pname = strtoqstr(plugin->getDistinctiveConfigurationText());
}
if (pname != "") {
- pname = QString("%1: %2").arg(label).arg(pname);
+ pname = TQString("%1: %2").arg(label).arg(pname);
} else {
pname = label;
}
@@ -478,7 +478,7 @@ TrackParameterBox::populatePlaybackDeviceList()
if (devId != (DeviceId)(currentDevId)) {
currentDevId = int(devId);
- QString deviceName = strtoqstr(device->getName());
+ TQString deviceName = strtoqstr(device->getName());
m_playDevice->insertItem(deviceName);
m_playDeviceIds.push_back(currentDevId);
}
@@ -545,9 +545,9 @@ TrackParameterBox::populateRecordingDeviceList()
if (dev) {
if (dev->getDirection() == MidiDevice::Record
&& dev->isRecording()) {
- QString connection = strtoqstr(dev->getConnection());
+ TQString connection = strtoqstr(dev->getConnection());
// remove trailing "(duplex)", "(read only)", "(write only)" etc
- connection.replace(QRegExp("\\s*\\([^)0-9]+\\)\\s*$"), "");
+ connection.replace(TQRegExp("\\s*\\([^)0-9]+\\)\\s*$"), "");
m_recDevice->insertItem(connection);
m_recDeviceIds.push_back(dev->getId());
}
@@ -556,7 +556,7 @@ TrackParameterBox::populateRecordingDeviceList()
m_recChannel->insertItem(i18n("All"));
for (int i = 1; i < 17; ++i) {
- m_recChannel->insertItem(QString::number(i));
+ m_recChannel->insertItem(TQString::number(i));
}
m_recDevice->setEnabled(true);
@@ -603,8 +603,8 @@ TrackParameterBox::updateHighLow()
// m_highButton->setText(i18n("High: %1").arg(highest.getAsString(useSharps, includeOctave, base)));
// m_lowButton->setText(i18n("Low: %1").arg(lowest.getAsString(useSharps, includeOctave, base)));
- m_highButton->setText(QString("%1").arg(highest.getAsString(useSharps, includeOctave, base)));
- m_lowButton->setText(QString("%1").arg(lowest.getAsString(useSharps, includeOctave, base)));
+ m_highButton->setText(TQString("%1").arg(highest.getAsString(useSharps, includeOctave, base)));
+ m_lowButton->setText(TQString("%1").arg(lowest.getAsString(useSharps, includeOctave, base)));
m_presetLbl->setEnabled(false);
}
@@ -624,7 +624,7 @@ TrackParameterBox::slotUpdateControls(int /*dummy*/)
return ;
m_defClef->setCurrentItem(trk->getClef());
- m_defTranspose->setCurrentItem(QString("%1").arg(trk->getTranspose()), true);
+ m_defTranspose->setCurrentItem(TQString("%1").arg(trk->getTranspose()), true);
m_defColor->setCurrentItem(trk->getColor());
m_highestPlayable = trk->getHighestPlayable();
m_lowestPlayable = trk->getLowestPlayable();
@@ -657,7 +657,7 @@ TrackParameterBox::slotSelectedTrackNameChanged()
RG_DEBUG << "TrackParameterBox::sotSelectedTrackNameChanged()\n";
Composition &comp = m_doc->getComposition();
Track *trk = comp.getTrackById(m_selectedTrackId);
- QString m_trackName = trk->getLabel();
+ TQString m_trackName = trk->getLabel();
if (m_trackName.isEmpty())
m_trackName = i18n("<untitled>");
else
@@ -782,7 +782,7 @@ TrackParameterBox::slotRecordingChannelChanged(int index)
}
void
-TrackParameterBox::slotInstrumentLabelChanged(InstrumentId id, QString label)
+TrackParameterBox::slotInstrumentLabelChanged(InstrumentId id, TQString label)
{
RG_DEBUG << "TrackParameterBox::slotInstrumentLabelChanged(" << id << ") = " << label << "\n";
populatePlaybackDeviceList();
@@ -822,7 +822,7 @@ TrackParameterBox::slotTransposeIndexChanged(int index)
}
void
-TrackParameterBox::slotTransposeTextChanged(QString text)
+TrackParameterBox::slotTransposeTextChanged(TQString text)
{
if (text.isEmpty())
return ;
@@ -843,8 +843,8 @@ TrackParameterBox::slotDocColoursChanged()
unsigned int i = 0;
for (RCMap::const_iterator it = temp.begin(); it != temp.end(); ++it) {
- QString qtrunc(strtoqstr(it->second.second));
- QPixmap colour(15, 15);
+ TQString qtrunc(strtoqstr(it->second.second));
+ TQPixmap colour(15, 15);
colour.fill(GUIPalette::convertColour(it->second.first));
if (qtrunc == "") {
m_defColor->insertItem(colour, i18n("Default"), i);
@@ -877,9 +877,9 @@ TrackParameterBox::slotColorChanged(int index)
if (index == m_addColourPos) {
ColourMap newMap = m_doc->getComposition().getSegmentColourMap();
- QColor newColour;
+ TQColor newColour;
bool ok = false;
- QString newName = KLineEditDlg::getText(i18n("New Color Name"), i18n("Enter new name"),
+ TQString newName = KLineEditDlg::getText(i18n("New Color Name"), i18n("Enter new name"),
i18n("New"), &ok);
if ((ok == true) && (!newName.isEmpty())) {
KColorDialog box(this, "", true);
@@ -909,7 +909,7 @@ TrackParameterBox::slotHighestPressed()
PitchPickerDialog dialog(0, m_highestPlayable, i18n("Highest playable note"));
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
m_highestPlayable = dialog.getPitch();
updateHighLow();
}
@@ -929,7 +929,7 @@ TrackParameterBox::slotLowestPressed()
PitchPickerDialog dialog(0, m_lowestPlayable, i18n("Lowest playable note"));
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
m_lowestPlayable = dialog.getPitch();
updateHighLow();
}
@@ -950,7 +950,7 @@ TrackParameterBox::slotPresetPressed()
PresetHandlerDialog dialog(this);
try {
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
m_presetLbl->setText(dialog.getName());
trk->setPresetLabel(dialog.getName());
if (dialog.getConvertAllSegments()) {
@@ -962,7 +962,7 @@ TrackParameterBox::slotPresetPressed()
m_doc->getCommandHistory()->addCommand(command);
}
m_defClef->setCurrentItem(dialog.getClef());
- m_defTranspose->setCurrentItem(QString("%1").arg
+ m_defTranspose->setCurrentItem(TQString("%1").arg
(dialog.getTranspose()), true);
m_highestPlayable = dialog.getHighRange();
diff --git a/src/gui/editors/parameters/TrackParameterBox.h b/src/gui/editors/parameters/TrackParameterBox.h
index c5fa0f9..696e3f7 100644
--- a/src/gui/editors/parameters/TrackParameterBox.h
+++ b/src/gui/editors/parameters/TrackParameterBox.h
@@ -35,17 +35,17 @@
#include <map>
#include "RosegardenParameterArea.h"
#include "RosegardenParameterBox.h"
-#include <qstring.h>
-#include <qcheckbox.h> // #include <QCheckBox> in QT4, thinking ahead
+#include <tqstring.h>
+#include <tqcheckbox.h> // #include <TQCheckBox> in QT4, thinking ahead
#include <vector>
-class QWidget;
-class QPushButton;
-class QLabel;
-class QFrame;
+class TQWidget;
+class TQPushButton;
+class TQLabel;
+class TQFrame;
class KComboBox;
-class QCheckBox;
+class TQCheckBox;
namespace Rosegarden
@@ -60,14 +60,14 @@ Q_OBJECT
public:
TrackParameterBox( RosegardenGUIDoc *doc,
- QWidget *parent=0);
+ TQWidget *parent=0);
~TrackParameterBox();
void setDocument( RosegardenGUIDoc *doc );
void populateDeviceLists();
virtual void showAdditionalControls(bool showThem);
- virtual QString getPreviousBox(RosegardenParameterArea::Arrangement) const;
+ virtual TQString getPreviousBox(RosegardenParameterArea::Arrangement) const;
public slots:
void slotSelectedTrackChanged();
@@ -77,12 +77,12 @@ public slots:
void slotRecordingDeviceChanged(int index);
void slotRecordingChannelChanged(int index);
void slotUpdateControls(int);
- void slotInstrumentLabelChanged(InstrumentId id, QString label);
+ void slotInstrumentLabelChanged(InstrumentId id, TQString label);
void slotClefChanged(int clef);
void slotTransposeChanged(int transpose);
void slotTransposeIndexChanged(int index);
- void slotTransposeTextChanged(QString text);
+ void slotTransposeTextChanged(TQString text);
void slotDocColoursChanged();
void slotColorChanged(int index);
void slotHighestPressed();
@@ -108,9 +108,9 @@ private:
KComboBox *m_recDevice;
KComboBox *m_recChannel;
- QPushButton *m_presetButton;
- QPushButton *m_highButton;
- QPushButton *m_lowButton;
+ TQPushButton *m_presetButton;
+ TQPushButton *m_highButton;
+ TQPushButton *m_lowButton;
KComboBox *m_defClef;
KComboBox *m_defColor;
@@ -124,7 +124,7 @@ private:
int m_lowestPlayable;
ColourTable::ColourList m_colourList;
- QLabel *m_trackLabel;
+ TQLabel *m_trackLabel;
typedef std::vector<DeviceId> IdsVector;
@@ -132,27 +132,27 @@ private:
IdsVector m_recDeviceIds;
std::map<DeviceId, IdsVector> m_instrumentIds;
- std::map<DeviceId, QStringList> m_instrumentNames;
+ std::map<DeviceId, TQStringList> m_instrumentNames;
int m_selectedTrackId;
char m_lastInstrumentType;
// Additional elements that may be hidden in vertical stacked mode
- //QFrame *m_separator2;
- QFrame *m_playbackGroup;
- QFrame *m_recordGroup;
- QFrame *m_defaultsGroup;
- QFrame *m_staffGroup;
- QLabel *m_segHeader;
- QLabel *m_presetLbl;
- QLabel *m_staffGrpLbl;
- QLabel *m_grandStaffLbl;
- QLabel *m_clefLbl;
- QLabel *m_transpLbl;
- QLabel *m_colorLbl;
- QLabel *m_rangeLbl;
- QLabel *m_psetLbl;
+ //TQFrame *m_separator2;
+ TQFrame *m_playbackGroup;
+ TQFrame *m_recordGroup;
+ TQFrame *m_defaultsGroup;
+ TQFrame *m_staffGroup;
+ TQLabel *m_segHeader;
+ TQLabel *m_presetLbl;
+ TQLabel *m_staffGrpLbl;
+ TQLabel *m_grandStaffLbl;
+ TQLabel *m_clefLbl;
+ TQLabel *m_transpLbl;
+ TQLabel *m_colorLbl;
+ TQLabel *m_rangeLbl;
+ TQLabel *m_psetLbl;
};