コード例 #1
0
int InputPatchEditor::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: reject(); break;
        case 1: accept(); break;
        case 2: slotMapCurrentItemChanged((*reinterpret_cast< QTreeWidgetItem*(*)>(_a[1]))); break;
        case 3: slotMapItemChanged((*reinterpret_cast< QTreeWidgetItem*(*)>(_a[1]))); break;
        case 4: slotConfigureInputClicked(); break;
        case 5: slotReconnectClicked(); break;
        case 6: slotFeedbackToggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 7: slotPluginConfigurationChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 8: slotProfileItemChanged((*reinterpret_cast< QTreeWidgetItem*(*)>(_a[1]))); break;
        case 9: slotAddProfileClicked(); break;
        case 10: slotRemoveProfileClicked(); break;
        case 11: slotEditProfileClicked(); break;
        default: ;
        }
        _id -= 12;
    }
    return _id;
}
コード例 #2
0
void InputOutputPatchEditor::setupMappingPage()
{
    /* Fill the map tree with available plugins */
    fillMappingTree();

    /* Selection changes */
    connect(m_mapTree, SIGNAL(currentItemChanged(QTreeWidgetItem*, QTreeWidgetItem*)),
            this, SLOT(slotMapCurrentItemChanged(QTreeWidgetItem*)));

    /* Configure button */
    connect(m_configureButton, SIGNAL(clicked()),
            this, SLOT(slotConfigureInputClicked()));
}
コード例 #3
0
ファイル: inputpatcheditor.cpp プロジェクト: speakman/qlc
void InputPatchEditor::setupMappingPage()
{
	/* Fill the map tree with available plugins */
	fillMappingTree();

	/* Selection changes */
	connect(m_mapTree, SIGNAL(currentItemChanged(QTreeWidgetItem*,
						     QTreeWidgetItem*)),
		this, SLOT(slotMapCurrentItemChanged(QTreeWidgetItem*)));

	/* Configure button */
	connect(m_configureButton, SIGNAL(clicked()),
		this, SLOT(slotConfigureInputClicked()));

	/* Prevent the editor uni radio button from being unchecked manually */
	QButtonGroup* group = new QButtonGroup(this);
	group->addButton(m_editorUniverseRadio);

	m_feedbackEnabledCheck->setChecked(m_currentFeedbackEnabled);

	/* Set checked if the current universe is also the editor universe */
	if (_app->inputMap()->editorUniverse() == m_universe)
		m_editorUniverseRadio->setChecked(true);
}