tahoma2d/toonz/sources/include/tw/logviewer.h

44 lines
783 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 TNZ_LOGVIEWER_INCLUDED
#define TNZ_LOGVIEWER_INCLUDED
#include "tw/popup.h"
#undef DVAPI
#undef DVVAR
#ifdef TWIN_EXPORTS
#define DVAPI DV_EXPORT_API
#define DVVAR DV_EXPORT_VAR
#else
#define DVAPI DV_IMPORT_API
#define DVVAR DV_IMPORT_VAR
#endif
2016-06-15 18:43:10 +12:00
class DVAPI TLogViewer : public TWidget {
class Data;
Data *m_data;
2016-03-19 06:57:51 +13:00
public:
2016-06-15 18:43:10 +12:00
TLogViewer(TWidget *parent, string name = "logViewer");
~TLogViewer();
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
void configureNotify(const TDimension &);
void draw();
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
void activate(bool on);
2016-03-19 06:57:51 +13:00
};
2016-06-15 18:43:10 +12:00
class DVAPI TLogViewerPopup : public TPopup {
TLogViewer *m_viewer;
2016-03-19 06:57:51 +13:00
public:
2016-06-15 18:43:10 +12:00
TLogViewerPopup(TWidget *parent, string name = "logViewerPopup");
~TLogViewerPopup();
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
void configureNotify(const TDimension &);
TDimension getPreferredSize() const;
2016-03-19 06:57:51 +13:00
};
#endif