1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-30 12:32:36 +00:00
OpenMW/apps/opencs/view/world/previewsubview.hpp

43 lines
723 B
C++
Raw Normal View History

2014-03-16 12:44:01 +01:00
#ifndef CSV_WORLD_PREVIEWSUBVIEW_H
#define CSV_WORLD_PREVIEWSUBVIEW_H
#include "../doc/subview.hpp"
2022-10-19 19:02:00 +02:00
#include <string>
#include <apps/opencs/model/world/universalid.hpp>
2014-03-16 12:44:01 +01:00
namespace CSMDoc
{
class Document;
}
namespace CSVRender
{
class PreviewWidget;
}
namespace CSVWorld
{
class PreviewSubView : public CSVDoc::SubView
{
2022-09-22 21:26:05 +03:00
Q_OBJECT
2014-03-16 12:44:01 +01:00
2022-09-22 21:26:05 +03:00
CSVRender::PreviewWidget* mScene;
std::string mTitle;
2014-03-16 12:44:01 +01:00
2022-09-22 21:26:05 +03:00
public:
PreviewSubView(const CSMWorld::UniversalId& id, CSMDoc::Document& document);
2014-03-16 12:44:01 +01:00
2022-09-22 21:26:05 +03:00
void setEditLock(bool locked) override;
2014-03-16 12:44:01 +01:00
2022-09-22 21:26:05 +03:00
std::string getTitle() const override;
2014-03-16 12:44:01 +01:00
2022-09-22 21:26:05 +03:00
private slots:
2022-09-22 21:26:05 +03:00
void referenceableIdChanged(const std::string& id);
2014-03-16 12:44:01 +01:00
};
}
#endif