mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-29 05:45:32 +00:00
43 lines
942 B
C++
43 lines
942 B
C++
|
#ifndef OPENCS_VIEW_PREVIEWWIDGET_H
|
||
|
#define OPENCS_VIEW_PREVIEWWIDGET_H
|
||
|
|
||
|
#include <components/nifogre/ogrenifloader.hpp>
|
||
|
|
||
|
#include "scenewidget.hpp"
|
||
|
|
||
|
#include "navigationorbit.hpp"
|
||
|
|
||
|
namespace CSMWorld
|
||
|
{
|
||
|
class Data;
|
||
|
}
|
||
|
|
||
|
namespace CSVRender
|
||
|
{
|
||
|
class PreviewWidget : public SceneWidget
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
const CSMWorld::Data& mData;
|
||
|
CSVRender::NavigationOrbit mOrbit;
|
||
|
NifOgre::ObjectScenePtr mObject;
|
||
|
|
||
|
void setup (const std::string& id);
|
||
|
///< \param id ID of the referenceable to be viewed
|
||
|
|
||
|
public:
|
||
|
|
||
|
PreviewWidget (const CSMWorld::Data& data, const std::string& referenceableId,
|
||
|
QWidget *parent = 0);
|
||
|
|
||
|
PreviewWidget (const CSMWorld::Data& data, const std::string& referenceableId,
|
||
|
const std::string& referenceId, QWidget *parent = 0);
|
||
|
|
||
|
signals:
|
||
|
|
||
|
void closeRequest();
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif
|