began UI for keyframing

Largely extending the existing NodeParamView with functionality from the
previous release.
This commit is contained in:
itsmattkc
2019-12-25 01:20:46 +11:00
parent aac8c5ec17
commit dc6d498da8
19 changed files with 454 additions and 2 deletions
+26
View File
@@ -0,0 +1,26 @@
#ifndef KEYFRAMEVIEW_H
#define KEYFRAMEVIEW_H
#include <QGraphicsView>
#include "common/rational.h"
#include "keyframeviewitem.h"
#include "widget/timeruler/timeruler.h"
class KeyframeView : public QWidget
{
public:
KeyframeView(QWidget* parent = nullptr);
void AddKeyframe(const rational& time, int y);
void SetTimebase(const rational& timebase);
private:
TimeRuler* ruler_;
QGraphicsView* view_;
QGraphicsScene scene_;
};
#endif // KEYFRAMEVIEW_H