#include <QDomElement>
#include <QGraphicsSceneMouseEvent>
#include <QTimer>
+#include <QFuture>
#include "definitions.h"
#include "gentime.h"
const QStyleOptionGraphicsItem *option,
QWidget *);
virtual int type() const;
- void resizeStart(int posx);
+ void resizeStart(int posx, bool size = true);
void resizeEnd(int posx);
OPERATIONTYPE operationMode(QPointF pos);
const QString clipProducer() const;
QString clipName() const;
void setClipName(const QString &name);
QDomElement xml() const;
+ QDomElement itemXml() const;
ClipItem *clone(ItemInfo info) const;
const EffectsList effectList() const;
void setFadeOut(int pos);
void setFadeIn(int pos);
+ void setFades(int in, int out);
/** Give a string list of the clip's effect names */
QStringList effectNames();
/** Add an effect to the clip and return the parameters that will be passed to Mlt */
bool isAudioOnly() const;
/** Called when clip start is resized, adjust keyframes values */
bool checkEffectsKeyframesPos(const int previous, const int current, bool fromStart);
+ void insertKeyframe(QDomElement effect, int pos, int val);
+ void movedKeyframe(QDomElement effect, int oldpos, int newpos, double value);
+ void updateKeyframes(QDomElement effect);
protected:
//virtual void mouseMoveEvent(QGraphicsSceneMouseEvent * event);
QPixmap m_startPix;
QPixmap m_endPix;
+
bool m_hasThumbs;
QTimer m_startThumbTimer;
QTimer m_endThumbTimer;
QPixmap m_videoPix;
QPixmap m_audioPix;
+ void doGetIntraThumbs(QPainter *painter, const QPointF startPos, int offset, int start, int end);
private slots:
void slotGetStartThumb();