1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-07 11:22:45 +01:00
openrw/rwviewer/ObjectViewer.hpp

51 lines
832 B
C++
Raw Normal View History

#pragma once
#ifndef _OBJECTVIEWER_HPP_
#define _OBJECTVIEWER_HPP_
#include <engine/GameData.hpp>
#include <engine/GameWorld.hpp>
#include <QGLWidget>
#include <QTableView>
#include <QLabel>
2014-09-21 17:13:01 +02:00
#include <QGridLayout>
#include <QHBoxLayout>
class ViewerWidget;
class ObjectViewer : public QWidget
{
Q_OBJECT
QTableView* objectList;
GameWorld* _world;
2014-09-21 17:13:01 +02:00
QHBoxLayout* mainLayout;
QGridLayout* infoLayout;
ViewerWidget* previewWidget;
QLabel* previewID;
QLabel* previewModel;
QLabel* previewClass;
public:
ObjectViewer(ViewerWidget *viewer = 0, QWidget* parent = 0, Qt::WindowFlags f = 0);
GameWorld* world()
{
return _world;
}
2014-09-21 17:13:01 +02:00
void setViewerWidget( ViewerWidget* widget );
public slots:
void showItem(qint16 item);
void showData(GameWorld* world);
private slots:
void showItem(QModelIndex model);
};
#endif