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

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
{
2022-09-22 18:26:05 +00:00
Q_OBJECT
2014-03-16 11:44:01 +00:00
2022-09-22 18:26:05 +00:00
CSMWorld::Data& mData;
CSVRender::Object mObject;
2022-09-22 18:26:05 +00:00
public:
PreviewWidget(CSMWorld::Data& data, const std::string& id, bool referenceable, QWidget* parent = nullptr);
2014-03-16 11:44:01 +00:00
2022-09-22 18:26:05 +00:00
signals:
2014-03-16 11:44:01 +00:00
2022-09-22 18:26:05 +00:00
void closeRequest();
2014-03-16 11:44:01 +00:00
2022-09-22 18:26:05 +00:00
void referenceableIdChanged(const std::string& id);
2022-09-22 18:26:05 +00:00
private slots:
2022-09-22 18:26:05 +00:00
void referenceableDataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight);
2022-09-22 18:26:05 +00:00
void referenceableAboutToBeRemoved(const QModelIndex& parent, int start, int end);
2022-09-22 18:26:05 +00:00
void referenceDataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight);
2022-09-22 18:26:05 +00:00
void referenceAboutToBeRemoved(const QModelIndex& parent, int start, int end);
2022-09-22 18:26:05 +00:00
void assetTablesChanged();
2014-03-16 11:44:01 +00:00
};
}
#endif