m_cropStart->setValue(m_clip->cropStart());
m_cropEnd->setValue(m_clip->maxDuration() - m_clip->cropDuration() - m_clip->cropStart());
- connect(m_pos, SIGNAL(editingFinished()), this, SLOT(slotCheckStart()));
- connect(m_dur, SIGNAL(editingFinished()), this, SLOT(slotCheckDuration()));
- connect(m_cropStart, SIGNAL(editingFinished()), this, SLOT(slotCheckCrop()));
- connect(m_cropEnd, SIGNAL(editingFinished()), this, SLOT(slotCheckEnd()));
+ connect(m_pos, SIGNAL(timeCodeEditingFinished()), this, SLOT(slotCheckStart()));
+ connect(m_dur, SIGNAL(timeCodeEditingFinished()), this, SLOT(slotCheckDuration()));
+ connect(m_cropStart, SIGNAL(timeCodeEditingFinished()), this, SLOT(slotCheckCrop()));
+ connect(m_cropEnd, SIGNAL(timeCodeEditingFinished()), this, SLOT(slotCheckEnd()));
adjustSize();
}
slotUpdateGeometry();
if (!m_fixedMode) {
m_timePos.setRange(0, maxFrame - minFrame - 1);
- connect(&m_timePos, SIGNAL(editingFinished()), this , SLOT(slotPositionChanged()));
+ connect(&m_timePos, SIGNAL(timeCodeEditingFinished()), this , SLOT(slotPositionChanged()));
}
connect(spinTransp, SIGNAL(valueChanged(int)), this , SLOT(slotTransparencyChanged(int)));
}
connect(m_timeline, SIGNAL(keyframeMoved(int)), this, SLOT(slotKeyframeMoved(int)));
connect(m_timeline, SIGNAL(addKeyframe(int)), this, SLOT(slotAddKeyframe(int)));
connect(m_timeline, SIGNAL(removeKeyframe(int)), this, SLOT(slotDeleteKeyframe(int)));
- connect(m_timePos, SIGNAL(editingFinished()), this, SLOT(slotPositionChanged()));
+ connect(m_timePos, SIGNAL(timeCodeEditingFinished()), this, SLOT(slotPositionChanged()));
connect(m_ui.buttonPrevious, SIGNAL(clicked()), this, SLOT(slotPreviousKeyframe()));
connect(m_ui.buttonNext, SIGNAL(clicked()), this, SLOT(slotNextKeyframe()));
connect(m_ui.buttonAddDelete, SIGNAL(clicked()), this, SLOT(slotAddDeleteKeyframe()));
QMutexLocker lock(&m_mutex);
m_producer->seek(framepos);
Mlt::Frame *frame = m_producer->get_frame();
+ /*frame->set("rescale.interp", "nearest");
+ frame->set("deinterlace_method", "onefield");
+ frame->set("top_field_first", -1 );*/
QImage p = getFrame(frame, frameWidth, displayWidth, height);
delete frame;
return p;
clip_thumb->setFixedHeight(p.height());
clip_thumb->setPixmap(p);
}
- connect(m_in, SIGNAL(editingFinished()), this, SIGNAL(updateThumb()));
+ connect(m_in, SIGNAL(timeCodeEditingFinished()), this, SIGNAL(updateThumb()));
} else {
clip_thumb->setHidden(true);
}
m_toolbar->addWidget(spacer);
m_timePos = new TimecodeDisplay(m_monitorManager->timecode(), this);
m_toolbar->addWidget(m_timePos);
- connect(m_timePos, SIGNAL(editingFinished()), this, SLOT(slotSeek()));
+ connect(m_timePos, SIGNAL(timeCodeEditingFinished()), this, SLOT(slotSeek()));
m_toolbar->setMaximumHeight(s * 1.5);
layout->addWidget(m_toolbar);
}
connect(m_slider, SIGNAL(valueChanged(int)), m_display, SLOT(setValue(int)));
connect(m_slider, SIGNAL(valueChanged(int)), this, SIGNAL(parameterChanged(int)));
- connect(m_display, SIGNAL(editingFinished()), this, SLOT(slotUpdatePosition()));
+ connect(m_display, SIGNAL(timeCodeEditingFinished()), this, SLOT(slotUpdatePosition()));
m_slider->setValue(pos);
}
l->addWidget(m_buttonNext, 1, 2);
l->addWidget(m_time, 1, 3, Qt::AlignRight);
- connect(m_time, SIGNAL(editingFinished()), this, SLOT(slotSetPosition()));
+ connect(m_time, SIGNAL(timeCodeEditingFinished()), this, SLOT(slotSetPosition()));
connect(m_timeline, SIGNAL(positionChanged(int)), this, SLOT(slotSetPosition(int)));
connect(m_timeline, SIGNAL(atKeyframe(bool)), this, SLOT(slotAtKeyframe(bool)));
connect(m_timeline, SIGNAL(keyframeAdded(int)), this, SIGNAL(keyframeAdded(int)));
{
int val = m_value + steps;
setValue(val);
- emit editingFinished();
}
void TimecodeDisplay::setTimeCodeFormat(bool frametimecode, bool init)
}
}
-/*
+
void TimecodeDisplay::wheelEvent(QWheelEvent *e)
{
- if (e->delta() > 0)
- slotValueUp();
- else
- slotValueDown();
-}*/
+ QAbstractSpinBox::wheelEvent(e);
+ clearFocus();
+}
int TimecodeDisplay::maximum() const
lineEdit()->deselect();
if (m_frametimecode) setValue(lineEdit()->text().toInt());
else setValue(lineEdit()->text());
- emit editingFinished();
+ emit timeCodeEditingFinished();
}
#include <timecodedisplay.moc>
void setValue(const QString &value);
void setValue(GenTime value);
- /** @brief Sets value's format accorrding to Kdenlive's settings.
+ /** @brief Sets value's format according to Kdenlive's settings.
* @param t (optional, if already existing) Timecode object to use */
void slotUpdateTimeCodeFormat();
* @param final if the value is final ie not produced during sliding (on slider release it's final)
*/
void valueChanged(int value, bool final);
- void editingFinished();
+ void timeCodeEditingFinished();
protected:
virtual void keyPressEvent(QKeyEvent *e);
virtual void mouseReleaseEvent(QMouseEvent *);
-// virtual void wheelEvent(QWheelEvent *e);
+ virtual void wheelEvent(QWheelEvent *e);
virtual QAbstractSpinBox::StepEnabled stepEnabled () const;
};