SageMimeData.cpp File Reference

#include "rose.h"
#include "SageMimeData.h"
#include "AsmToSourceMapper.h"
#include <QDataStream>
#include <QMimeData>
#include <QStringList>
#include <QDebug>

Include dependency graph for SageMimeData.cpp:

Go to the source code of this file.

Functions

template<typename LinkType>
static void writeLinks (QDataStream &s, AstAttributeMechanism *attrMech, QByteArray &d_)
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)


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 RoseTreeView::mouseMoveEvent(), and RoseGraphicsView::mouseMoveEvent().

Here is the caller graph for this function:

SgNodeVector getBinaryNodes ( const QMimeData *  data  ) 

Definition at line 101 of file SageMimeData.cpp.

Referenced by SrcBinView::dropEvent(), and AsmInstructionsBar::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(), RoseTreeView::handleMimeData(), and RoseGraphicsView::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(), SrcBinView::dropEvent(), and RoseCodeEdit::dropEvent().

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename LinkType>
static void writeLinks ( QDataStream &  s,
AstAttributeMechanism *  attrMech,
QByteArray &  d_ 
) [static]

Definition at line 12 of file SageMimeData.cpp.


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