Shinya Kitaoka 810553
#pragma once
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifndef FUNCTION_KEYFRAME_NAVIGATOR_INCLUDED
Toshihiro Shimizu 890ddd
#define FUNCTION_KEYFRAME_NAVIGATOR_INCLUDED
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "toonzqt/keyframenavigator.h"
Toshihiro Shimizu 890ddd
#include "tdoubleparam.h"
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include <qtoolbar></qtoolbar>
Toshihiro Shimizu 890ddd
class FunctionPanel;
Toshihiro Shimizu 890ddd
class TFrameHandle;
Toshihiro Shimizu 890ddd
class FrameNavigator;
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
class DVAPI FunctionKeyframeNavigator : public KeyframeNavigator {
Shinya Kitaoka 120a6e
  Q_OBJECT
Shinya Kitaoka 120a6e
  TDoubleParamP m_curve;
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
public:
Shinya Kitaoka 120a6e
  FunctionKeyframeNavigator(QWidget *parent);
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  void setCurve(TDoubleParam *curve);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
protected:
Shinya Kitaoka 120a6e
  bool hasNext() const;
Shinya Kitaoka 120a6e
  bool hasPrev() const;
Shinya Kitaoka 120a6e
  bool hasKeyframes() const;
Shinya Kitaoka 120a6e
  bool isKeyframe() const;
Shinya Kitaoka 120a6e
  bool isFullKeyframe() const { return isKeyframe(); }
Shinya Kitaoka 120a6e
  void toggle();
Shinya Kitaoka 120a6e
  void goNext();
Shinya Kitaoka 120a6e
  void goPrev();
Shinya Kitaoka 120a6e
Shinya Kitaoka 120a6e
  void showEvent(QShowEvent *);
Shinya Kitaoka 120a6e
  void hideEvent(QHideEvent *);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
public slots:
Shinya Kitaoka 120a6e
  void onFrameSwitched() { update(); }
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#endif