tahoma2d/toonz/sources/include/toonzqt/functionkeyframenavigator.h

41 lines
900 B
C
Raw Normal View History

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;
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