int VCCueListProperties::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: accept(); break; case 1: slotTabChanged(); break; case 2: slotAttachClicked(); break; case 3: slotDetachClicked(); break; case 4: slotNextAttachClicked(); break; case 5: slotNextDetachClicked(); break; case 6: slotNextChooseInputClicked(); break; case 7: slotNextAutoDetectInputToggled((*reinterpret_cast< bool(*)>(_a[1]))); break; case 8: slotNextInputValueChanged((*reinterpret_cast< quint32(*)>(_a[1])),(*reinterpret_cast< quint32(*)>(_a[2]))); break; case 9: slotPreviousAttachClicked(); break; case 10: slotPreviousDetachClicked(); break; case 11: slotPreviousChooseInputClicked(); break; case 12: slotPreviousAutoDetectInputToggled((*reinterpret_cast< bool(*)>(_a[1]))); break; case 13: slotPreviousInputValueChanged((*reinterpret_cast< quint32(*)>(_a[1])),(*reinterpret_cast< quint32(*)>(_a[2]))); break; default: ; } _id -= 14; } return _id; }
VCCueListProperties::VCCueListProperties(QWidget* parent, VCCueList* cueList) : QDialog(parent) { Q_ASSERT(cueList != NULL); m_cueList = cueList; setupUi(this); /* Name */ m_nameEdit->setText(cueList->caption()); m_nameEdit->setSelection(0, cueList->caption().length()); /* Connections */ connect(m_addButton, SIGNAL(clicked()), this, SLOT(slotAddClicked())); connect(m_removeButton, SIGNAL(clicked()), this, SLOT(slotRemoveClicked())); connect(m_raiseButton, SIGNAL(clicked()), this, SLOT(slotRaiseClicked())); connect(m_lowerButton, SIGNAL(clicked()), this, SLOT(slotLowerClicked())); connect(m_attachButton, SIGNAL(clicked()), this, SLOT(slotAttachClicked())); connect(m_detachButton, SIGNAL(clicked()), this, SLOT(slotDetachClicked())); /* Put all cues into the tree widget */ QTreeWidgetItemIterator it(m_cueList->m_list); while (*it != NULL) { QTreeWidgetItem* item = new QTreeWidgetItem(m_list); item->setText(KVCCueListColumnNumber, QString("%1") .arg(m_list->indexOfTopLevelItem(item) + 1)); item->setText(KVCCueListColumnName, (*it)->text(KVCCueListColumnName)); item->setText(KVCCueListColumnID, (*it)->text(KVCCueListColumnID)); ++it; } m_list->header()->setResizeMode(QHeaderView::ResizeToContents); /* Key bind */ m_keySequence = QKeySequence(cueList->keySequence()); m_keyEdit->setText(m_keySequence.toString()); }