KdenliveSettings::setCurrent_profile(profile);
KdenliveSettings::setProject_fps(m_activeDocument->fps());
setCaption(m_activeDocument->description(), m_activeDocument->isModified());
-
m_activeDocument->clipManager()->clearUnusedProducers();
m_monitorManager->resetProfiles(m_activeDocument->timecode());
m_transitionConfig->updateProjectFormat(m_activeDocument->mltProfile(), m_activeDocument->timecode(), m_activeDocument->tracksList());
m_commandStack->activeStack()->clear();
//Update the mouse position display so it will display in DF/NDF format by default based on the project setting.
slotUpdateMousePosition(0);
+ m_projectList->slotReloadClip();
// We need to desactivate & reactivate monitors to get a refresh
//m_monitorManager->switchMonitors();
}
if (!render->hasProfile(profile)) {
slotActivateMonitor();
render->resetProfile(profile);
-#ifdef USE_OPENGL
+#ifdef USE_OPENGL
if (m_glWidget) m_glWidget->setImageAspectRatio(render->dar());
#endif
}
void MonitorManager::slotResetProfiles()
{
- if (m_projectMonitor == NULL || m_clipMonitor == NULL) return;
+ if (m_projectMonitor == NULL || m_clipMonitor == NULL) {
+ return;
+ }
blockSignals(true);
Kdenlive::MONITORID active = m_activeMonitor ? m_activeMonitor->id() : Kdenlive::noMonitor;
m_clipMonitor->resetProfile(KdenliveSettings::current_profile());
} else if (KdenliveSettings::checkfirstprojectclip() && m_listView->topLevelItemCount() == 1 && m_refreshed && m_allClipsProcessed) {
// this is the first clip loaded in project, check if we want to adjust project settings to the clip
updatedProfile = adjustProjectProfileToItem(item);
+ if (updatedProfile == false) {
+ emit clipSelected(item->referencedClip());
+ }
}
if (updatedProfile == false) {
//emit clipSelected(item->referencedClip());
void RecMonitor::slotProcessStatus(QProcess::ProcessState status)
{
- kDebug()<<"// STATUS CHANGED: "<<status;
if (status == QProcess::NotRunning) {
m_displayProcess->kill();
if (m_isCapturing && device_selector->currentIndex() != FIREWIRE)
return QSize(400, 300);
}
+void VideoGLWidget::setImageAspectRatio(double ratio)
+{
+ m_display_ratio = ratio;
+ resizeGL(width(), height());
+}
+
void VideoGLWidget::initializeGL()
{
qglClearColor(m_backgroundColor);
{
resizeGL(event->size().width(),event->size().height());
}
+
void VideoGLWidget::resizeGL(int width, int height)
{
double this_aspect = (double) width / height;
void activateMonitor();
QSize minimumSizeHint() const;
QSize sizeHint() const;
- void setImageAspectRatio(double ratio) {
- m_display_ratio = ratio;
- }
+ void setImageAspectRatio(double ratio);
void setBackgroundColor(QColor color) {
m_backgroundColor = color;
}