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