1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-20 21:23:52 +00:00
openmw/apps/opencs/view/render/previewwidget.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1 KiB
C++
Raw Normal View History

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