|
|
|
@ -6,6 +6,7 @@
|
|
|
|
|
|
|
|
|
|
#include <QStringList>
|
|
|
|
|
#include <QtCore/QMimeData>
|
|
|
|
|
#include <QModelIndex>
|
|
|
|
|
|
|
|
|
|
#include "columnbase.hpp"
|
|
|
|
|
#include "universalid.hpp"
|
|
|
|
@ -15,6 +16,11 @@ namespace CSMDoc
|
|
|
|
|
class Document;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
namespace CSVWorld
|
|
|
|
|
{
|
|
|
|
|
class DragRecordTable;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
namespace CSMWorld
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
@ -30,6 +36,8 @@ namespace CSMWorld
|
|
|
|
|
std::vector<UniversalId> mUniversalId;
|
|
|
|
|
QStringList mObjectsFormats;
|
|
|
|
|
const CSMDoc::Document& mDocument;
|
|
|
|
|
const CSVWorld::DragRecordTable* mTableOfDragStart;
|
|
|
|
|
QModelIndex mIndexAtDragStart;
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
TableMimeData(UniversalId id, const CSMDoc::Document& document);
|
|
|
|
@ -55,6 +63,10 @@ namespace CSMWorld
|
|
|
|
|
const CSMDoc::Document* getDocumentPtr() const;
|
|
|
|
|
|
|
|
|
|
UniversalId returnMatching(CSMWorld::ColumnBase::Display type) const;
|
|
|
|
|
|
|
|
|
|
void setIndexAtDragStart(QModelIndex index) {mIndexAtDragStart = index;}
|
|
|
|
|
|
|
|
|
|
void setTableOfDragStart(const CSVWorld::DragRecordTable* table) {mTableOfDragStart = table;}
|
|
|
|
|
|
|
|
|
|
static CSMWorld::UniversalId::Type convertEnums(CSMWorld::ColumnBase::Display type);
|
|
|
|
|
|
|
|
|
|