mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-07 11:22:45 +01:00
39 lines
610 B
C++
39 lines
610 B
C++
#ifndef _RWVIEWER_VIEWERINTERFACE_HPP_
|
|
#define _RWVIEWER_VIEWERINTERFACE_HPP_
|
|
#include <engine/GameWorld.hpp>
|
|
|
|
#include <ViewerWidget.hpp>
|
|
|
|
#include <QWidget>
|
|
|
|
class ViewerInterface : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
ViewerInterface(QWidget* parent = 0, Qt::WindowFlags f = 0)
|
|
: QWidget(parent, f)
|
|
, m_world(nullptr)
|
|
{
|
|
|
|
}
|
|
|
|
virtual void setViewerWidget( ViewerWidget* widget ) = 0;
|
|
|
|
GameWorld* world() { return m_world; }
|
|
|
|
protected:
|
|
virtual void worldChanged() { }
|
|
|
|
public slots:
|
|
void showData(GameWorld* world)
|
|
{
|
|
m_world = world;
|
|
worldChanged();
|
|
}
|
|
|
|
private:
|
|
GameWorld* m_world;
|
|
};
|
|
|
|
#endif
|