began UI for keyframing
Largely extending the existing NodeParamView with functionality from the previous release.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user