m_ui.buttonSync->setIcon(KIcon("insert-link"));
m_ui.buttonSync->setToolTip(i18n("Synchronize with timeline cursor"));
- m_ui.buttonSync->setCheckable(true);
m_ui.buttonSync->setChecked(KdenliveSettings::transitionfollowcursor());
connect(m_timeline, SIGNAL(positionChanged(int)), this, SLOT(slotPositionChanged(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(editingFinished()), 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()));
m_ui.buttonConfig->setIcon(KIcon("system-run"));
m_ui.buttonConfig->setToolTip(i18n("Show/Hide settings"));
- m_ui.buttonConfig->setCheckable(true);
m_ui.groupSettings->setHidden(true);
- m_ui.checkDirectUpdate->setChecked(m_scene->getDirectUpdate());
+
+ m_ui.buttonShowScene->setIcon(KIcon("video-display"));
+ m_ui.buttonShowScene->setToolTip(i18n("Show monitor scene"));
+ m_ui.buttonDirectUpdate->setIcon(KIcon("transform-scale"));
+ m_ui.buttonDirectUpdate->setToolTip(i18n("Update parameters while monitor scene changes"));
+ m_ui.buttonDirectUpdate->setChecked(KdenliveSettings::monitorscene_directupdate());
+
+ m_ui.buttonZoomFit->setIcon(KIcon("zoom-fit-best"));
+ m_ui.buttonZoomFit->setToolTip(i18n("Fit zoom to monitor size"));
+ m_ui.buttonZoomOriginal->setIcon(KIcon("zoom-original"));
+ m_ui.buttonZoomOriginal->setToolTip(i18n("Original size"));
+ m_ui.buttonZoomIn->setIcon(KIcon("zoom-in"));
+ m_ui.buttonZoomIn->setToolTip(i18n("Zoom in"));
+ m_ui.buttonZoomOut->setIcon(KIcon("zoom-out"));
+ m_ui.buttonZoomOut->setToolTip(i18n("Zoom out"));
connect(m_ui.buttonConfig, SIGNAL(toggled(bool)), m_ui.groupSettings, SLOT(setVisible(bool)));
- connect(m_ui.checkShowScene, SIGNAL(toggled(bool)), this, SLOT(slotShowScene(bool)));
- connect(m_ui.checkDirectUpdate, SIGNAL(toggled(bool)), m_scene, SLOT(slotSetDirectUpdate(bool)));
+ connect(m_ui.sliderZoom, SIGNAL(valueChanged(int)), m_scene, SLOT(slotZoom(int)));
+ connect(m_scene, SIGNAL(zoomChanged(int)), m_ui.sliderZoom, SLOT(setValue(int)));
+ connect(m_ui.buttonZoomFit, SIGNAL(clicked()), m_scene, SLOT(slotZoomFit()));
+ connect(m_ui.buttonZoomOriginal, SIGNAL(clicked()), m_scene, SLOT(slotZoomOriginal()));
+ connect(m_ui.buttonZoomIn, SIGNAL(clicked()), m_scene, SLOT(slotZoomIn()));
+ connect(m_ui.buttonZoomOut, SIGNAL(clicked()), m_scene, SLOT(slotZoomOut()));
+ m_scene->slotZoomFit();
+
+ connect(m_ui.buttonShowScene, SIGNAL(toggled(bool)), this, SLOT(slotShowScene(bool)));
+ connect(m_ui.buttonDirectUpdate, SIGNAL(toggled(bool)), m_scene, SLOT(slotSetDirectUpdate(bool)));
connect(m_scene, SIGNAL(actionFinished()), this, SLOT(slotUpdateGeometry()));
delete m_timeline;
m_scene->removeItem(m_rect);
delete m_geometry;
- if (m_monitor) m_monitor->slotEffectScene(false);
+ if (m_monitor)
+ m_monitor->slotEffectScene(false);
}
void GeometryWidget::updateTimecodeFormat()
m_scene->addItem(m_rect);
slotPositionChanged(0, false);
- slotUpdateProperties();
slotCheckMonitorPosition(m_monitor->render->seekFramePosition());
}