1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00
OpenMW/apps/opencs/view/render/previewwidget.hpp

56 lines
1.1 KiB
C++
Raw Normal View History

2014-03-16 12:44:01 +01:00
#ifndef OPENCS_VIEW_PREVIEWWIDGET_H
#define OPENCS_VIEW_PREVIEWWIDGET_H
#include "scenewidget.hpp"
#include "object.hpp"
2014-03-16 12:44:01 +01:00
class QModelIndex;
namespace VFS
{
class Manager;
}
2014-03-16 12:44:01 +01:00
namespace CSMWorld
{
class Data;
}
namespace CSVRender
{
class PreviewWidget : public SceneWidget
{
Q_OBJECT
CSMWorld::Data& mData;
CSVRender::Object mObject;
2014-03-16 12:44:01 +01:00
public:
PreviewWidget (CSMWorld::Data& data, const std::string& id, bool referenceable,
2020-11-13 11:39:47 +04:00
QWidget *parent = nullptr);
2014-03-16 12:44:01 +01:00
signals:
void closeRequest();
void referenceableIdChanged (const std::string& id);
private slots:
2014-06-27 10:35:00 +02:00
void referenceableDataChanged (const QModelIndex& topLeft,
const QModelIndex& bottomRight);
2014-06-27 10:35:00 +02:00
void referenceableAboutToBeRemoved (const QModelIndex& parent, int start, int end);
2014-06-27 10:35:00 +02:00
void referenceDataChanged (const QModelIndex& topLeft, const QModelIndex& bottomRight);
2014-06-27 10:35:00 +02:00
void referenceAboutToBeRemoved (const QModelIndex& parent, int start, int end);
2017-08-19 19:36:45 -04:00
void assetTablesChanged ();
2014-03-16 12:44:01 +01:00
};
}
#endif