25 #include <QStringList> 27 #include <tulip/tulipconf.h> 28 #include <tulip/DataSet.h> 36 const QString GRAPH_MIME_TYPE = QString(
"application/x-tulip-mime;value=\"graph\"");
37 const QString WORKSPACE_PANEL_MIME_TYPE =
38 QString(
"application/x-tulip-mime;value=\"workspace-panel\"");
39 const QString ALGORITHM_NAME_MIME_TYPE =
40 QString(
"application/x-tulip-mime;value=\"algorithm-name\"");
41 const QString DATASET_MIME_TYPE = QString(
"application/x-tulip-mime;value=\"dataset\"");
46 class TLP_QT_SCOPE GraphMimeType :
public QMimeData {
48 GraphMimeType() : QMimeData(), _graph(nullptr) {}
57 QStringList formats()
const override;
63 class TLP_QT_SCOPE AlgorithmMimeType :
public QMimeData {
70 AlgorithmMimeType(QString algorithmName,
const tlp::DataSet &data);
73 QString algorithm()
const {
80 QStringList formats()
const override;
86 class TLP_QT_SCOPE PanelMimeType :
public QMimeData {
88 void setPanel(tlp::WorkspacePanel *panel) {
92 tlp::WorkspacePanel *panel()
const {
96 QStringList formats()
const override;
99 tlp::WorkspacePanel *_panel;
102 #endif //_TLP_MIMES_H
A container that can store data from any type.