26 #include <QStringList> 28 #include <tulip/tulipconf.h> 29 #include <tulip/DataSet.h> 38 const QString GRAPH_MIME_TYPE=QString(
"application/x-tulip-mime;value=\"graph\"");
39 const QString WORKSPACE_PANEL_MIME_TYPE=QString(
"application/x-tulip-mime;value=\"workspace-panel\"");
40 const QString ALGORITHM_NAME_MIME_TYPE=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(NULL) {}
57 QStringList formats()
const;
63 class TLP_QT_SCOPE AlgorithmMimeType :
public QMimeData {
72 AlgorithmMimeType(QString algorithmName,
const tlp::DataSet& data);
75 QString algorithm()
const {
82 QStringList formats()
const;
88 class TLP_QT_SCOPE PanelMimeType :
public QMimeData {
93 void setPanel(tlp::WorkspacePanel* panel) {
97 tlp::WorkspacePanel* panel()
const {
101 QStringList formats()
const;
104 tlp::WorkspacePanel* _panel;
107 #endif //_TLP_MIMES_H
A container that can store data from any type.