2018-10-25 00:19:38 +00:00
|
|
|
#ifndef DUST3D_MOTION_CLIP_WIDGET_H
|
|
|
|
#define DUST3D_MOTION_CLIP_WIDGET_H
|
2018-10-23 14:57:47 +00:00
|
|
|
#include <QFrame>
|
2018-10-25 00:19:38 +00:00
|
|
|
#include "document.h"
|
2018-10-23 14:57:47 +00:00
|
|
|
|
|
|
|
class MotionClipWidget : public QFrame
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
signals:
|
|
|
|
void modifyInterpolation();
|
|
|
|
|
|
|
|
public:
|
2018-10-25 00:19:38 +00:00
|
|
|
MotionClipWidget(const Document *document, QWidget *parent=nullptr);
|
2018-10-23 14:57:47 +00:00
|
|
|
QSize preferredSize();
|
|
|
|
static QSize maxSize();
|
|
|
|
|
|
|
|
public slots:
|
2018-10-25 00:19:38 +00:00
|
|
|
void setClip(MotionClip clip);
|
2018-10-23 14:57:47 +00:00
|
|
|
void reload();
|
|
|
|
void updateCheckedState(bool checked);
|
|
|
|
|
|
|
|
private:
|
2018-10-25 00:19:38 +00:00
|
|
|
const Document *m_document = nullptr;
|
|
|
|
MotionClip m_clip;
|
2018-10-23 14:57:47 +00:00
|
|
|
QWidget *m_reloadToWidget = nullptr;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|