Shinya Kitaoka 810553
#pragma once
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifndef STYLEINDEXLINEEDIT_H
Toshihiro Shimizu 890ddd
#define STYLEINDEXLINEEDIT_H
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "tcommon.h"
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "toonzqt/lineedit.h"
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#undef DVAPI
Toshihiro Shimizu 890ddd
#undef DVVAR
Toshihiro Shimizu 890ddd
#ifdef TOONZQT_EXPORTS
Toshihiro Shimizu 890ddd
#define DVAPI DV_EXPORT_API
Toshihiro Shimizu 890ddd
#define DVVAR DV_EXPORT_VAR
Toshihiro Shimizu 890ddd
#else
Toshihiro Shimizu 890ddd
#define DVAPI DV_IMPORT_API
Toshihiro Shimizu 890ddd
#define DVVAR DV_IMPORT_VAR
Toshihiro Shimizu 890ddd
#endif
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
// forward declaration
Toshihiro Shimizu 890ddd
class TPaletteHandle;
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//=============================================================================
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
namespace DVGui {
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
class DVAPI StyleIndexLineEdit : public LineEdit {
shun-iwasawa 102e06
  Q_OBJECT
shun-iwasawa 102e06
Shinya Kitaoka 120a6e
  TPaletteHandle *m_pltHandle;
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
public:
Shinya Kitaoka 120a6e
  StyleIndexLineEdit();
Shinya Kitaoka 120a6e
  ~StyleIndexLineEdit();
Shinya Kitaoka 120a6e
Shinya Kitaoka 120a6e
  void setPaletteHandle(TPaletteHandle *pltHandle) { m_pltHandle = pltHandle; }
Shinya Kitaoka 120a6e
  TPaletteHandle *getPaletteHandle() { return m_pltHandle; }
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
protected:
Shinya Kitaoka 473e70
  void paintEvent(QPaintEvent *pe) override;
Toshihiro Shimizu 890ddd
};
Shinya Kitaoka 120a6e
}  // namspace
Toshihiro Shimizu 890ddd
MichaƂ Janiszewski 0585ee
#endif