Shinya Kitaoka 810553
#pragma once
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifndef PLTGIZMOPOPUP_H
Toshihiro Shimizu 890ddd
#define PLTGIZMOPOPUP_H
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "toonzqt/dvdialog.h"
Toshihiro Shimizu 890ddd
#include "tgeometry.h"
Toshihiro Shimizu 890ddd
#include "toonzqt/doublefield.h"
Toshihiro Shimizu 890ddd
#include "toonzqt/colorfield.h"
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//=============================================================================
Toshihiro Shimizu 890ddd
// ValueAdjuster
Toshihiro Shimizu 890ddd
//-----------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Shinya Kitaoka d1f6c4
class ValueAdjuster final : public QWidget {
Shinya Kitaoka 120a6e
  Q_OBJECT
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  DVGui::DoubleLineEdit *m_valueLineEdit;
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
public:
shun-iwasawa 443318
  ValueAdjuster(QWidget *parent = 0, Qt::WindowFlags flags = Qt::WindowFlags());
Shinya Kitaoka 120a6e
  ~ValueAdjuster();
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
protected slots:
Shinya Kitaoka 120a6e
  void onClickedPlus();
Shinya Kitaoka 120a6e
  void onClickedMinus();
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
signals:
Shinya Kitaoka 120a6e
  void adjust(double factor);
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//=============================================================================
Toshihiro Shimizu 890ddd
// ValueShifter
Toshihiro Shimizu 890ddd
//-----------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Shinya Kitaoka d1f6c4
class ValueShifter final : public QWidget {
Shinya Kitaoka 120a6e
  Q_OBJECT
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  DVGui::DoubleLineEdit *m_valueLineEdit;
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
public:
shun-iwasawa 443318
  ValueShifter(bool isHue, QWidget *parent = 0,
shun-iwasawa 443318
               Qt::WindowFlags flags = Qt::WindowFlags());
Shinya Kitaoka 120a6e
  ~ValueShifter();
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
protected slots:
Shinya Kitaoka 120a6e
  void onClickedPlus();
Shinya Kitaoka 120a6e
  void onClickedMinus();
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
signals:
Shinya Kitaoka 120a6e
  void adjust(double factor);
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//=============================================================================
Toshihiro Shimizu 890ddd
// ColorFader
Toshihiro Shimizu 890ddd
//-----------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
// TODO: spostare il colorfield qui dentro
Toshihiro Shimizu 890ddd
Shinya Kitaoka d1f6c4
class ColorFader final : public QWidget {
Shinya Kitaoka 120a6e
  Q_OBJECT
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  DVGui::DoubleLineEdit *m_valueLineEdit;
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
public:
shun-iwasawa 443318
  ColorFader(QString name = "", QWidget *parent = 0,
shun-iwasawa 443318
             Qt::WindowFlags flags = Qt::WindowFlags());
Shinya Kitaoka 120a6e
  ~ColorFader();
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
protected slots:
Shinya Kitaoka 120a6e
  void onClicked();
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
signals:
Shinya Kitaoka 120a6e
  void valueChanged(double factor);
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//=============================================================================
Toshihiro Shimizu 890ddd
// PltGizmoPopup
Toshihiro Shimizu 890ddd
//-----------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Shinya Kitaoka d1f6c4
class PltGizmoPopup final : public DVGui::Dialog {
Shinya Kitaoka 120a6e
  Q_OBJECT
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  DVGui::ColorField *m_colorFld;
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
public:
Shinya Kitaoka 120a6e
  PltGizmoPopup();
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  ~PltGizmoPopup();
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
public slots:
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  void adjustV(double p);
Shinya Kitaoka 120a6e
  void adjustS(double p);
Shinya Kitaoka 120a6e
  void adjustH(double p);
Shinya Kitaoka 120a6e
  void adjustT(double p);
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  void shiftV(double p);
Shinya Kitaoka 120a6e
  void shiftS(double p);
Shinya Kitaoka 120a6e
  void shiftH(double p);
Shinya Kitaoka 120a6e
  void shiftT(double p);
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  void zeroMatte();
Shinya Kitaoka 120a6e
  void fullMatte();
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  void onBlend();
Shinya Kitaoka 120a6e
  void onFade(double p);
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
#endif  // PLTGIZMOPOPUP_H