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>
|
|
|
|
|
2014-06-27 09:12:26 +02:00
|
|
|
#include "object.hpp"
|
2014-03-16 12:44:01 +01:00
|
|
|
|
2014-03-21 11:22:43 +01:00
|
|
|
class QModelIndex;
|
2022-10-19 19:02:00 +02:00
|
|
|
class QObject;
|
|
|
|
class QWidget;
|
2014-03-21 11:22:43 +01:00
|
|
|
|
2014-03-16 12:44:01 +01:00
|
|
|
namespace CSMWorld
|
|
|
|
{
|
|
|
|
class Data;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace CSVRender
|
|
|
|
{
|
|
|
|
class PreviewWidget : public SceneWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
2014-03-21 11:22:43 +01:00
|
|
|
CSMWorld::Data& mData;
|
2015-03-20 00:39:24 +01:00
|
|
|
CSVRender::Object mObject;
|
2014-03-16 17:06:45 +01:00
|
|
|
|
2014-03-16 12:44:01 +01:00
|
|
|
public:
|
2015-03-26 00:55:58 +01:00
|
|
|
PreviewWidget(CSMWorld::Data& data, const std::string& id, bool referenceable, QWidget* parent = nullptr);
|
2014-03-16 12:44:01 +01:00
|
|
|
|
2015-03-26 00:55:58 +01:00
|
|
|
signals:
|
2014-03-16 12:44:01 +01:00
|
|
|
|
|
|
|
void closeRequest();
|
|
|
|
|
|
|
|
void referenceableIdChanged(const std::string& id);
|
2014-03-21 11:22:43 +01:00
|
|
|
|
2014-03-21 12:52:46 +01:00
|
|
|
private slots:
|
|
|
|
|
2014-03-21 11:22:43 +01: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-03-21 11:22:43 +01:00
|
|
|
|
2014-06-27 10:35:00 +02:00
|
|
|
void referenceDataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight);
|
2014-03-21 11:22:43 +01:00
|
|
|
|
2014-06-27 10:35:00 +02:00
|
|
|
void referenceAboutToBeRemoved(const QModelIndex& parent, int start, int end);
|
2014-03-21 11:22:43 +01:00
|
|
|
|
2017-08-19 19:36:45 -04:00
|
|
|
void assetTablesChanged();
|
2014-03-16 12:44:01 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|