Compare commits

...

7 Commits

Author SHA1 Message Date
Jean-Baptiste Mardelle
159a547758 Backport:Fix possible confusion in variable name
svn path=/branches/release-0_7_7/kdenlive/; revision=4343
2010-02-26 21:44:33 +00:00
Jean-Baptiste Mardelle
358092bcca Prepare the 0.7.7.1 release
svn path=/branches/release-0_7_7/kdenlive/; revision=4341
2010-02-26 21:38:53 +00:00
Jean-Baptiste Mardelle
42e9741644 Updated polish translation (vertexshader)
svn path=/branches/release-0_7_7/kdenlive/; revision=4340
2010-02-26 21:36:43 +00:00
Jean-Baptiste Mardelle
11e4fdec16 Add option to disable Nepomuk:
http://kdenlive.org/mantis/view.php?id=1457

svn path=/branches/release-0_7_7/kdenlive/; revision=4335
2010-02-22 22:04:55 +00:00
Jean-Baptiste Mardelle
31f196d1f6 Backport:
FIx transitions broken when openin doc in non english locale:
http://kdenlive.org/mantis/view.php?id=1450

svn path=/branches/release-0_7_7/kdenlive/; revision=4333
2010-02-21 18:43:47 +00:00
Jean-Baptiste Mardelle
94654e4e7b Backport:
Fix transition names not translated in timeline

svn path=/branches/release-0_7_7/kdenlive/; revision=4332
2010-02-21 18:38:27 +00:00
Jean-Baptiste Mardelle
3a8cf0952c Backport:
Fix seek to pos in composite transition:
http://kdenlive.org/mantis/view.php?id=1452

svn path=/branches/release-0_7_7/kdenlive/; revision=4331
2010-02-21 18:37:12 +00:00
12 changed files with 1864 additions and 1308 deletions

View File

@@ -1,6 +1,6 @@
project(kdenlive)
SET(BASE_VERSION 0.7.7)
SET(BASE_VERSION 0.7.7.1)
OPTION(RELEASE_BUILD "Remove compilation date to version, use for stable releases (default off)" ON)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules )

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
add_subdirectory( widgets )
add_subdirectory( mimetypes )
find_package(Nepomuk)
macro_optional_find_package(Nepomuk)
if (Nepomuk_FOUND)
INCLUDE_DIRECTORIES(NEPOMUK_INCLUDES )

View File

