SageMimeData.h File Reference

#include <QString>

Include dependency graph for SageMimeData.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef std::vector< SgNode * > SgNodeVector

Functions

QMimeData * createSageMimeData (SgNode *node)
SgNode * getGeneralNode (const QMimeData *data)
 extract the MIME data, returns NULL if not set
SgNodeVector getSourceNodes (const QMimeData *data)
SgNodeVector getBinaryNodes (const QMimeData *data)
SgNodeVector getNodes (const QMimeData *data, const QString &type)

Variables

const QString SG_NODE_MIMETYPE = "application/SgNode"
const QString SG_NODE_BINARY_MIMETYPE = "application/SgNode-binary"
const QString SG_NODE_SOURCE_MIMETYPE = "application/SgNode-source"


Typedef Documentation

typedef std::vector<SgNode *> SgNodeVector

Definition at line 13 of file SageMimeData.h.


Function Documentation

QMimeData* createSageMimeData ( SgNode *  node  ) 

creates MIME Data out of a SgNode depending on the node, the base type (source or binary) gets set by finding the appropriate SgFile the other file gets set if the appropriate Link Attribute is set

Definition at line 36 of file SageMimeData.cpp.

Referenced by RoseGraphicsView::mouseMoveEvent(), and RoseTreeView::mouseMoveEvent().

Here is the caller graph for this function:

SgNodeVector getBinaryNodes ( const QMimeData *  data  ) 

Definition at line 101 of file SageMimeData.cpp.

Referenced by AsmInstructionsBar::dropEvent(), and SrcBinView::dropEvent().

Here is the call graph for this function:

Here is the caller graph for this function:

SgNode* getGeneralNode ( const QMimeData *  data  ) 

extract the MIME data, returns NULL if not set

Definition at line 86 of file SageMimeData.cpp.

Referenced by MetricsKiviat::dropEvent(), RoseGraphicsView::handleMimeData(), and RoseTreeView::handleMimeData().

Here is the call graph for this function:

Here is the caller graph for this function:

SgNodeVector getNodes ( const QMimeData *  data,
const QString &  type 
)

Definition at line 106 of file SageMimeData.cpp.

Referenced by getBinaryNodes(), getGeneralNode(), and getSourceNodes().

Here is the caller graph for this function:

SgNodeVector getSourceNodes ( const QMimeData *  data  ) 

Definition at line 96 of file SageMimeData.cpp.

Referenced by RoseCodeEdit::dragEnterEvent(), RoseCodeEdit::dropEvent(), and SrcBinView::dropEvent().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

const QString SG_NODE_BINARY_MIMETYPE = "application/SgNode-binary"

Definition at line 8 of file SageMimeData.h.

Referenced by createSageMimeData(), SrcBinView::dragEnterEvent(), AsmInstructionsBar::dragEnterEvent(), and getBinaryNodes().

const QString SG_NODE_MIMETYPE = "application/SgNode"

Definition at line 7 of file SageMimeData.h.

Referenced by RoseTreeView::acceptMimeData(), RoseGraphicsView::acceptMimeData(), createSageMimeData(), RoseCodeEdit::dragEnterEvent(), NodeInfoWidget::dragEnterEvent(), MetricsKiviat::dragEnterEvent(), NodeInfoWidget::dropEvent(), getGeneralNode(), and NodeInfoWidget::mouseMoveEvent().

const QString SG_NODE_SOURCE_MIMETYPE = "application/SgNode-source"

Definition at line 9 of file SageMimeData.h.

Referenced by createSageMimeData(), SrcBinView::dragEnterEvent(), and getSourceNodes().


Generated on Tue Sep 15 14:48:47 2009 for RoseQtWidgets by  doxygen 1.4.7