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

43 lines
812 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 STYLEINDEXLINEEDIT_H
#define STYLEINDEXLINEEDIT_H
#include "tcommon.h"
#include "toonzqt/lineedit.h"
#undef DVAPI
#undef DVVAR
#ifdef TOONZQT_EXPORTS
#define DVAPI DV_EXPORT_API
#define DVVAR DV_EXPORT_VAR
#else
#define DVAPI DV_IMPORT_API
#define DVVAR DV_IMPORT_VAR
#endif
// forward declaration
class TPaletteHandle;
//=============================================================================
2016-06-15 18:43:10 +12:00
namespace DVGui {
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
class DVAPI StyleIndexLineEdit : public LineEdit {
TPaletteHandle *m_pltHandle;
2016-03-19 06:57:51 +13:00
public:
2016-06-15 18:43:10 +12:00
StyleIndexLineEdit();
~StyleIndexLineEdit();
void setPaletteHandle(TPaletteHandle *pltHandle) { m_pltHandle = pltHandle; }
TPaletteHandle *getPaletteHandle() { return m_pltHandle; }
2016-03-19 06:57:51 +13:00
protected:
2016-06-19 20:06:29 +12:00
void paintEvent(QPaintEvent *pe) override;
2016-03-19 06:57:51 +13:00
};
2016-06-15 18:43:10 +12:00
} // namspace
2016-03-19 06:57:51 +13:00
#endif