2014-02-04 08:13:40 +00:00
|
|
|
/*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*/
|
|
|
|
|
2014-02-01 18:06:41 +00:00
|
|
|
#ifndef TABLEMIMEDATA_H
|
|
|
|
#define TABLEMIMEDATA_H
|
|
|
|
|
2014-02-04 17:30:47 +00:00
|
|
|
#include <vector>
|
|
|
|
|
2014-02-09 14:33:00 +00:00
|
|
|
#include <QtCore/QMimeData>
|
2014-02-04 10:40:48 +00:00
|
|
|
#include <QStringList>
|
|
|
|
|
|
|
|
#include "universalid.hpp"
|
|
|
|
|
2014-02-01 18:06:41 +00:00
|
|
|
|
2014-02-04 08:13:40 +00:00
|
|
|
namespace CSMWorld
|
2014-02-01 18:06:41 +00:00
|
|
|
{
|
2014-02-04 08:13:40 +00:00
|
|
|
class TableMimeData : public QMimeData
|
|
|
|
{
|
|
|
|
public:
|
2014-02-04 10:40:48 +00:00
|
|
|
TableMimeData(UniversalId id);
|
2014-02-04 17:30:47 +00:00
|
|
|
TableMimeData(std::vector<UniversalId>& id);
|
2014-02-04 08:13:40 +00:00
|
|
|
~TableMimeData();
|
|
|
|
virtual QStringList formats() const;
|
2014-02-04 17:30:47 +00:00
|
|
|
std::string getIcon() const;
|
2014-02-04 18:42:52 +00:00
|
|
|
std::vector<UniversalId> getData() const;
|
2014-02-01 18:06:41 +00:00
|
|
|
|
2014-02-04 08:13:40 +00:00
|
|
|
private:
|
2014-02-04 17:30:47 +00:00
|
|
|
std::vector<UniversalId> mUniversalId;
|
|
|
|
QStringList mObjectsFormats;
|
2014-02-04 08:13:40 +00:00
|
|
|
};
|
|
|
|
}
|
2014-02-05 10:19:55 +00:00
|
|
|
#endif // TABLEMIMEDATA_H
|