summaryrefslogtreecommitdiffstats
path: root/src/gui/dialogs/AudioPluginDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/dialogs/AudioPluginDialog.cpp')
-rw-r--r--src/gui/dialogs/AudioPluginDialog.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/gui/dialogs/AudioPluginDialog.cpp b/src/gui/dialogs/AudioPluginDialog.cpp
index 16e4500..d6d7fce 100644
--- a/src/gui/dialogs/AudioPluginDialog.cpp
+++ b/src/gui/dialogs/AudioPluginDialog.cpp
@@ -60,14 +60,14 @@
namespace Rosegarden
{
-AudioPluginDialog::AudioPluginDialog(TQWidget *parent,
+AudioPluginDialog::AudioPluginDialog(TQWidget *tqparent,
AudioPluginManager *aPM,
#ifdef HAVE_LIBLO
AudioPluginOSCGUIManager *aGM,
#endif
PluginContainer *pluginContainer,
int index):
- KDialogBase(parent, "", false, i18n("Audio Plugin"),
+ KDialogBase(tqparent, "", false, i18n("Audio Plugin"),
#ifdef HAVE_LIBLO
Close | Details | Help),
#else
@@ -86,7 +86,7 @@ AudioPluginDialog::AudioPluginDialog(TQWidget *parent,
{
setHelp("studio-plugins");
- setSizePolicy(TQSizePolicy(TQSizePolicy::Preferred,
+ tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Preferred,
TQSizePolicy::Fixed));
#ifdef HAVE_LIBLO
@@ -96,8 +96,8 @@ AudioPluginDialog::AudioPluginDialog(TQWidget *parent,
TQVBox *vbox = makeVBoxMainWidget();
- TQGroupBox *pluginSelectionBox = new QGroupBox
- (1, Horizontal, i18n("Plugin"), vbox);
+ TQGroupBox *pluginSelectionBox = new TQGroupBox
+ (1, Qt::Horizontal, i18n("Plugin"), vbox);
makePluginParamsBox(vbox, 0, 10);
@@ -125,12 +125,12 @@ AudioPluginDialog::AudioPluginDialog(TQWidget *parent,
m_insOuts = new TQLabel(i18n("<ports>"), h);
- m_insOuts->setAlignment(AlignRight);
+ m_insOuts->tqsetAlignment(AlignRight);
TQToolTip::add
(m_insOuts, i18n("Input and output port counts."));
m_pluginId = new TQLabel(i18n("<id>"), h);
- m_pluginId->setAlignment(AlignRight);
+ m_pluginId->tqsetAlignment(AlignRight);
TQToolTip::add
(m_pluginId, i18n("Unique ID of plugin."));
@@ -330,10 +330,10 @@ AudioPluginDialog::populatePluginList()
}
void
-AudioPluginDialog::makePluginParamsBox(TQWidget *parent, int portCount,
+AudioPluginDialog::makePluginParamsBox(TQWidget *tqparent, int portCount,
int tooManyPorts)
{
- m_pluginParamsBox = new TQFrame(parent);
+ m_pluginParamsBox = new TQFrame(tqparent);
int columns = 2;
if (portCount > tooManyPorts) {
@@ -383,7 +383,7 @@ AudioPluginDialog::slotPluginSelected(int i)
TQString caption =
strtoqstr(m_pluginContainer->getName()) +
- TQString(" [ %1 ] - ").arg(m_index + 1);
+ TQString(" [ %1 ] - ").tqarg(m_index + 1);
if (number == 0) {
setCaption(caption + i18n("<no plugin>"));
@@ -402,7 +402,7 @@ AudioPluginDialog::slotPluginSelected(int i)
// Destroy old param widgets
//
- TQWidget* parent = dynamic_cast<TQWidget*>(m_pluginParamsBox->parent());
+ TQWidget* tqparent = dynamic_cast<TQWidget*>(m_pluginParamsBox->tqparent());
delete m_pluginParamsBox;
m_pluginWidgets.clear(); // The widgets are deleted with the parameter box
@@ -418,7 +418,7 @@ AudioPluginDialog::slotPluginSelected(int i)
}
int tooManyPorts = 96;
- makePluginParamsBox(parent, portCount, tooManyPorts);
+ makePluginParamsBox(tqparent, portCount, tooManyPorts);
bool showBounds = (portCount <= 48);
if (portCount > tooManyPorts) {
@@ -426,7 +426,7 @@ AudioPluginDialog::slotPluginSelected(int i)
m_gridLayout->addMultiCellWidget(
new TQLabel(i18n("This plugin has too many controls to edit here."),
m_pluginParamsBox),
- 1, 1, 0, m_gridLayout->numCols() - 1, Qt::AlignCenter);
+ 1, 1, 0, m_gridLayout->numCols() - 1, TQt::AlignCenter);
}
AudioPluginInstance *inst = m_pluginContainer->getPlugin(m_index);
@@ -435,7 +435,7 @@ AudioPluginDialog::slotPluginSelected(int i)
if (plugin) {
setCaption(caption + plugin->getName());
- m_pluginId->setText(i18n("Id: %1").arg(plugin->getUniqueId()));
+ m_pluginId->setText(i18n("Id: %1").tqarg(plugin->getUniqueId()));
TQString pluginInfo = plugin->getAuthor() + TQString("\n") +
plugin->getCopyright();
@@ -446,7 +446,7 @@ AudioPluginDialog::slotPluginSelected(int i)
TQToolTip::add
(m_pluginList, pluginInfo);
- std::string identifier = plugin->getIdentifier().data();
+ std::string identifier = plugin->getIdentifier().ascii();
// Only clear ports &c if this method is accessed by user
// action (after the constructor)
@@ -491,10 +491,10 @@ AudioPluginDialog::slotPluginSelected(int i)
else if (ins == 2 && outs == 2)
m_insOuts->setText(i18n("stereo"));
else
- m_insOuts->setText(i18n("%1 in, %2 out").arg(ins).arg(outs));
+ m_insOuts->setText(i18n("%1 in, %2 out").tqarg(ins).tqarg(outs));
TQString shortName(plugin->getName());
- int parenIdx = shortName.find(" (");
+ int parenIdx = shortName.tqfind(" (");
if (parenIdx > 0) {
shortName = shortName.left(parenIdx);
if (shortName == "Null")
@@ -503,7 +503,7 @@ AudioPluginDialog::slotPluginSelected(int i)
}
adjustSize();
- setFixedSize(minimumSizeHint());
+ setFixedSize(tqminimumSizeHint());
// tell the sequencer
emit pluginSelected(m_containerId, m_index, number - 1);
@@ -521,10 +521,10 @@ AudioPluginDialog::slotPluginSelected(int i)
m_programCombo->setSizeLimit(20);
m_programCombo->insertItem(i18n("<none selected>"));
m_gridLayout->addMultiCellWidget(m_programLabel,
- 0, 0, 0, 0, Qt::AlignRight);
+ 0, 0, 0, 0, TQt::AlignRight);
m_gridLayout->addMultiCellWidget(m_programCombo,
0, 0, 1, m_gridLayout->numCols() - 1,
- Qt::AlignLeft);
+ TQt::AlignLeft);
connect(m_programCombo, TQT_SIGNAL(activated(const TQString &)),
this, TQT_SLOT(slotPluginProgramChanged(const TQString &)));
@@ -579,7 +579,7 @@ AudioPluginDialog::slotPluginSelected(int i)
}
-QStringList
+TQStringList
AudioPluginDialog::getProgramsForInstance(AudioPluginInstance *inst, int &current)
{
TQStringList list;
@@ -604,7 +604,7 @@ AudioPluginDialog::getProgramsForInstance(AudioPluginInstance *inst, int &curren
void
AudioPluginDialog::slotPluginPortChanged(float value)
{
- const TQObject* object = sender();
+ const TQObject* object = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender()));
const PluginControl* control = dynamic_cast<const PluginControl*>(object);
@@ -707,10 +707,10 @@ AudioPluginDialog::updatePluginProgramList()
m_programCombo->setSizeLimit(20);
m_programCombo->insertItem(i18n("<none selected>"));
m_gridLayout->addMultiCellWidget(m_programLabel,
- 0, 0, 0, 0, Qt::AlignRight);
+ 0, 0, 0, 0, TQt::AlignRight);
m_gridLayout->addMultiCellWidget(m_programCombo,
0, 0, 1, m_gridLayout->numCols() - 1,
- Qt::AlignLeft);
+ TQt::AlignLeft);
m_programCombo->clear();
m_programCombo->insertItem(i18n("<none selected>"));