1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-20 20:53:53 +00:00
openmw/apps/opencs/view/render/unpagedworldspacewidget.hpp

56 lines
1.1 KiB
C++
Raw Normal View History

#ifndef OPENCS_VIEW_UNPAGEDWORLDSPACEWIDGET_H
#define OPENCS_VIEW_UNPAGEDWORLDSPACEWIDGET_H
2014-03-06 12:02:21 +00:00
#include <string>
#include "worldspacewidget.hpp"
2014-03-06 12:02:21 +00:00
class QModelIndex;
namespace CSMDoc
{
class Document;
}
namespace CSMWorld
{
class IdTable;
}
namespace CSVRender
{
class UnpagedWorldspaceWidget : public WorldspaceWidget
{
Q_OBJECT
2014-03-06 12:02:21 +00:00
std::string mCellId;
CSMWorld::IdTable *mCellsModel;
void update();
public:
2014-03-06 12:02:21 +00:00
UnpagedWorldspaceWidget (const std::string& cellId, CSMDoc::Document& document,
QWidget *parent);
2014-05-01 13:09:47 +00:00
private:
void handleDrop(const std::vector<CSMWorld::UniversalId>& data);
void dropEvent(QDropEvent* event);
2014-03-06 12:02:21 +00:00
private slots:
void cellDataChanged (const QModelIndex& topLeft, const QModelIndex& bottomRight);
void cellRowsAboutToBeRemoved (const QModelIndex& parent, int start, int end);
2014-05-01 13:09:47 +00:00
signals:
void exteriorCellsDropped(const std::vector<CSMWorld::UniversalId>& data);
};
}
#endif