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

45 lines
752 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 INFOVIEWER_H
#define INFOVIEWER_H
2016-04-14 22:15:09 +12:00
#include <memory>
2016-03-19 06:57:51 +13:00
#include "toonzqt/dvdialog.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
class TLevelP;
class TFilePath;
class TPalette;
class InfoViewerImp;
class DVAPI InfoViewer : public DVGui::Dialog
{
Q_OBJECT
2016-04-14 22:15:09 +12:00
std::unique_ptr<InfoViewerImp> m_imp;
2016-03-19 06:57:51 +13:00
QWidget *m_parent;
public:
InfoViewer(QWidget *parent = 0);
~InfoViewer();
protected:
void hideEvent(QHideEvent *);
void showEvent(QShowEvent *);
protected slots:
void onSliderChanged(bool);
public slots:
void setItem(const TLevelP &level, TPalette *palette, const TFilePath &path);
};
#endif