]> git.sesse.net Git - kdenlive/commitdiff
Allow to explicitely store cut scenes as metadata
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 5 Nov 2012 11:02:39 +0000 (12:02 +0100)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 5 Nov 2012 11:02:39 +0000 (12:02 +0100)
src/projectlist.cpp
src/widgets/scenecutdialog_ui.ui

index 42a93190d0add61a22b9cb39d694811a4b0bd9eb..a00d6f4043b48da3f6a04a76450db430e5a2bf65 100644 (file)
@@ -3516,8 +3516,12 @@ void ProjectList::startClipFilterJob(const QString &filterName, const QString &c
        extraParams.insert("projecttreefilter", "1");
        QString keyword("%count");
        extraParams.insert("resultmessage", i18n("Found %1 scenes.", keyword));
+       if (ui.store_data->isChecked()) {
+           // We want to save result as clip metadata
+           extraParams.insert("storedata", "1");
+       }
        if (ui.zone_only->isChecked()) {
-           // We want to create markers
+           // We want to analyze only clip zone
            extraParams.insert("zoneonly", "1");
        }
        if (ui.add_markers->isChecked()) {
index 371acaf4896f53ef81aab6e6c23ae72e4dfdf2a1..17c54a8ca35f2464f01d42458cb06f0605215f50 100644 (file)
      </property>
     </widget>
    </item>
-   <item row="2" column="0" colspan="3">
+   <item row="3" column="0" colspan="3">
     <widget class="QCheckBox" name="zone_only">
      <property name="text">
       <string>Analyse only selected zone</string>
      </property>
     </widget>
    </item>
-   <item row="4" column="0" colspan="3">
+   <item row="4" column="0">
+    <spacer name="verticalSpacer">
+     <property name="orientation">
+      <enum>Qt::Vertical</enum>
+     </property>
+     <property name="sizeHint" stdset="0">
+      <size>
+       <width>20</width>
+       <height>40</height>
+      </size>
+     </property>
+    </spacer>
+   </item>
+   <item row="5" column="0" colspan="3">
     <widget class="QDialogButtonBox" name="buttonBox">
      <property name="orientation">
       <enum>Qt::Horizontal</enum>
      </property>
     </widget>
    </item>
-   <item row="3" column="0">
-    <spacer name="verticalSpacer">
-     <property name="orientation">
-      <enum>Qt::Vertical</enum>
-     </property>
-     <property name="sizeHint" stdset="0">
-      <size>
-       <width>20</width>
-       <height>40</height>
-      </size>
+   <item row="2" column="0" colspan="3">
+    <widget class="QCheckBox" name="store_data">
+     <property name="text">
+      <string>Save result in clip metadata</string>
      </property>
-    </spacer>
+    </widget>
    </item>
   </layout>
  </widget>