forked from mirror/openmw-tes3mp
32 lines
No EOL
840 B
C++
32 lines
No EOL
840 B
C++
/*This class provides way to construct mimedata object holding the reference to the
|
|
* universalid. universalid is used in the majority of the tables to store type, id, argument types*/
|
|
|
|
#ifndef TABLEMIMEDATA_H
|
|
#define TABLEMIMEDATA_H
|
|
|
|
#include <vector>
|
|
|
|
#include <QtCore/QMimeData>
|
|
#include <QStringList>
|
|
|
|
#include "universalid.hpp"
|
|
|
|
|
|
namespace CSMWorld
|
|
{
|
|
class TableMimeData : public QMimeData
|
|
{
|
|
public:
|
|
TableMimeData(UniversalId id);
|
|
TableMimeData(std::vector<UniversalId>& id);
|
|
~TableMimeData();
|
|
virtual QStringList formats() const;
|
|
std::string getIcon() const;
|
|
std::vector<UniversalId> getData() const;
|
|
|
|
private:
|
|
std::vector<UniversalId> mUniversalId;
|
|
QStringList mObjectsFormats;
|
|
};
|
|
}
|
|
#endif // TABLEMIMEDATA_H
|