summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Mardelle <jb@kdenlive.org>2016-10-19 22:20:09 (GMT)
committerJean-Baptiste Mardelle <jb@kdenlive.org>2016-10-19 22:20:09 (GMT)
commit9fcbba8bf03c918efce49ae3160ce23f8a085a18 (patch)
tree24a5eaaa44ad669c903a07799d84ccfc718a7d4f
parent68e89f48be0ec2fe1767a6ea050fa87fb9b441c5 (diff)
Improve some effect names, capitalize first letter, patch by alcinos
REVIEW: 129218
-rw-r--r--data/effects/frei0r_mask0mate.xml2
-rw-r--r--data/effects/frei0r_pr0be.xml2
-rw-r--r--data/effects/frei0r_pr0file.xml2
-rw-r--r--data/effects/frei0r_threelay0r.xml2
-rw-r--r--data/effects/frei0r_threshold0r.xml2
-rw-r--r--data/effects/frei0r_twolay0r.xml2
-rw-r--r--data/effects/threshold.xml2
-rw-r--r--src/effectslist/initeffects.cpp6
8 files changed, 11 insertions, 9 deletions
diff --git a/data/effects/frei0r_mask0mate.xml b/data/effects/frei0r_mask0mate.xml
index 885f01e..26ca6ee 100644
--- a/data/effects/frei0r_mask0mate.xml
+++ b/data/effects/frei0r_mask0mate.xml
@@ -1,6 +1,6 @@
<!DOCTYPE kpartgui>
<effect tag="frei0r.mask0mate" id="frei0r.mask0mate" type="video" unique="1">
- <name>Mask0Mate</name>
+ <name>Rectangular Alpha mask</name>
<description>Creates an square alpha-channel mask</description>
<author>Richard Spindler</author>
<parameter type="constant" name="Left" max="1000" min="0" default="0" factor="1000">
diff --git a/data/effects/frei0r_pr0be.xml b/data/effects/frei0r_pr0be.xml
index 6bd6e97..9f0717f 100644
--- a/data/effects/frei0r_pr0be.xml
+++ b/data/effects/frei0r_pr0be.xml
@@ -1,6 +1,6 @@
<!DOCTYPE kpartgui>
<effect LC_NUMERIC="C" tag="frei0r.pr0be" id="frei0r.pr0be">
- <name>pr0be</name>
+ <name>Video values</name>
<description>Measure video values</description>
<author>Marko Cebokli</author>
diff --git a/data/effects/frei0r_pr0file.xml b/data/effects/frei0r_pr0file.xml
index 94adb4a..5f1fa3f 100644
--- a/data/effects/frei0r_pr0file.xml
+++ b/data/effects/frei0r_pr0file.xml
@@ -1,6 +1,6 @@
<!DOCTYPE kpartgui>
<effect LC_NUMERIC="C" tag="frei0r.pr0file" id="frei0r.pr0file">
- <name>pr0file</name>
+ <name>Oscilloscope</name>
<description>2D video oscilloscope</description>
<author>Marko Cebokli</author>
diff --git a/data/effects/frei0r_threelay0r.xml b/data/effects/frei0r_threelay0r.xml
index cf04951..91a038a 100644
--- a/data/effects/frei0r_threelay0r.xml
+++ b/data/effects/frei0r_threelay0r.xml
@@ -1,6 +1,6 @@
<!DOCTYPE kpartgui>
<effect tag="frei0r.threelay0r" id="frei0r.threelay0r">
- <name>threelay0r</name>
+ <name>3-level Threshold</name>
<description>Dynamic 3-level thresholding</description>
<author>Hedde Bosman</author>
</effect>
diff --git a/data/effects/frei0r_threshold0r.xml b/data/effects/frei0r_threshold0r.xml
index bb2244b..96fe812 100644
--- a/data/effects/frei0r_threshold0r.xml
+++ b/data/effects/frei0r_threshold0r.xml
@@ -1,6 +1,6 @@
<!DOCTYPE kpartgui>
<effect tag="frei0r.threshold0r" id="frei0r.threshold0r">
- <name>Threshold0r</name>
+ <name>Threshold</name>
<description>Thresholds a source image</description>
<author>Jean-Sebastien Senecal</author>
<parameter type="simplekeyframe" name="Threshold" max="1000" min="0" default="200" factor="1000">
diff --git a/data/effects/frei0r_twolay0r.xml b/data/effects/frei0r_twolay0r.xml
index fa1075f..cb10ce9 100644
--- a/data/effects/frei0r_twolay0r.xml
+++ b/data/effects/frei0r_twolay0r.xml
@@ -1,6 +1,6 @@
<!DOCTYPE kpartgui>
<effect tag="frei0r.twolay0r" id="frei0r.twolay0r">
- <name>twolay0r</name>
+ <name>Binarize dynamically</name>
<description>Dynamic thresholding</description>
<author>Martin Bayer</author>
</effect>
diff --git a/data/effects/threshold.xml b/data/effects/threshold.xml
index 6a38fee..57f9be2 100644
--- a/data/effects/threshold.xml
+++ b/data/effects/threshold.xml
@@ -1,6 +1,6 @@
<!DOCTYPE kpartgui>
<effect tag="threshold" id="threshold">
- <name>Threshold</name>
+ <name>Binarize</name>
<description>Make monochrome clip</description>
<author>Charles Yates</author>
<parameter type="constant" name="midpoint" max="255" min="0" default="128">
diff --git a/src/effectslist/initeffects.cpp b/src/effectslist/initeffects.cpp
index e6dd1c7..95ff151 100644
--- a/src/effectslist/initeffects.cpp
+++ b/src/effectslist/initeffects.cpp
@@ -553,7 +553,7 @@ QDomDocument initEffects::createDescriptionFromMlt(Mlt::Repository* repository,
Mlt::Properties *metadata = repository->metadata(filter_type, filtername.toLatin1().data());
////qDebug() << filtername;
if (metadata && metadata->is_valid()) {
- if (metadata->get("title") && metadata->get("identifier")) {
+ if (metadata->get("title") && metadata->get("identifier") && strlen(metadata->get("title")) > 0) {
QDomElement eff = ret.createElement(QStringLiteral("effect"));
QString id = metadata->get("identifier");
eff.setAttribute(QStringLiteral("tag"), id);
@@ -561,7 +561,9 @@ QDomDocument initEffects::createDescriptionFromMlt(Mlt::Repository* repository,
////qDebug()<<"Effect: "<<id;
QDomElement name = ret.createElement(QStringLiteral("name"));
- name.appendChild(ret.createTextNode(metadata->get("title")));
+ QString name_str = metadata->get("title");
+ name_str[0] = name_str[0].toUpper();
+ name.appendChild(ret.createTextNode(name_str));
QDomElement desc = ret.createElement(QStringLiteral("description"));
desc.appendChild(ret.createTextNode(metadata->get("description")));