Files
oak-editor/app/widget/keyframeview/keyframeview.h
T
itsmattkc dc6d498da8 began UI for keyframing
Largely extending the existing NodeParamView with functionality from the
previous release.
2019-12-25 01:20:46 +11:00

27 lines
469 B
C++

#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