Commit a12cf2d6 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

const'ify. Remove unimplemented function. Fix indent. Optimization

parent cba3c6aa
......@@ -32,7 +32,9 @@ class PropertiesViewDelegate : public QStyledItemDelegate
{
Q_OBJECT
public:
PropertiesViewDelegate(QWidget *parent) : QStyledItemDelegate(parent) {
PropertiesViewDelegate(QWidget *parent)
: QStyledItemDelegate(parent)
{
m_height = parent->fontMetrics().height() * 1.2;
}
protected:
......
......@@ -68,7 +68,7 @@ private:
QStringList m_fixedParams;
signals:
void addClip(KUrl url);
void addClip(const KUrl &url);
};
......
......@@ -19,7 +19,7 @@ HistogramGenerator::HistogramGenerator()
}
QImage HistogramGenerator::calculateHistogram(const QSize &paradeSize, const QImage &image, const int &components,
HistogramGenerator::Rec rec, const bool &unscaled, const uint &accelFactor) const
HistogramGenerator::Rec rec, bool unscaled, uint accelFactor) const
{
if (paradeSize.height() <= 0 || paradeSize.width() <= 0 || image.width() <= 0 || image.height() <= 0) {
return QImage();
......@@ -130,7 +130,7 @@ QImage HistogramGenerator::calculateHistogram(const QSize &paradeSize, const QIm
}
QImage HistogramGenerator::drawComponent(const int *y, const QSize &size, const float &scaling, const QColor &color,
const bool &unscaled, const uint &max) const
bool unscaled, uint max) const
{
QImage component(max, size.height(), QImage::Format_ARGB32);
component.fill(qRgba(0, 0, 0, 0));
......@@ -159,7 +159,7 @@ QImage HistogramGenerator::drawComponent(const int *y, const QSize &size, const
}
void HistogramGenerator::drawComponentFull(QPainter *davinci, const int *y, const float &scaling, const QRect &rect,
const QColor &color, const int &textSpace, const bool &unscaled, const uint &max) const
const QColor &color, int textSpace, bool unscaled, uint max) const
{
QImage component = drawComponent(y, rect.size() - QSize(0, textSpace), scaling, color, unscaled, max);
davinci->drawImage(rect.topLeft(), component);
......
......@@ -33,12 +33,12 @@ public:
components are OR-ed HistogramGenerator::Components flags and decide with components (Y, R, G, B) to paint.
unscaled = true leaves the width at 256 if the widget is wider (to avoid scaling). */
QImage calculateHistogram(const QSize &paradeSize, const QImage &image, const int &components, const HistogramGenerator::Rec rec,
const bool &unscaled, const uint &accelFactor = 1) const;
bool unscaled, uint accelFactor = 1) const;
QImage drawComponent(const int *y, const QSize &size, const float &scaling, const QColor &color, const bool &unscaled, const uint &max) const;
QImage drawComponent(const int *y, const QSize &size, const float &scaling, const QColor &color, bool unscaled, uint max) const;
void drawComponentFull(QPainter *davinci, const int *y, const float &scaling, const QRect &rect,
const QColor &color, const int &textSpace, const bool &unscaled, const uint &max) const;
const QColor &color, int textSpace, bool unscaled, uint max) const;
enum Components { ComponentY = 1<<0, ComponentR = 1<<1, ComponentG = 1<<2, ComponentB = 1<<3, ComponentSum = 1<<4 };
......
......@@ -37,8 +37,8 @@ RGBParadeGenerator::RGBParadeGenerator()
}
QImage RGBParadeGenerator::calculateRGBParade(const QSize &paradeSize, const QImage &image,
const RGBParadeGenerator::PaintMode paintMode, const bool &drawAxis,
const bool &drawGradientRef, const uint &accelFactor)
const RGBParadeGenerator::PaintMode paintMode, bool drawAxis,
bool drawGradientRef, uint accelFactor)
{
Q_ASSERT(accelFactor >= 1);
......
......@@ -23,7 +23,7 @@ public:
RGBParadeGenerator();
QImage calculateRGBParade(const QSize &paradeSize, const QImage &image, const RGBParadeGenerator::PaintMode paintMode,
const bool &drawAxis, const bool &drawGradientRef, const uint &accelFactor = 1);
bool drawAxis, bool drawGradientRef, uint accelFactor = 1);
static const QColor colHighlight;
static const QColor colLight;
......
......@@ -118,7 +118,7 @@ QPoint VectorscopeGenerator::mapToCircle(const QSize &targetSize, const QPointF
QImage VectorscopeGenerator::calculateVectorscope(const QSize &vectorscopeSize, const QImage &image, const float &gain,
const VectorscopeGenerator::PaintMode &paintMode,
const VectorscopeGenerator::ColorSpace &colorSpace,
const bool &, const uint &accelFactor) const
bool, uint accelFactor) const
{
if (vectorscopeSize.width() <= 0 || vectorscopeSize.height() <= 0 || image.width() <= 0 || image.height() <= 0) {
// Invalid size
......
......@@ -30,13 +30,13 @@ public:
QImage calculateVectorscope(const QSize &vectorscopeSize, const QImage &image, const float &gain,
const VectorscopeGenerator::PaintMode &paintMode,
const VectorscopeGenerator::ColorSpace &colorSpace,
const bool&, const uint &accelFactor = 1) const;
bool, uint accelFactor = 1) const;
QPoint mapToCircle(const QSize &targetSize, const QPointF &point) const;
static const float scaling;
signals:
void signalCalculationFinished(QImage image, const uint &ms);
void signalCalculationFinished(const QImage &image, uint ms);
};
......
......@@ -29,7 +29,7 @@ WaveformGenerator::~WaveformGenerator()
}
QImage WaveformGenerator::calculateWaveform(const QSize &waveformSize, const QImage &image, WaveformGenerator::PaintMode paintMode,
const bool &drawAxis, WaveformGenerator::Rec rec, const uint &accelFactor)
bool drawAxis, WaveformGenerator::Rec rec, uint accelFactor)
{
Q_ASSERT(accelFactor >= 1);
......
......@@ -27,7 +27,7 @@ public:
~WaveformGenerator();
QImage calculateWaveform(const QSize &waveformSize, const QImage &image, WaveformGenerator::PaintMode paintMode,
const bool &drawAxis, const WaveformGenerator::Rec rec, const uint &accelFactor = 1);
bool drawAxis, const WaveformGenerator::Rec rec, uint accelFactor = 1);
//signals:
//void signalCalculationFinished(QImage image, const uint &ms);
......
......@@ -49,8 +49,8 @@ public slots:
void slotUpdateEffectParams(const QDomElement &e);
void slotUpdateParameterList(const QStringList &);
signals:
void removeEffect(ClipItem*, QDomElement);
void updateClipEffect(ClipItem*, QDomElement);
void removeEffect(ClipItem*, const QDomElement &);
void updateClipEffect(ClipItem*, const QDomElement &);
void parameterChanged();
};
......
......@@ -2020,7 +2020,7 @@ void CustomTrackView::slotDropEffect(ClipItem *clip, QDomElement effect, GenTime
}
}
void CustomTrackView::slotAddEffect(QDomElement effect, GenTime pos, int track)
void CustomTrackView::slotAddEffect(QDomElement effect, const GenTime &pos, int track)
{
QList<QGraphicsItem *> itemList;
QUndoCommand *effectCommand = new QUndoCommand();
......@@ -2432,7 +2432,7 @@ void CustomTrackView::slotUpdateClipRegion(ClipItem *clip, int ix, QString regio
m_commandStack->push(command);
}
ClipItem *CustomTrackView::cutClip(ItemInfo info, GenTime cutTime, bool cut, EffectsList oldStack, bool execute)
ClipItem *CustomTrackView::cutClip(const ItemInfo &info, const GenTime &cutTime, bool cut, const EffectsList &oldStack, bool execute)
{
if (cut) {
// cut clip
......@@ -2666,7 +2666,7 @@ void CustomTrackView::slotAddTransition(ClipItem* /*clip*/, ItemInfo transitionI
setDocumentModified();
}
void CustomTrackView::addTransition(ItemInfo transitionInfo, int endTrack, QDomElement params, bool refresh)
void CustomTrackView::addTransition(const ItemInfo &transitionInfo, int endTrack, const QDomElement &params, bool refresh)
{
Transition *tr = new Transition(transitionInfo, endTrack, m_document->fps(), params, true);
//kDebug() << "---- ADDING transition " << params.attribute("value");
......@@ -2679,7 +2679,7 @@ void CustomTrackView::addTransition(ItemInfo transitionInfo, int endTrack, QDomE
}
}
void CustomTrackView::deleteTransition(ItemInfo transitionInfo, int endTrack, QDomElement /*params*/, bool refresh)
void CustomTrackView::deleteTransition(const ItemInfo &transitionInfo, int endTrack, QDomElement /*params*/, bool refresh)
{
Transition *item = getTransitionItemAt(transitionInfo.startPos, transitionInfo.track);
if (!item) {
......@@ -3049,7 +3049,7 @@ int CustomTrackView::duration() const
return m_projectDuration;
}
void CustomTrackView::addTrack(TrackInfo type, int ix)
void CustomTrackView::addTrack(const TrackInfo &type, int ix)
{
QList <TransitionInfo> transitionInfos;
if (ix == -1 || ix == m_document->tracksCount()) {
......@@ -4830,7 +4830,7 @@ bool CustomTrackView::moveClip(const ItemInfo &start, const ItemInfo &end, bool
return success;
}
void CustomTrackView::moveGroup(QList <ItemInfo> startClip, QList <ItemInfo> startTransition, const GenTime &offset, const int trackOffset, bool reverseMove)
void CustomTrackView::moveGroup(QList<ItemInfo> startClip, QList<ItemInfo> startTransition, const GenTime &offset, const int trackOffset, bool reverseMove)
{
// Group Items
resetSelectionGroup();
......
......@@ -55,7 +55,7 @@ public:
virtual void mouseReleaseEvent(QMouseEvent * event);
virtual void mouseMoveEvent(QMouseEvent * event);
virtual void mouseDoubleClickEvent(QMouseEvent *event);
void addTrack(TrackInfo type, int ix = -1);
void addTrack(const TrackInfo &type, int ix = -1);
void removeTrack(int ix);
/** @brief Makes the document use new track infos (name, type, ...). */
void configTracks(const QList<TrackInfo> &trackInfos);
......@@ -68,7 +68,7 @@ public:
For example, attempting to move a clip to t = -1 s will actually move it to t = 0 s.
*/
bool moveClip(const ItemInfo &start, const ItemInfo &end, bool refresh, ItemInfo *out_actualEnd = NULL);
void moveGroup(QList <ItemInfo> startClip, QList <ItemInfo> startTransition, const GenTime &offset, const int trackOffset, bool reverseMove = false);
void moveGroup(QList<ItemInfo> startClip, QList<ItemInfo> startTransition, const GenTime &offset, const int trackOffset, bool reverseMove = false);
/** move transition, startPos = (old start, old end), endPos = (new start, new end) */
void moveTransition(const ItemInfo &start, const ItemInfo &end, bool refresh);
void resizeClip(const ItemInfo &start, const ItemInfo &end, bool dontWorry = false);
......@@ -83,7 +83,7 @@ public:
/** @brief An effect was dropped on @param clip */
void slotDropEffect(ClipItem *clip, QDomElement effect, GenTime pos, int track);
/** @brief Add effect to current clip */
void slotAddEffect(QDomElement effect, GenTime pos, int track);
void slotAddEffect(QDomElement effect, const GenTime &pos, int track);
void slotAddGroupEffect(QDomElement effect, AbstractGroupItem *group, AbstractClipItem *dropTarget = NULL);
void addEffect(int track, GenTime pos, QDomElement effect);
void deleteEffect(int track, GenTime pos, QDomElement effect);
......@@ -91,10 +91,9 @@ public:
/** @brief Enable / disable a list of effects */
void updateEffectState(int track, GenTime pos, QList <int> effectIndexes, bool disable, bool updateEffectStack);
void moveEffect(int track, GenTime pos, QList <int> oldPos, QList <int> newPos);
void addTransition(ItemInfo transitionInfo, int endTrack, QDomElement params, bool refresh);
void deleteTransition(ItemInfo transitionInfo, int endTrack, QDomElement params, bool refresh);
void addTransition(const ItemInfo &transitionInfo, int endTrack, const QDomElement &params, bool refresh);
void deleteTransition(const ItemInfo &transitionInfo, int endTrack, QDomElement params, bool refresh);
void updateTransition(int track, GenTime pos, QDomElement oldTransition, QDomElement transition, bool updateTransitionWidget);
void moveTransition(GenTime oldpos, GenTime newpos);
void activateMonitor();
int duration() const;
void deleteSelectedClips();
......@@ -105,7 +104,7 @@ public:
void updateSceneFrameWidth();
//QList <TrackInfo> tracksList() const;
void setTool(PROJECTTOOL tool);
ClipItem *cutClip(ItemInfo info, GenTime cutTime, bool cut, EffectsList oldStack = EffectsList(), bool execute = true);
ClipItem *cutClip(const ItemInfo &info, const GenTime &cutTime, bool cut, const EffectsList &oldStack = EffectsList(), bool execute = true);
void slotSeekToPreviousSnap();
void slotSeekToNextSnap();
double getSnapPointForPos(double pos);
......
......@@ -34,8 +34,7 @@ BackupWidget::BackupWidget(const KUrl &projectUrl, const KUrl &projectFolder, co
// No url, means we opened the backup dialog from an empty project
info_label->setText(i18n("Showing all backup files in folder"));
m_projectWildcard = '*';
}
else {
} else {
info_label->setText(i18n("Showing backup files for %1", projectUrl.fileName()));
m_projectWildcard = projectUrl.fileName().section('.', 0, -2);
if (!projectId.isEmpty()) m_projectWildcard.append('-' + projectId);
......@@ -83,7 +82,7 @@ void BackupWidget::slotParseBackupFiles()
QString label;
for (int i = 0; i < resultList.count(); ++i) {
label = resultList.at(i).lastModified().toString(Qt::SystemLocaleLongDate);
if (m_projectWildcard.startsWith('*')) {
if (m_projectWildcard.startsWith(QLatin1Char('*'))) {
// Displaying all backup files, so add project name in the entries
label.prepend(resultList.at(i).fileName().section('-', 0, -7) + ".kdenlive - ");
}
......@@ -106,7 +105,8 @@ void BackupWidget::slotDisplayBackupPreview()
QString BackupWidget::selectedFile() const
{
if (!backup_list->currentItem()) return QString();
if (!backup_list->currentItem())
return QString();
return backup_list->currentItem()->data(Qt::UserRole).toString();
}
......
......@@ -125,7 +125,7 @@ DocClipBase::~DocClipBase()
m_videoTrackProducers.clear();
}
void DocClipBase::setZone(QPoint zone)
void DocClipBase::setZone(const QPoint &zone)
{
m_properties.insert("zone_in", QString::number(zone.x()));
m_properties.insert("zone_out", QString::number(zone.y()));
......@@ -467,7 +467,7 @@ GenTime DocClipBase::findNextSnapMarker(const GenTime & currTime)
return duration();
}
QString DocClipBase::markerComment(GenTime t) const
QString DocClipBase::markerComment(const GenTime &t) const
{
QList < CommentedTime >::ConstIterator itt = m_snapMarkers.begin();
while (itt != m_snapMarkers.end()) {
......@@ -1252,22 +1252,24 @@ bool DocClipBase::isPlaceHolder() const
return m_placeHolder;
}
void DocClipBase::addCutZone(int in, int out, QString desc)
void DocClipBase::addCutZone(int in, int out, const QString &desc)
{
CutZoneInfo info;
info.zone = QPoint(in, out);
info.description = desc;
for (int i = 0; i < m_cutZones.count(); ++i)
for (int i = 0; i < m_cutZones.count(); ++i) {
if (m_cutZones.at(i).zone == info.zone) {
return;
}
}
m_cutZones.append(info);
}
bool DocClipBase::hasCutZone(QPoint p) const
bool DocClipBase::hasCutZone(const QPoint &p) const
{
for (int i = 0; i < m_cutZones.count(); ++i)
if (m_cutZones.at(i).zone == p) return true;
if (m_cutZones.at(i).zone == p)
return true;
return false;
}
......@@ -1386,7 +1388,7 @@ void DocClipBase::setAnalysisData(const QString &name, const QString &data, int
}
}
const QString DocClipBase::geometryWithOffset(QString data, int offset)
const QString DocClipBase::geometryWithOffset(const QString &data, int offset)
{
if (offset == 0) return data;
Mlt::Profile *profile = m_baseTrackProducers.at(0)->profile();
......
......@@ -172,7 +172,7 @@ public:
void deleteProducers();
/** Set default play zone for clip monitor */
void setZone(QPoint zone);
void setZone(const QPoint &zone);
/** Get default play zone for clip monitor */
QPoint zone() const;
......@@ -181,8 +181,8 @@ public:
void setValid();
static QString getHash(const QString &path);
void addCutZone(int in, int out, QString desc = QString());
bool hasCutZone(QPoint p) const;
void addCutZone(int in, int out, const QString &desc = QString());
bool hasCutZone(const QPoint &p) const;
void removeCutZone(int in, int out);
QList <CutZoneInfo> cutZones() const;
void updateCutZone(int oldin, int oldout, int in, int out, QString desc = QString());
......@@ -261,7 +261,7 @@ private: // Private attributes
/** @brief Create another instance of a producer. */
Mlt::Producer *cloneProducer(Mlt::Producer *source);
/** @brief Offset all keyframes of a geometry. */
const QString geometryWithOffset(QString data, int offset);
const QString geometryWithOffset(const QString &data, int offset);
public slots:
......@@ -274,11 +274,11 @@ public slots:
void editSnapMarker(const GenTime & time, const QString &comment);
void addSnapMarker(const CommentedTime &marker);
QList < GenTime > snapMarkers() const;
QString markerComment(GenTime t) const;
QString markerComment(const GenTime &t) const;
CommentedTime markerAt(GenTime t) const;
void setClipThumbFrame(const uint &ix);
uint getClipThumbFrame() const;
void setProperties(QMap <QString, QString> properties);
void setProperties(QMap<QString, QString> properties);
void setMetadata(QMap <QString, QString> properties, QString tool = QString());
void slotExtractImage(QList <int> frames);
......
......@@ -41,13 +41,13 @@ public:
protected:
//virtual void mouseDoubleClickEvent(QMouseEvent * event);
virtual void mousePressEvent(QMouseEvent * event);
virtual void mouseReleaseEvent(QMouseEvent *event);
virtual void mouseMoveEvent(QMouseEvent *event);
void mousePressEvent(QMouseEvent * event);
void mouseReleaseEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event);
//virtual void paintEvent(QPaintEvent *event);
virtual void wheelEvent(QWheelEvent * event);
virtual void focusInEvent(QFocusEvent *e);
virtual void focusOutEvent(QFocusEvent *e);
void wheelEvent(QWheelEvent * event);
void focusInEvent(QFocusEvent *e);
void focusOutEvent(QFocusEvent *e);
private:
QPoint m_dragStartPosition;
......
......@@ -36,11 +36,11 @@ public:
virtual bool isGroup() const = 0;
signals:
void addEffect(QDomElement e);
void addEffect(const QDomElement &e);
/** @brief Move effects in the stack one step up or down. */
void changeEffectPosition(QList <int>, bool upwards);
void changeEffectPosition(const QList <int>&, bool upwards);
/** @brief Move effects in the stack. */
void moveEffect(QList <int> current_pos, int new_pos, int groupIndex, QString groupName);
void moveEffect(const QList <int> &current_pos, int new_pos, int groupIndex, const QString &groupName);
/** @brief An effect was saved, trigger effect list reload. */
void reloadEffects();
......
......@@ -122,22 +122,22 @@ protected:
virtual void dropEvent(QDropEvent *event);
signals:
void parameterChanged(const QDomElement, const QDomElement, int);
void parameterChanged(const QDomElement &, const QDomElement&, int);
void syncEffectsPos(int);
void effectStateChanged(bool, int ix, bool effectNeedsMonitorScene);
void deleteEffect(const QDomElement);
void deleteEffect(const QDomElement &);
void activateEffect(int);
void checkMonitorPosition(int);
void seekTimeline(int);
/** @brief Start an MLT filter job on this clip. */
void startFilterJob(QString filterName, QString filterParams, QString consumer, QString consumerParams, const QMap <QString, QString>extraParams);
void startFilterJob(const QString &filterName, const QString &filterParams, const QString &consumer, const QString &consumerParams, const QMap <QString, QString> &extraParams);
/** @brief An effect was reset, trigger param reload. */
void resetEffect(int ix);
/** @brief Ask for creation of a group. */
void createGroup(int ix);
void unGroup(CollapsibleEffect *);
void createRegion(int, KUrl);
void deleteGroup(QDomDocument);
void createRegion(int, const KUrl&);
void deleteGroup(const QDomDocument&);
void importClipKeyframes();
};
......
......@@ -36,12 +36,11 @@
class MyEditableLabel : public QLineEdit
{
Q_OBJECT
public:
MyEditableLabel(QWidget * parent = 0);
explicit MyEditableLabel(QWidget * parent = 0);
protected:
virtual void mouseDoubleClickEvent( QMouseEvent *e);
void mouseDoubleClickEvent( QMouseEvent *e);
};
......@@ -103,7 +102,7 @@ protected:
virtual void dropEvent(QDropEvent *event);
signals:
void deleteGroup(QDomDocument);
void deleteGroup(const QDomDocument&);
void unGroup(CollapsibleGroup *);
void groupRenamed(CollapsibleGroup *);
......
......@@ -579,7 +579,7 @@ CollapsibleEffect *EffectStackView2::getEffectByIndex(int ix)
return NULL;
}
void EffectStackView2::slotUpdateEffectParams(const QDomElement old, const QDomElement e, int ix)
void EffectStackView2::slotUpdateEffectParams(const QDomElement &old, const QDomElement &e, int ix)
{
if (m_effectMetaInfo.trackMode)
emit updateEffect(NULL, m_trackindex, old, e, ix,false);
......@@ -626,7 +626,7 @@ void EffectStackView2::slotDeleteGroup(QDomDocument doc)
emit removeEffect(clip, ix, effects.at(i).toElement());
}
void EffectStackView2::slotDeleteEffect(const QDomElement effect)
void EffectStackView2::slotDeleteEffect(const QDomElement &effect)
{
if (m_effectMetaInfo.trackMode)
emit removeEffect(NULL, m_trackindex, effect);
......@@ -634,12 +634,12 @@ void EffectStackView2::slotDeleteEffect(const QDomElement effect)
emit removeEffect(m_clipref, -1, effect);
}
void EffectStackView2::slotAddEffect(QDomElement effect)
void EffectStackView2::slotAddEffect(const QDomElement &effect)
{
emit addEffect(m_clipref, effect);
}
void EffectStackView2::slotMoveEffectUp(QList <int> indexes, bool up)
void EffectStackView2::slotMoveEffectUp(const QList<int> &indexes, bool up)
{
if (up && indexes.first() <= 1) return;
if (!up && indexes.last() >= m_currentEffectList.count()) return;
......
......@@ -152,15 +152,15 @@ private slots:
/** @brief Checks whether the monitor scene has to be displayed. */
void slotCheckMonitorPosition(int renderPos);
void slotUpdateEffectParams(const QDomElement old, const QDomElement e, int ix);
void slotUpdateEffectParams(const QDomElement &old, const QDomElement& e, int ix);
/** @brief Move an effect in the stack.
* @param indexes The list of effect index in the stack
* @param up true if we want to move effect up, false for down */
void slotMoveEffectUp(QList <int> indexes, bool up);
void slotMoveEffectUp(const QList <int> &indexes, bool up);
/** @brief Delete an effect in the stack. */
void slotDeleteEffect(const QDomElement effect);
void slotDeleteEffect(const QDomElement &effect);
/** @brief Delete all effect in a group. */
void slotDeleteGroup(QDomDocument doc);
......@@ -197,7 +197,7 @@ private slots:
void slotUnGroup(CollapsibleGroup* group);
/** @brief Add en effect to selected clip */
void slotAddEffect(QDomElement effect);
void slotAddEffect(const QDomElement &effect);
/** @brief Enable / disable all effects for the clip */
void slotCheckAll(int state);
......@@ -212,26 +212,26 @@ private slots:
void slotRenameGroup(CollapsibleGroup *group);
signals:
void removeEffect(ClipItem*, int, QDomElement);
void removeEffect(ClipItem*, int, const QDomElement&);
/** Parameters for an effect changed, update the filter in playlist */
void updateEffect(ClipItem*, int, QDomElement, QDomElement, int,bool);
void updateEffect(ClipItem*, int, const QDomElement&, const QDomElement &, int,bool);
/** An effect in stack was moved, we need to regenerate
all effects for this clip in the playlist */
void refreshEffectStack(ClipItem *);
/** Enable or disable an effect */
void changeEffectState(ClipItem*, int, QList <int>, bool);
void changeEffectState(ClipItem*, int, const QList <int>&, bool);
/** An effect in stack was moved */
void changeEffectPosition(ClipItem*, int, QList <int>, int);
void changeEffectPosition(ClipItem*, int, const QList <int>&, int);
/** an effect was saved, reload list */
void reloadEffects();
/** An effect with position parameter was changed, seek */
void seekTimeline(int);
/** The region effect for current effect was changed */
void updateClipRegion(ClipItem*, int, QString);
void updateClipRegion(ClipItem*, int, const QString&);
void displayMessage(const QString&, int);
void showComments(bool show);
void startFilterJob(ItemInfo info, const QString &clipId, const QString &filterName, const QString &filterParams, const QString &consumer, const QString &consumerParams, const QMap<QString, QString> &extraParams);
void addEffect(ClipItem*,QDomElement);
void startFilterJob(const ItemInfo &info, const QString &clipId, const QString &filterName, const QString &filterParams, const QString &consumer, const QString &consumerParams, const QMap<QString, QString> &extraParams);
void addEffect(ClipItem*,const QDomElement &);
void importClipKeyframes(GRAPHICSRECTITEM = AVWIDGET);
};
......
......@@ -50,8 +50,8 @@ public:
explicit MySpinBox(QWidget * parent = 0);
protected:
virtual void focusInEvent(QFocusEvent*);
virtual void focusOutEvent(QFocusEvent*);
void focusInEvent(QFocusEvent*);
void focusOutEvent(QFocusEvent*);
};
class ParameterContainer : public QObject
......@@ -106,7 +106,7 @@ signals:
void seekTimeline(int);
void showComments(bool);
/** @brief Start an MLT filter job on this clip. */
void startFilterJob(QString filterName, QString filterParams, QString consumer, QString consumerParams, const QMap <QString, QString>extra);
void startFilterJob(const QString &filterName, const QString &filterParams, const QString &consumer, const QString &consumerParams, const QMap <QString, QString> &extra);
/** @brief Request import of keyframes from clip data. */
void importClipKeyframes();
/** @brie