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

42 lines
723 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 final : public DVGui::Dialog {
2016-06-15 18:43:10 +12:00
Q_OBJECT
std::unique_ptr<InfoViewerImp> m_imp;
2016-03-19 06:57:51 +13:00
public:
2016-06-15 18:43:10 +12:00
InfoViewer(QWidget *parent = 0);
~InfoViewer();
2016-03-19 06:57:51 +13:00
protected:
2016-06-19 20:06:29 +12:00
void hideEvent(QHideEvent *) override;
2016-03-19 06:57:51 +13:00
protected slots:
2016-06-15 18:43:10 +12:00
void onSliderChanged(bool);
2016-03-19 06:57:51 +13:00
public slots:
2016-06-15 18:43:10 +12:00
void setItem(const TLevelP &level, TPalette *palette, const TFilePath &path);
2016-03-19 06:57:51 +13:00
};
#endif