1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-23 06:53:54 +00:00
openmw/apps/opencs/view/world/previewsubview.hpp

43 lines
723 B
C++
Raw Normal View History

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