- buttonShowLines->setIcon(KIcon("insert-horizontal-rule"));
- buttonShowLines->setToolTip(i18n("Show/Hide the lines connecting the corners"));
- buttonShowLines->setCheckable(true);
- buttonShowLines->setChecked(KdenliveSettings::onmonitoreffects_cornersshowlines());
- connect(buttonShowLines, SIGNAL(toggled(bool)), this, SLOT(slotShowLines(bool)));
- m_config->addWidget(buttonShowLines, 0, 2);
- QToolButton *buttonShowControls = new QToolButton(m_config);
- buttonShowControls->setIcon(KIcon("transform-move"));
- buttonShowControls->setToolTip(i18n("Show additional controls"));
- buttonShowControls->setCheckable(true);
- buttonShowControls->setChecked(KdenliveSettings::onmonitoreffects_cornersshowcontrols());
- connect(buttonShowControls, SIGNAL(toggled(bool)), this, SLOT(slotShowControls(bool)));
- m_config->addWidget(buttonShowControls, 0, 3);
-
- int width = m_monitor->render->frameRenderWidth();
- int height = m_monitor->render->renderHeight();
-
- m_ui.spinX1->setRange(-width, width * 2);
- m_ui.spinX2->setRange(-width, width * 2);
- m_ui.spinX3->setRange(-width, width * 2);
- m_ui.spinX4->setRange(-width, width * 2);
- m_ui.spinY1->setRange(-height, height * 2);
- m_ui.spinY2->setRange(-height, height * 2);
- m_ui.spinY3->setRange(-height, height * 2);
- m_ui.spinY4->setRange(-height, height * 2);
-
- m_ui.toolReset1->setIcon(KIcon("edit-undo"));
- m_ui.toolReset1->setToolTip(i18n("Reset Corner 1"));
- m_ui.toolReset2->setIcon(KIcon("edit-undo"));
- m_ui.toolReset2->setToolTip(i18n("Reset Corner 2"));
- m_ui.toolReset3->setIcon(KIcon("edit-undo"));
- m_ui.toolReset3->setToolTip(i18n("Reset Corner 3"));
- m_ui.toolReset4->setIcon(KIcon("edit-undo"));
- m_ui.toolReset4->setToolTip(i18n("Reset Corner 4"));
-
- connect(m_ui.spinX1, SIGNAL(valueChanged(int)), this, SLOT(slotUpdateItem()));
- connect(m_ui.spinX2, SIGNAL(valueChanged(int)), this, SLOT(slotUpdateItem()));
- connect(m_ui.spinX3, SIGNAL(valueChanged(int)), this, SLOT(slotUpdateItem()));
- connect(m_ui.spinX4, SIGNAL(valueChanged(int)), this, SLOT(slotUpdateItem()));
- connect(m_ui.spinY1, SIGNAL(valueChanged(int)), this, SLOT(slotUpdateItem()));
- connect(m_ui.spinY2, SIGNAL(valueChanged(int)), this, SLOT(slotUpdateItem()));
- connect(m_ui.spinY3, SIGNAL(valueChanged(int)), this, SLOT(slotUpdateItem()));
- connect(m_ui.spinY4, SIGNAL(valueChanged(int)), this, SLOT(slotUpdateItem()));
-
- connect(m_ui.toolReset1, SIGNAL(clicked()), this, SLOT(slotResetCorner1()));
- connect(m_ui.toolReset2, SIGNAL(clicked()), this, SLOT(slotResetCorner2()));
- connect(m_ui.toolReset3, SIGNAL(clicked()), this, SLOT(slotResetCorner3()));
- connect(m_ui.toolReset4, SIGNAL(clicked()), this, SLOT(slotResetCorner4()));
-
- connect(m_config, SIGNAL(showScene(bool)), this, SLOT(slotShowScene(bool)));
- connect(m_monitor, SIGNAL(renderPosition(int)), this, SLOT(slotCheckMonitorPosition(int)));
- connect(m_scene, SIGNAL(actionFinished()), this, SLOT(slotUpdateProperties()));
+ edit->removeCustomControls();
+ edit->addCustomButton(KIcon("transform-move"), i18n("Show additional controls"), this, SLOT(slotShowControls(bool)),
+ true, KdenliveSettings::onmonitoreffects_cornersshowcontrols());
+ edit->addCustomButton(KIcon("insert-horizontal-rule"), i18n("Show/Hide the lines connecting the corners"), this, SLOT(slotShowLines(bool)),
+ true, KdenliveSettings::onmonitoreffects_cornersshowlines());
+
+ connect(m_item, SIGNAL(changed()), this, SLOT(slotUpdateProperties()));
+ connect(m_scene, SIGNAL(addKeyframe()), this, SLOT(slotInsertKeyframe()));
+
+ connect(keyframe_list, SIGNAL(cellChanged(int,int)), this, SLOT(slotUpdateItem()));
+ m_scene->centerView();