diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
commit | 11f31c37e5fa4889d9989f10272f44845449cb7b (patch) | |
tree | 4383da04a76c497950d957fc6120b0fd0d9082c2 /src/gui/studio/SynthPluginManagerDialog.cpp | |
parent | 832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff) | |
download | rosegarden-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/studio/SynthPluginManagerDialog.cpp')
-rw-r--r-- | src/gui/studio/SynthPluginManagerDialog.cpp | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/src/gui/studio/SynthPluginManagerDialog.cpp b/src/gui/studio/SynthPluginManagerDialog.cpp index f9a54ea..037fa3a 100644 --- a/src/gui/studio/SynthPluginManagerDialog.cpp +++ b/src/gui/studio/SynthPluginManagerDialog.cpp @@ -24,7 +24,7 @@ #include "SynthPluginManagerDialog.h" -#include <qlayout.h> +#include <tqlayout.h> #include <klocale.h> #include "misc/Debug.h" @@ -41,20 +41,20 @@ #include <kcombobox.h> #include <kmainwindow.h> #include <kstdaction.h> -#include <qframe.h> -#include <qgroupbox.h> -#include <qlabel.h> -#include <qobject.h> -#include <qpushbutton.h> -#include <qsizepolicy.h> -#include <qstring.h> -#include <qwidget.h> +#include <tqframe.h> +#include <tqgroupbox.h> +#include <tqlabel.h> +#include <tqobject.h> +#include <tqpushbutton.h> +#include <tqsizepolicy.h> +#include <tqstring.h> +#include <tqwidget.h> namespace Rosegarden { -SynthPluginManagerDialog::SynthPluginManagerDialog(QWidget *parent, +SynthPluginManagerDialog::SynthPluginManagerDialog(TQWidget *parent, RosegardenGUIDoc *doc #ifdef HAVE_LIBLO , AudioPluginOSCGUIManager *guiManager @@ -70,16 +70,16 @@ SynthPluginManagerDialog::SynthPluginManagerDialog(QWidget *parent, { setCaption(i18n("Manage Synth Plugins")); - QFrame *mainBox = new QFrame(this); + TQFrame *mainBox = new TQFrame(this); setCentralWidget(mainBox); - QVBoxLayout *mainLayout = new QVBoxLayout(mainBox, 10, 10); + TQVBoxLayout *mainLayout = new TQVBoxLayout(mainBox, 10, 10); - QGroupBox *groupBox = new QGroupBox(1, Horizontal, i18n("Synth plugins"), mainBox); + TQGroupBox *groupBox = new TQGroupBox(1, Horizontal, i18n("Synth plugins"), mainBox); mainLayout->addWidget(groupBox); - QFrame *pluginFrame = new QFrame(groupBox); - QGridLayout *pluginLayout = new QGridLayout(pluginFrame, 1, 4, 3, 3); + TQFrame *pluginFrame = new TQFrame(groupBox); + TQGridLayout *pluginLayout = new TQGridLayout(pluginFrame, 1, 4, 3, 3); m_synthPlugins.clear(); m_synthPlugins.push_back( -1); @@ -103,9 +103,9 @@ SynthPluginManagerDialog::SynthPluginManagerDialog(QWidget *parent, if (!instrument) continue; - // pluginLayout->addWidget(new QLabel(instrument->getPresentationName().c_str(), + // pluginLayout->addWidget(new TQLabel(instrument->getPresentationName().c_str(), // pluginFrame), i, 0); - pluginLayout->addWidget(new QLabel(QString("%1").arg(i + 1), + pluginLayout->addWidget(new TQLabel(TQString("%1").arg(i + 1), pluginFrame), i, 0); AudioPluginInstance *plugin = instrument->getPlugin @@ -135,48 +135,48 @@ SynthPluginManagerDialog::SynthPluginManagerDialog(QWidget *parent, } } - connect(pluginCombo, SIGNAL(activated(int)), - this, SLOT(slotPluginChanged(int))); + connect(pluginCombo, TQT_SIGNAL(activated(int)), + this, TQT_SLOT(slotPluginChanged(int))); pluginLayout->addWidget(pluginCombo, i, 1); m_synthCombos.push_back(pluginCombo); - QPushButton *controlsButton = new QPushButton(i18n("Controls"), pluginFrame); + TQPushButton *controlsButton = new TQPushButton(i18n("Controls"), pluginFrame); pluginLayout->addWidget(controlsButton, i, 2); - connect(controlsButton, SIGNAL(clicked()), this, SLOT(slotControlsButtonClicked())); + connect(controlsButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotControlsButtonClicked())); m_controlsButtons.push_back(controlsButton); #ifdef HAVE_LIBLO - QPushButton *guiButton = new QPushButton(i18n("Editor >>"), pluginFrame); + TQPushButton *guiButton = new TQPushButton(i18n("Editor >>"), pluginFrame); pluginLayout->addWidget(guiButton, i, 3); guiButton->setEnabled(m_guiManager->hasGUI (id, Instrument::SYNTH_PLUGIN_POSITION)); - connect(guiButton, SIGNAL(clicked()), this, SLOT(slotGUIButtonClicked())); + connect(guiButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotGUIButtonClicked())); m_guiButtons.push_back(guiButton); #endif } - QFrame* btnBox = new QFrame(mainBox); + TQFrame* btnBox = new TQFrame(mainBox); btnBox->setSizePolicy( - QSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed)); + TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Fixed)); - QPushButton *closeButton = new QPushButton(i18n("Close"), btnBox); + TQPushButton *closeButton = new TQPushButton(i18n("Close"), btnBox); - QHBoxLayout* layout = new QHBoxLayout(btnBox, 0, 10); + TQHBoxLayout* layout = new TQHBoxLayout(btnBox, 0, 10); layout->addStretch(10); layout->addWidget(closeButton); layout->addSpacing(5); KAction* close = KStdAction::close(this, - SLOT(slotClose()), + TQT_SLOT(slotClose()), actionCollection()); closeButton->setText(close->text()); - connect(closeButton, SIGNAL(clicked()), this, SLOT(slotClose())); + connect(closeButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotClose())); mainLayout->addWidget(btnBox); @@ -224,7 +224,7 @@ SynthPluginManagerDialog::SynthPluginManagerDialog(QWidget *parent, } void - SynthPluginManagerDialog::closeEvent(QCloseEvent *e) + SynthPluginManagerDialog::closeEvent(TQCloseEvent *e) { emit closing(); KMainWindow::closeEvent(e); @@ -233,7 +233,7 @@ SynthPluginManagerDialog::SynthPluginManagerDialog(QWidget *parent, void SynthPluginManagerDialog::slotGUIButtonClicked() { - const QObject *s = sender(); + const TQObject *s = sender(); int instrumentNo = -1; @@ -255,7 +255,7 @@ SynthPluginManagerDialog::SynthPluginManagerDialog(QWidget *parent, void SynthPluginManagerDialog::slotControlsButtonClicked() { - const QObject *s = sender(); + const TQObject *s = sender(); int instrumentNo = -1; @@ -277,7 +277,7 @@ SynthPluginManagerDialog::SynthPluginManagerDialog(QWidget *parent, void SynthPluginManagerDialog::slotPluginChanged(int index) { - const QObject *s = sender(); + const TQObject *s = sender(); RG_DEBUG << "SynthPluginManagerDialog::slotPluginChanged(" << index << ")" << endl; |