mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-22 10:22:52 +01:00
51 lines
832 B
C++
51 lines
832 B
C++
#pragma once
|
|
#ifndef _OBJECTVIEWER_HPP_
|
|
#define _OBJECTVIEWER_HPP_
|
|
#include <engine/GameData.hpp>
|
|
#include <engine/GameWorld.hpp>
|
|
#include <QGLWidget>
|
|
#include <QTableView>
|
|
#include <QLabel>
|
|
#include <QGridLayout>
|
|
#include <QHBoxLayout>
|
|
|
|
class ViewerWidget;
|
|
|
|
class ObjectViewer : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
QTableView* objectList;
|
|
GameWorld* _world;
|
|
|
|
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;
|
|
}
|
|
|
|
void setViewerWidget( ViewerWidget* widget );
|
|
|
|
public slots:
|
|
|
|
void showItem(qint16 item);
|
|
|
|
void showData(GameWorld* world);
|
|
|
|
private slots:
|
|
|
|
void showItem(QModelIndex model);
|
|
|
|
};
|
|
|
|
#endif
|