Exemplo n.º 1
0
void MarkerView::markerSelectionChanged()
{
	MarkerItem* item = (MarkerItem*) table->currentItem();
	if (item == 0)
	{ // never triggered
		editTick->setValue(0);
		editSMPTE->setValue(0);
		editName->setText(QString(""));
		lock->setChecked(false);
		editSMPTE->setEnabled(false);
		editTick->setEnabled(false);
		lock->setEnabled(false);
		editName->setEnabled(false);
	}
	else
	{
		editTick->setValue(item->tick());
		editSMPTE->setValue(item->tick());
		editName->setText(item->name());
		editName->setEnabled(true);
		lock->setChecked(item->lock());
		lock->setEnabled(true);

		//printf("MarkerView::markerSelectionChanged item->lock:%d\n", item->lock());

		editSMPTE->setEnabled(item->lock());
		editTick->setEnabled(!item->lock());
	}
}
Exemplo n.º 2
0
void MarkerView::lockChanged(bool lck)
{
    MarkerItem* item = (MarkerItem*) table->currentItem();
    if (item)
    {
        item->setLock(lck);
        editTick->setEnabled(!item->lock());
    }
}