Commit 217ef52e authored by Simon Eugster's avatar Simon Eugster

WIP: Parameter types

parent b1b56445
......@@ -31,6 +31,7 @@
#include <QJsonObject>
#include <QLocale>
#include <QString>
#include <effects/effectsrepository.hpp>
AssetParameterModel::AssetParameterModel(std::unique_ptr<Mlt::Properties> asset, const QDomElement &assetXml, const QString &assetId, ObjectId ownerId,
QObject *parent)
......@@ -60,6 +61,22 @@ AssetParameterModel::AssetParameterModel(std::unique_ptr<Mlt::Properties> asset,
}
}
qDebug() << "Listing all effects in the repository:";
auto allEffects = EffectsRepository::get()->getNames();
for (const auto &effect : allEffects) {
qDebug() << "Asset ID " << effect.first << " with name " << effect.second;
}
if (EffectsRepository::get()->exists(assetId)) {
qDebug() << "Asset " << assetId << " found in the repository. Description: " << EffectsRepository::get()->getDescription(assetId);
QString str;
QTextStream stream(&str);
EffectsRepository::get()->getXml(assetId).save(stream, 4);
qDebug() << "Asset XML: " << str;
} else {
qDebug() << "Asset not found in repo: " << assetId;
}
qDebug() << "XML parsing of " << assetId << ". found : " << nodeList.count();
for (int i = 0; i < nodeList.count(); ++i) {
QDomElement currentParameter = nodeList.item(i).toElement();
......
......@@ -619,7 +619,13 @@ bool KdenliveDoc::saveSceneList(const QString &path, const QString &scene)
KMessageBox::error(QApplication::activeWindow(), i18n("Cannot write to file %1", path));
return false;
}
QLocale currentLocale;
qDebug() << "Current locale is " << currentLocale;
QLocale::setDefault(QLocale(QLocale::Russian, QLocale::Russia));
const QByteArray sceneData = sceneList.toString().toUtf8();
QLocale::setDefault(currentLocale);
file.write(sceneData);
if (!file.commit()) {
KMessageBox::error(QApplication::activeWindow(), i18n("Cannot write to file %1", path));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment