summaryrefslogtreecommitdiffstats
path: root/src/gui/studio/BankEditorDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/studio/BankEditorDialog.cpp')
-rw-r--r--src/gui/studio/BankEditorDialog.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/src/gui/studio/BankEditorDialog.cpp b/src/gui/studio/BankEditorDialog.cpp
index 5c5c3d2..6103652 100644
--- a/src/gui/studio/BankEditorDialog.cpp
+++ b/src/gui/studio/BankEditorDialog.cpp
@@ -78,10 +78,10 @@
namespace Rosegarden
{
-BankEditorDialog::BankEditorDialog(TQWidget *parent,
+BankEditorDialog::BankEditorDialog(TQWidget *tqparent,
RosegardenGUIDoc *doc,
DeviceId defaultDevice):
- KMainWindow(parent, "bankeditordialog"),
+ KMainWindow(tqparent, "bankeditordialog"),
m_studio(&doc->getStudio()),
m_doc(doc),
m_copyBank(Device::NO_DEVICE, -1),
@@ -100,20 +100,20 @@ BankEditorDialog::BankEditorDialog(TQWidget *parent,
TQFrame* btnBox = new TQFrame(mainFrame);
- btnBox->setSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Fixed));
+ btnBox->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Fixed));
- TQHBoxLayout* layout = new TQHBoxLayout(btnBox, 4, 10);
+ TQHBoxLayout* tqlayout = new TQHBoxLayout(btnBox, 4, 10);
m_closeButton = new TQPushButton(btnBox);
m_applyButton = new TQPushButton(i18n("Apply"), btnBox);
m_resetButton = new TQPushButton(i18n("Reset"), btnBox);
- layout->addStretch(10);
- layout->addWidget(m_applyButton);
- layout->addWidget(m_resetButton);
- layout->addSpacing(15);
- layout->addWidget(m_closeButton);
- layout->addSpacing(5);
+ tqlayout->addStretch(10);
+ tqlayout->addWidget(m_applyButton);
+ tqlayout->addWidget(m_resetButton);
+ tqlayout->addSpacing(15);
+ tqlayout->addWidget(m_closeButton);
+ tqlayout->addSpacing(5);
connect(m_applyButton, TQT_SIGNAL(clicked()),
this, TQT_SLOT(slotApply()));
@@ -206,8 +206,8 @@ BankEditorDialog::BankEditorDialog(TQWidget *parent,
vboxLayout->addWidget(m_keyMappingEditor);
m_keyMappingEditor->hide();
- m_programEditor->setSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Preferred));
- m_keyMappingEditor->setSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Preferred));
+ m_programEditor->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Preferred));
+ m_keyMappingEditor->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Preferred));
m_optionBox = new TQVGroupBox(i18n("Options"), vbox);
vboxLayout->addWidget(m_optionBox);
@@ -303,14 +303,14 @@ BankEditorDialog::~BankEditorDialog()
void
BankEditorDialog::setupActions()
{
- KAction* close = KStdAction::close (this, TQT_SLOT(slotFileClose()), actionCollection());
+ KAction* close = KStdAction::close (TQT_TQOBJECT(this), TQT_SLOT(slotFileClose()), actionCollection());
m_closeButton->setText(close->text());
connect(m_closeButton, TQT_SIGNAL(clicked()),
- this, TQT_SLOT(slotFileClose()));
+ TQT_TQOBJECT(this), TQT_SLOT(slotFileClose()));
- KStdAction::copy (this, TQT_SLOT(slotEditCopy()), actionCollection());
- KStdAction::paste (this, TQT_SLOT(slotEditPaste()), actionCollection());
+ KStdAction::copy (TQT_TQOBJECT(this), TQT_SLOT(slotEditCopy()), actionCollection());
+ KStdAction::paste (TQT_TQOBJECT(this), TQT_SLOT(slotEditPaste()), actionCollection());
// some adjustments
@@ -593,7 +593,7 @@ BankEditorDialog::updateDeviceItem(MidiDeviceListViewItem* deviceItem)
// delete banks which are no longer present
//
- std::vector<TQListViewItem*> childrenToDelete;
+ std::vector<TQListViewItem*> tqchildrenToDelete;
TQListViewItem* child = deviceItem->firstChild();
@@ -603,7 +603,7 @@ BankEditorDialog::updateDeviceItem(MidiDeviceListViewItem* deviceItem)
dynamic_cast<MidiBankListViewItem *>(child);
if (bankItem) {
if (bankItem->getBank() >= int(banks.size()))
- childrenToDelete.push_back(child);
+ tqchildrenToDelete.push_back(child);
else { // update the banks MSB/LSB which might have changed
bankItem->setPercussion(banks[bankItem->getBank()].isPercussion());
bankItem->setMSB(banks[bankItem->getBank()].getMSB());
@@ -615,15 +615,15 @@ BankEditorDialog::updateDeviceItem(MidiDeviceListViewItem* deviceItem)
dynamic_cast<MidiKeyMapListViewItem *>(child);
if (keyItem) {
if (!midiDevice->getKeyMappingByName(qstrtostr(keyItem->getName()))) {
- childrenToDelete.push_back(child);
+ tqchildrenToDelete.push_back(child);
}
}
child = child->nextSibling();
}
- for (unsigned int i = 0; i < childrenToDelete.size(); ++i)
- delete childrenToDelete[i];
+ for (unsigned int i = 0; i < tqchildrenToDelete.size(); ++i)
+ delete tqchildrenToDelete[i];
}
bool
@@ -968,15 +968,15 @@ BankEditorDialog::getParentDeviceItem(TQListViewItem* item)
return 0;
if (dynamic_cast<MidiBankListViewItem*>(item))
- // go up to the parent device item
- item = item->parent();
+ // go up to the tqparent device item
+ item = item->tqparent();
if (dynamic_cast<MidiKeyMapListViewItem*>(item))
- // go up to the parent device item
- item = item->parent();
+ // go up to the tqparent device item
+ item = item->tqparent();
if (!item) {
- RG_DEBUG << "BankEditorDialog::getParentDeviceItem : missing parent device item for bank item - this SHOULD NOT HAPPEN" << endl;
+ RG_DEBUG << "BankEditorDialog::getParentDeviceItem : missing tqparent device item for bank item - this SHOULD NOT HAPPEN" << endl;
return 0;
}
@@ -1045,7 +1045,7 @@ BankEditorDialog::slotAddKeyMapping()
if (n == 1)
name = i18n("<new mapping>");
else
- name = i18n("<new mapping %1>").arg(n);
+ name = i18n("<new mapping %1>").tqarg(n);
}
MidiKeyMapping newKeyMapping(qstrtostr(name));