summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/AudioFaderBox.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
commit11f31c37e5fa4889d9989f10272f44845449cb7b (patch)
tree4383da04a76c497950d957fc6120b0fd0d9082c2 /src/gui/widgets/AudioFaderBox.cpp
parent832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff)
downloadrosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.tar.gz
rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.zip
Initial TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/widgets/AudioFaderBox.cpp')
-rw-r--r--src/gui/widgets/AudioFaderBox.cpp86
1 files changed, 43 insertions, 43 deletions
diff --git a/src/gui/widgets/AudioFaderBox.cpp b/src/gui/widgets/AudioFaderBox.cpp
index 05789ff..27980e7 100644
--- a/src/gui/widgets/AudioFaderBox.cpp
+++ b/src/gui/widgets/AudioFaderBox.cpp
@@ -24,7 +24,7 @@
#include "AudioFaderBox.h"
-#include <qlayout.h>
+#include <tqlayout.h>
#include <klocale.h>
#include <kstddirs.h>
@@ -40,61 +40,61 @@
#include "gui/studio/AudioPluginOSCGUIManager.h"
#include "Rotary.h"
#include <kglobal.h>
-#include <qframe.h>
-#include <qhbox.h>
-#include <qlabel.h>
-#include <qobject.h>
-#include <qpixmap.h>
-#include <qpushbutton.h>
-#include <qsignalmapper.h>
-#include <qstring.h>
-#include <qtooltip.h>
-#include <qvbox.h>
-#include <qwidget.h>
+#include <tqframe.h>
+#include <tqhbox.h>
+#include <tqlabel.h>
+#include <tqobject.h>
+#include <tqpixmap.h>
+#include <tqpushbutton.h>
+#include <tqsignalmapper.h>
+#include <tqstring.h>
+#include <tqtooltip.h>
+#include <tqvbox.h>
+#include <tqwidget.h>
#include "VUMeter.h"
namespace Rosegarden
{
-AudioFaderBox::AudioFaderBox(QWidget *parent,
- QString id,
+AudioFaderBox::AudioFaderBox(TQWidget *parent,
+ TQString id,
bool haveInOut,
const char *name):
- QFrame(parent, name),
- m_signalMapper(new QSignalMapper(this)),
+ TQFrame(parent, name),
+ m_signalMapper(new TQSignalMapper(this)),
m_id(id),
m_isStereo(false)
{
// Plugin box
//
- QPushButton *plugin;
- QVBox *pluginVbox = 0;
+ TQPushButton *plugin;
+ TQVBox *pluginVbox = 0;
- pluginVbox = new QVBox(this);
+ pluginVbox = new TQVBox(this);
pluginVbox->setSpacing(2);
for (int i = 0; i < 5; i++) {
- plugin = new QPushButton(pluginVbox);
+ plugin = new TQPushButton(pluginVbox);
plugin->setText(i18n("<no plugin>"));
- QToolTip::add
+ TQToolTip::add
(plugin, i18n("Audio plugin button"));
m_plugins.push_back(plugin);
m_signalMapper->setMapping(plugin, i);
- connect(plugin, SIGNAL(clicked()),
- m_signalMapper, SLOT(map()));
+ connect(plugin, TQT_SIGNAL(clicked()),
+ m_signalMapper, TQT_SLOT(map()));
}
- m_synthButton = new QPushButton(this);
+ m_synthButton = new TQPushButton(this);
m_synthButton->setText(i18n("<no synth>"));
- QToolTip::add
+ TQToolTip::add
(m_synthButton, i18n("Synth plugin button"));
// VU meter and fader
//
- QHBox *faderHbox = new QHBox(this);
+ TQHBox *faderHbox = new TQHBox(this);
m_vuMeter = new AudioVUMeter(faderHbox, VUMeter::AudioPeakHoldShort,
true, true);
@@ -115,9 +115,9 @@ AudioFaderBox::AudioFaderBox(QWidget *parent,
m_fader->setOutlineColour(GUIPalette::getColour(GUIPalette::PlaybackFaderOutline));
- QString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/");
- m_monoPixmap.load(QString("%1/misc/mono.xpm").arg(pixmapDir));
- m_stereoPixmap.load(QString("%1/misc/stereo.xpm").arg(pixmapDir));
+ TQString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/");
+ m_monoPixmap.load(TQString("%1/misc/mono.xpm").arg(pixmapDir));
+ m_stereoPixmap.load(TQString("%1/misc/stereo.xpm").arg(pixmapDir));
m_pan = new Rotary(this, -100.0, 100.0, 1.0, 5.0, 0.0, 22,
Rotary::NoTicks, false, true);
@@ -125,14 +125,14 @@ AudioFaderBox::AudioFaderBox(QWidget *parent,
// same as the knob colour on the MIDI pan
m_pan->setKnobColour(GUIPalette::getColour(GUIPalette::RotaryPastelGreen));
- m_stereoButton = new QPushButton(this);
+ m_stereoButton = new TQPushButton(this);
m_stereoButton->setPixmap(m_monoPixmap); // default is mono
m_stereoButton->setFixedSize(24, 24);
- connect(m_stereoButton, SIGNAL(clicked()),
- this, SLOT(slotChannelStateChanged()));
+ connect(m_stereoButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotChannelStateChanged()));
- m_synthGUIButton = new QPushButton(this);
+ m_synthGUIButton = new TQPushButton(this);
m_synthGUIButton->setText(i18n("Editor"));
if (haveInOut) {
@@ -149,28 +149,28 @@ AudioFaderBox::AudioFaderBox(QWidget *parent,
m_audioOutput = 0;
}
- QToolTip::add
+ TQToolTip::add
(m_pan, i18n("Set the audio pan position in the stereo field"));
- QToolTip::add
+ TQToolTip::add
(m_synthGUIButton, i18n("Open synth plugin's native editor"));
- QToolTip::add
+ TQToolTip::add
(m_stereoButton, i18n("Mono or Stereo Instrument"));
- QToolTip::add
+ TQToolTip::add
(m_recordFader, i18n("Record level"));
- QToolTip::add
+ TQToolTip::add
(m_fader, i18n("Playback level"));
- QToolTip::add
+ TQToolTip::add
(m_vuMeter, i18n("Audio level"));
- QGridLayout *grid = new QGridLayout(this, 3, 6, 4, 4);
+ TQGridLayout *grid = new TQGridLayout(this, 3, 6, 4, 4);
grid->addMultiCellWidget(m_synthButton, 0, 0, 0, 2);
if (haveInOut) {
- m_inputLabel = new QLabel(i18n("In:"), this);
+ m_inputLabel = new TQLabel(i18n("In:"), this);
grid->addWidget(m_inputLabel, 0, 0, AlignRight);
grid->addMultiCellWidget(m_audioInput->getWidget(), 0, 0, 1, 2);
- m_outputLabel = new QLabel(i18n("Out:"), this);
+ m_outputLabel = new TQLabel(i18n("Out:"), this);
grid->addWidget(m_outputLabel, 0, 3, AlignRight);
grid->addMultiCellWidget(m_audioOutput->getWidget(), 0, 0, 4, 5);
}
@@ -241,7 +241,7 @@ AudioFaderBox::slotSetInstrument(Studio *studio,
}
bool
-AudioFaderBox::owns(const QObject *object)
+AudioFaderBox::owns(const TQObject *object)
{
return (object &&
((object->parent() == this) ||