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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

91 lines
1.9 KiB
C++
Raw Normal View History

#ifndef CSV_WORLD_SCENESUBVIEW_H
#define CSV_WORLD_SCENESUBVIEW_H
#include <QHBoxLayout>
2022-10-19 17:02:00 +00:00
#include <string>
#include <vector>
#include <apps/opencs/model/world/universalid.hpp>
2022-10-19 17:02:00 +00:00
#include "../doc/subview.hpp"
namespace CSMWorld
{
class CellSelection;
}
namespace CSMDoc
{
class Document;
}
2014-02-25 13:59:46 +00:00
namespace CSVRender
{
class WorldspaceWidget;
2014-05-03 12:00:30 +00:00
class PagedWorldspaceWidget;
class UnpagedWorldspaceWidget;
2014-02-25 13:59:46 +00:00
}
namespace CSVWidget
{
class SceneToolbar;
}
namespace CSVWorld
{
class TableBottomBox;
class SceneSubView : public CSVDoc::SubView
{
Q_OBJECT
TableBottomBox* mBottom;
CSVRender::WorldspaceWidget* mScene;
QHBoxLayout* mLayout;
CSMDoc::Document& mDocument;
CSVWidget::SceneToolbar* mToolbar;
std::string mTitle;
public:
SceneSubView(const CSMWorld::UniversalId& id, CSMDoc::Document& document);
void setEditLock(bool locked) override;
void setStatusBar(bool show) override;
void useHint(const std::string& hint) override;
std::string getTitle() const override;
private:
void makeConnections(CSVRender::PagedWorldspaceWidget* widget);
2014-05-03 12:00:30 +00:00
void makeConnections(CSVRender::UnpagedWorldspaceWidget* widget);
void replaceToolbarAndWorldspace(CSVRender::WorldspaceWidget* widget, CSVWidget::SceneToolbar* toolbar);
enum widgetType
2022-09-22 18:26:05 +00:00
{
2014-05-03 12:00:30 +00:00
widget_Paged,
widget_Unpaged
};
CSVWidget::SceneToolbar* makeToolbar(CSVRender::WorldspaceWidget* widget, widgetType type);
2014-05-03 12:00:30 +00:00
2014-05-04 10:30:15 +00:00
private slots:
void cellSelectionChanged(const CSMWorld::CellSelection& selection);
2014-05-03 12:00:30 +00:00
void cellSelectionChanged(const CSMWorld::UniversalId& id);
void handleDrop(const std::vector<CSMWorld::UniversalId>& data);
2014-05-03 12:00:30 +00:00
signals:
void requestFocus(const std::string& id);
};
}
#endif