]> git.sesse.net Git - kdenlive/commitdiff
re-add the resize clip start / end actions (currently with shortcuts '1' and '2')
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 19 Oct 2009 09:24:45 +0000 (09:24 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 19 Oct 2009 09:24:45 +0000 (09:24 +0000)
svn path=/trunk/kdenlive/; revision=4049

src/kdenliveui.rc
src/mainwindow.cpp
src/mainwindow.h

index 66556f8450769ced487311462ada964442cdb183..2c4b698d20a67046e7ab39ba123f07a2f07af7d3 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
-<gui name="kdenlive" version="47">
+<gui name="kdenlive" version="48">
   <ToolBar name="extraToolBar" >
     <text>Extra Toolbar</text>
        <Action name="project_render" />
@@ -73,6 +73,8 @@
       <Action name="select_timeline_transition" />
       <Action name="select_add_timeline_transition" />
       <Action name="deselect_timeline_transition" />
+      <Action name="resize_timeline_clip_start" />
+      <Action name="resize_timeline_clip_end" />
       <Action name="cut_timeline_clip" />
       <Action name="delete_timeline_clip" />
       <Menu name="guide_menu" ><text>Guides</text>
index 91bb142572a8e9582ee6726723ede0560e71fe12..5d9b16d9e0bf0f92a25171ed3586b5ecf512ef58 100644 (file)
@@ -946,6 +946,16 @@ void MainWindow::setupActions()
     markOut->setShortcut(Qt::Key_O);
     connect(markOut, SIGNAL(triggered(bool)), this, SLOT(slotSetOutPoint()));
 
+    KAction *resizeStart =  new KAction(KIcon(), i18n("Resize Item Start"), this);
+    collection->addAction("resize_timeline_clip_start", resizeStart);
+    resizeStart->setShortcut(Qt::Key_1);
+    connect(resizeStart, SIGNAL(triggered(bool)), this, SLOT(slotResizeItemStart()));
+
+    KAction *resizeEnd =  new KAction(KIcon(), i18n("Resize Item End"), this);
+    collection->addAction("resize_timeline_clip_end", resizeEnd);
+    resizeEnd->setShortcut(Qt::Key_2);
+    connect(resizeEnd, SIGNAL(triggered(bool)), this, SLOT(slotResizeItemEnd()));
+
     KAction* monitorSeekBackward = new KAction(KIcon("media-seek-backward"), i18n("Rewind"), this);
     monitorSeekBackward->setShortcut(Qt::Key_J);
     collection->addAction("monitor_seek_backward", monitorSeekBackward);
@@ -2753,6 +2763,16 @@ void MainWindow::slotSetOutPoint()
     // else m_activeTimeline->projectView()->setOutPoint();
 }
 
+void MainWindow::slotResizeItemStart()
+{
+    if (m_activeTimeline) m_activeTimeline->projectView()->setInPoint();
+}
+
+void MainWindow::slotResizeItemEnd()
+{
+    if (m_activeTimeline) m_activeTimeline->projectView()->setOutPoint();
+}
+
 void MainWindow::slotGetNewLumaStuff()
 {
     //KNS::Entry::List download();
index ac56b7547d80b6da1a1d499c1e81b6b74a815c94..781aaa04e691854c5f2bbe8ded5d3e0109265ddd 100644 (file)
@@ -296,6 +296,8 @@ private slots:
 
     void slotSetInPoint();
     void slotSetOutPoint();
+    void slotResizeItemStart();
+    void slotResizeItemEnd();
     void configureNotifications();
     void slotInsertTrack(int ix = 0);
     void slotDeleteTrack(int ix = 0);