@@ -227,7 +227,7 @@ void EffectStackEdit::transferParamDesc(const QDomElement d, int in, int out)
m_valueItems[paramName+"complex"] = pl;
connect(pl, SIGNAL(parameterChanged()), this, SLOT(collectAllParameters()));
} else if (type == "geometry") {
Geometryval *geo = new Geometryval(m_profile, m_frameSize);
Geometryval *geo = new Geometryval(m_profile, m_frameSize, m_in);
geo->setupParam(pa, minFrame, maxFrame);
m_vbox->addWidget(geo);
m_valueItems[paramName+"geometry"] = geo;
@@ -339,7 +339,7 @@ void EffectStackEdit::transferParamDesc(const QDomElement d, int in, int out)
void EffectStackEdit::slotSeekToPos(int pos)
{
emit seekTimeline(pos - m_in);
emit seekTimeline(pos);
}
wipeInfo EffectStackEdit::getWipeInfo(QString value)

View File

@@ -28,14 +28,15 @@
#include <QInputDialog>
Geometryval::Geometryval(const MltVideoProfile profile, QPoint frame_size, QWidget* parent) :
Geometryval::Geometryval(const MltVideoProfile profile, QPoint frame_size, int startPoint, QWidget* parent) :
QWidget(parent),
m_profile(profile),
m_paramRect(NULL),
m_geom(NULL),
m_path(NULL),
m_fixedMode(false),
m_frameSize(frame_size)
m_frameSize(frame_size),
m_startPoint(startPoint)
{
setupUi(this);
QVBoxLayout* vbox = new QVBoxLayout(widget);
@@ -324,7 +325,7 @@ void Geometryval::slotSyncCursor()
void Geometryval::slotPositionChanged(int pos, bool seek)
{
if (seek && KdenliveSettings::transitionfollowcursor()) emit seekToPos(pos);
if (seek && KdenliveSettings::transitionfollowcursor()) emit seekToPos(pos + m_startPoint);
spinPos->setValue(pos);
m_helper->setValue(pos);
Mlt::GeometryItem item;

View File

@@ -41,7 +41,7 @@ class Geometryval : public QWidget, public Ui::Geometryval
{
Q_OBJECT
public:
explicit Geometryval(const MltVideoProfile profile, QPoint frame_size, QWidget* parent = 0);
explicit Geometryval(const MltVideoProfile profile, QPoint frame_size, int startPoint = 0, QWidget* parent = 0);
virtual ~Geometryval();
QDomElement getParamDesc();
QString getValue() const;
@@ -65,6 +65,7 @@ private:
Ui::GeometryPosition_UI m_view;
void updateTransitionPath();
double m_dar;
int m_startPoint;
QGraphicsView *m_sceneview;
public slots:

View File

@@ -383,7 +383,7 @@ void KeyframeEdit::slotAdjustKeyframeInfo(bool seek)
sl->setValue(keyframe_list->item(item->row(), col)->text().toInt());
sl->blockSignals(false);
}
if (KdenliveSettings::keyframeseek() && seek) emit seekToPos(keyframe_pos->value());
if (KdenliveSettings::keyframeseek() && seek) emit seekToPos(keyframe_pos->value() - m_min);
}
void KeyframeEdit::slotAdjustKeyframePos(int value)
@@ -394,7 +394,7 @@ void KeyframeEdit::slotAdjustKeyframePos(int value)
else val = m_timecode.getTimecodeFromFrames(value);
keyframe_list->verticalHeaderItem(item->row())->setText(val);
slotGenerateParams(item->row(), -1);
if (KdenliveSettings::keyframeseek()) emit seekToPos(value);
if (KdenliveSettings::keyframeseek()) emit seekToPos(value - m_min);
}
void KeyframeEdit::slotAdjustKeyframeValue(int /*value*/)

View File

@@ -344,32 +344,32 @@ void TrackView::parseDocument(QDomDocument doc)
QDomElement base = MainWindow::transitions.getEffectByTag(mlt_service, transitionId).cloneNode().toElement();
for (int k = 0; k < transitionparams.count(); k++) {
p = transitionparams.item(k).toElement();
if (!p.isNull()) {
QString paramName = p.attribute("name");
QString paramValue = p.text();
p = transitionparams.item(k).toElement();
if (!p.isNull()) {
QString paramName = p.attribute("name");
QString paramValue = p.text();
QDomNodeList params = base.elementsByTagName("parameter");
if (paramName != "a_track" && paramName != "b_track") for (int i = 0; i < params.count(); i++) {
QDomElement e = params.item(i).toElement();
if (!e.isNull() && e.attribute("tag") == paramName) {
if (e.attribute("type") == "double") {
QString factor = e.attribute("factor", "1");
if (factor != "1") {
double fact;
if (factor.startsWith('%')) {
fact = ProfilesDialog::getStringEval(m_doc->mltProfile(), factor);
} else fact = factor.toDouble();
double val = paramValue.toDouble() * fact;
paramValue = QString::number(val);
QDomNodeList params = base.elementsByTagName("parameter");
if (paramName != "a_track" && paramName != "b_track") for (int i = 0; i < params.count(); i++) {
QDomElement e = params.item(i).toElement();
if (!e.isNull() && e.attribute("tag") == paramName) {
if (e.attribute("type") == "double") {
QString factor = e.attribute("factor", "1");
if (factor != "1") {
double fact;
if (factor.startsWith('%')) {
fact = ProfilesDialog::getStringEval(m_doc->mltProfile(), factor);
} else fact = factor.toDouble();
double val = paramValue.toDouble() * fact;
paramValue = QString::number(val);
}
}
e.setAttribute("value", paramValue);
break;
}
e.setAttribute("value", paramValue);
break;
}
}
}
}
}
/*QDomDocument doc;
doc.appendChild(doc.importNode(base, true));

View File

@@ -70,7 +70,7 @@ Transition::Transition(const ItemInfo info, int transitiontrack, double fps, QDo
if (m_automaticTransition) m_parameters.setAttribute("automatic", 1);
else if (m_parameters.attribute("automatic") == "1") m_automaticTransition = true;
if (m_parameters.attribute("force_track") == "1") m_forceTransitionTrack = true;
m_name = m_parameters.elementsByTagName("name").item(0).toElement().text();
m_name = i18n(m_parameters.elementsByTagName("name").item(0).toElement().text().toUtf8().data());
m_secondClip = 0;
//m_referenceClip->addTransition(this);
@@ -92,16 +92,18 @@ Transition *Transition::clone()
return tr;
}
QString Transition::transitionName() const
{
return m_name;
}
QString Transition::transitionTag() const
{
return m_parameters.attribute("tag");
}
QStringList Transition::transitionInfo() const
{
QStringList info;
info << m_name << m_parameters.attribute("tag") << m_parameters.attribute("id");
return info;
}
bool Transition::isAutomatic() const
{
return m_automaticTransition;
@@ -125,7 +127,7 @@ void Transition::setTransitionParameters(const QDomElement params)
m_parameters = params;
if (m_parameters.attribute("force_track") == "1") setForcedTrack(true, m_parameters.attribute("transition_btrack").toInt());
else if (m_parameters.attribute("force_track") == "0") setForcedTrack(false, m_parameters.attribute("transition_btrack").toInt());
m_name = m_parameters.elementsByTagName("name").item(0).toElement().text();
m_name = i18n(m_parameters.elementsByTagName("name").item(0).toElement().text().toUtf8().data());
update();
}

View File

@@ -54,8 +54,8 @@ public:
bool hasClip(const ClipItem * clip) const;
bool belongsToClip(const ClipItem * clip) const;
bool invertedTransition() const;
QString transitionName() const;
QString transitionTag() const;
QStringList transitionInfo() const;
OPERATIONTYPE operationMode(QPointF pos);
//const QMap < QString, QString > transitionParameters() const;
void setTransitionParameters(const QDomElement params);

View File

@@ -42,7 +42,7 @@ TransitionSettings::TransitionSettings(QWidget* parent) :
connect(m_effectEdit, SIGNAL(seekTimeline(int)), this, SIGNAL(seekTimeline(int)));
setEnabled(false);
QMap<QString, QStringList> transitionsList;
QList<QStringList> transitionsList;
int max = MainWindow::transitions.effectNames().count();
QStringList transitionInfo;
int ix = 0;
@@ -50,11 +50,13 @@ TransitionSettings::TransitionSettings(QWidget* parent) :
for (; ix < max; ix++) {
transitionInfo = MainWindow::transitions.effectIdInfo(ix);
transitionInfo << QString::number(ix);
transitionsList.insert(transitionInfo.at(0).toLower(), transitionInfo);
transitionsList.append(transitionInfo);
}
ix = 0;
foreach(const QStringList &value, transitionsList) {
transitionList->addItem(value.at(0));
QStringList data = value;
if (!data.isEmpty()) data.removeLast();
transitionList->addItem(value.at(0), data);
transitionList->setItemData(ix, MainWindow::transitions.getInfoFromIndex(value.last().toInt()), Qt::ToolTipRole);
ix++;
}
@@ -150,7 +152,7 @@ void TransitionSettings::slotTransitionItemSelected(Transition* t, int nextTrack
if (!t->forcedTrack()) transitionTrack->setCurrentIndex(0);
else transitionTrack->setCurrentIndex(m_tracksCount + 1 - t->transitionEndTrack());
transitionTrack->blockSignals(false);
int ix = transitionList->findText(t->transitionName(), Qt::MatchExactly);
int ix = transitionList->findData(t->transitionInfo(), Qt::UserRole, Qt::MatchExactly);
m_usedTransition = t;
if (ix != -1) {
transitionList->blockSignals(true);

View File

@@ -36,7 +36,7 @@
#include <QTimer>
const double recommendedMltVersion = 50;
static const char version[] = VERSION;
static const char kdenlive_version[] = VERSION;
Wizard::Wizard(bool upgrade, QWidget *parent) :
QWizard(parent)
@@ -48,7 +48,7 @@ Wizard::Wizard(bool upgrade, QWidget *parent) :
page1->setTitle(i18n("Welcome"));
QLabel *label;
if (upgrade)
label = new QLabel(i18n("Your Kdenlive version was upgraded to version %1. Please take some time to review the basic settings", QString(version).section(' ', 0, 0)));
label = new QLabel(i18n("Your Kdenlive version was upgraded to version %1. Please take some time to review the basic settings", QString(kdenlive_version).section(' ', 0, 0)));
else
label = new QLabel(i18n("This is the first time you run Kdenlive. This wizard will let you adjust some basic settings, you will be ready to edit your first movie in a few seconds..."));
label->setWordWrap(true);
@@ -581,7 +581,7 @@ bool Wizard::isOk() const
void Wizard::slotShowWebInfos()
{
KRun::runUrl(KUrl("http://kdenlive.org/discover/" + QString(version).section(' ', 0, 0)), "text/html", this);
KRun::runUrl(KUrl("http://kdenlive.org/discover/" + QString(kdenlive_version).section(' ', 0, 0)), "text/html", this);
}
#include "wizard.moc"