1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-30 21:32:42 +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.0 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"
2022-10-19 19:02:00 +02:00
#include <string>
#include "object.hpp"
2014-03-16 12:44:01 +01:00
class QModelIndex;
2022-10-19 19:02:00 +02:00
class QObject;
class QWidget;
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, QWidget* parent = nullptr);
2014-03-16 12:44:01 +01:00
signals:
2014-03-16 12:44:01 +01:00
void closeRequest();
void referenceableIdChanged(const std::string& id);
private slots:
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