2016-05-17 03:04:11 +12:00
|
|
|
#pragma once
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
#ifndef FUNCTION_KEYFRAME_NAVIGATOR_INCLUDED
|
|
|
|
#define FUNCTION_KEYFRAME_NAVIGATOR_INCLUDED
|
|
|
|
|
|
|
|
#include "toonzqt/keyframenavigator.h"
|
|
|
|
#include "tdoubleparam.h"
|
|
|
|
|
|
|
|
#include <QToolBar>
|
|
|
|
class FunctionPanel;
|
|
|
|
class TFrameHandle;
|
|
|
|
class FrameNavigator;
|
|
|
|
|
2016-06-29 18:17:12 +12:00
|
|
|
class DVAPI FunctionKeyframeNavigator final : public KeyframeNavigator {
|
2016-06-15 18:43:10 +12:00
|
|
|
Q_OBJECT
|
|
|
|
TDoubleParamP m_curve;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
public:
|
2016-06-15 18:43:10 +12:00
|
|
|
FunctionKeyframeNavigator(QWidget *parent);
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
void setCurve(TDoubleParam *curve);
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
protected:
|
2016-06-19 20:06:29 +12:00
|
|
|
bool hasNext() const override;
|
|
|
|
bool hasPrev() const override;
|
|
|
|
bool hasKeyframes() const override;
|
|
|
|
bool isKeyframe() const override;
|
|
|
|
bool isFullKeyframe() const override { return isKeyframe(); }
|
|
|
|
void toggle() override;
|
|
|
|
void goNext() override;
|
|
|
|
void goPrev() override;
|
|
|
|
|
|
|
|
void showEvent(QShowEvent *) override;
|
|
|
|
void hideEvent(QHideEvent *) override;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
public slots:
|
2016-06-15 18:43:10 +12:00
|
|
|
void onFrameSwitched() { update(); }
|
2016-03-19 06:57:51 +13:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|