Exemplo n.º 1
0
VCPropertiesEditor::VCPropertiesEditor(QWidget* parent,
	const VCProperties& properties) : QDialog(parent)
{
	setupUi(this);

	connect(m_chooseFadeInputButton, SIGNAL(clicked()),
		this, SLOT(slotChooseFadeInputClicked()));
	connect(m_chooseHoldInputButton, SIGNAL(clicked()),
		this, SLOT(slotChooseHoldInputClicked()));

	m_properties = properties;

	/* Grid */
	m_gridGroup->setChecked(properties.isGridEnabled());
	m_gridXSpin->setValue(properties.gridX());
	m_gridYSpin->setValue(properties.gridY());

	/* Keyboard */
	m_grabKeyboardCheck->setChecked(properties.isGrabKeyboard());
	m_keyRepeatOffCheck->setChecked(properties.isKeyRepeatOff());

	/* Slider limits */
	m_fadeLowSpin->setValue(properties.fadeLowLimit());
	m_fadeHighSpin->setValue(properties.fadeHighLimit());
	m_holdLowSpin->setValue(properties.holdLowLimit());
	m_holdHighSpin->setValue(properties.holdHighLimit());

	/* External input */
	updateFadeInputSource();
	updateHoldInputSource();
}
Exemplo n.º 2
0
int VCPropertiesEditor::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: slotGrabKeyboardClicked(); break;
        case 1: slotKeyRepeatOffClicked(); break;
        case 2: slotGridClicked(); break;
        case 3: slotGridXChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 4: slotGridYChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 5: slotFadeLimitsChanged(); break;
        case 6: slotAutoDetectFadeInputToggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 7: slotFadeInputValueChanged((*reinterpret_cast< quint32(*)>(_a[1])),(*reinterpret_cast< quint32(*)>(_a[2]))); break;
        case 8: slotChooseFadeInputClicked(); break;
        case 9: slotHoldLimitsChanged(); break;
        case 10: slotAutoDetectHoldInputToggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 11: slotHoldInputValueChanged((*reinterpret_cast< quint32(*)>(_a[1])),(*reinterpret_cast< quint32(*)>(_a[2]))); break;
        case 12: slotChooseHoldInputClicked(); break;
        case 13: slotGrandMasterIntensityToggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 14: slotGrandMasterReduceToggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 15: slotAutoDetectGrandMasterInputToggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 16: slotGrandMasterInputValueChanged((*reinterpret_cast< quint32(*)>(_a[1])),(*reinterpret_cast< quint32(*)>(_a[2]))); break;
        case 17: slotChooseGrandMasterInputClicked(); break;
        case 18: slotAutoDetectBlackoutInputToggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 19: slotBlackoutInputValueChanged((*reinterpret_cast< quint32(*)>(_a[1])),(*reinterpret_cast< quint32(*)>(_a[2]))); break;
        case 20: slotChooseBlackoutInputClicked(); break;
        default: ;
        }
        _id -= 21;
    }
    return _id;
}