This comes in the form of changing the vertical scale in the CurveView and adjusting all track heights in the Timeline.
42 lines
718 B
C++
42 lines
718 B
C++
#ifndef CURVEPANEL_H
|
|
#define CURVEPANEL_H
|
|
|
|
#include "widget/curvewidget/curvewidget.h"
|
|
#include "widget/panel/panel.h"
|
|
|
|
class CurvePanel : public PanelWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
CurvePanel(QWidget* parent);
|
|
|
|
public slots:
|
|
void SetInput(NodeInput* input);
|
|
|
|
void SetTimebase(const rational& timebase);
|
|
|
|
void SetTime(const int64_t& timestamp);
|
|
|
|
virtual void ZoomIn() override;
|
|
|
|
virtual void ZoomOut() override;
|
|
|
|
virtual void IncreaseTrackHeight() override;
|
|
|
|
virtual void DecreaseTrackHeight() override;
|
|
|
|
signals:
|
|
void TimeChanged(const int64_t& timestamp);
|
|
|
|
protected:
|
|
virtual void changeEvent(QEvent* e) override;
|
|
|
|
private:
|
|
void Retranslate();
|
|
|
|
CurveWidget* widget_;
|
|
|
|
};
|
|
|
|
#endif // CURVEPANEL_H
|