1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-26 04:12:41 +01:00
openrw/rwviewer/views/ModelViewer.hpp
Daniel Evans 6f9c3db52e Overahaul of rwviewer to simplify the code and improve usability
- Shared ViewerWidget has been removed. Now multiple instances exist
2018-01-27 21:44:18 +00:00

47 lines
792 B
C++

#pragma once
#ifndef _MODELVIEWER_HPP_
#define _MODELVIEWER_HPP_
#include <engine/GameData.hpp>
#include <engine/GameWorld.hpp>
#include "ViewerInterface.hpp"
#include <QLabel>
#include <QLayout>
#include <QSplitter>
#include <QTreeView>
#include <QVBoxLayout>
class ViewerWidget;
class Clump;
class ModelFramesWidget;
class ModelViewer : public ViewerInterface {
Q_OBJECT
ClumpPtr viewing;
QSplitter* mainSplit;
QVBoxLayout* mainLayout;
ViewerWidget* viewerWidget;
ModelFramesWidget* frames;
public:
ModelViewer(QWidget* parent = 0, Qt::WindowFlags f = 0);
public slots:
/**
* Display a raw model
*/
void showModel(ClumpPtr model);
/**
* Display a game object's model
*/
void showObject(uint16_t object);
};
#endif