"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/widgets/DisassemblerGraphView.cpp" between
cutter-1.10.2.tar.gz and cutter-1.10.3.tar.gz

About: cutter is a Qt and C++ GUI for radare2 reverse engineering framework.

DisassemblerGraphView.cpp  (cutter-1.10.2):DisassemblerGraphView.cpp  (cutter-1.10.3)
skipping to change at line 1174 skipping to change at line 1174
this->saveAsSvg(filePath); this->saveAsSvg(filePath);
break; break;
case GraphExportType::GVDot: { case GraphExportType::GVDot: {
QFile file(filePath); QFile file(filePath);
if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) { if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) {
qWarning() << "Can't open file"; qWarning() << "Can't open file";
return; return;
} }
QTextStream fileOut(&file); QTextStream fileOut(&file);
fileOut << Core()->cmd(QString("agfd 0x%1").arg(currentFcnAddr, 0, 16)); fileOut << Core()->cmdRaw(QString("agfd 0x%1").arg(currentFcnAddr, 0, 16 ));
} }
break; break;
case GraphExportType::GVJson: case GraphExportType::GVJson:
exportR2GraphvizGraph(filePath, "json"); exportR2GraphvizGraph(filePath, "json");
break; break;
case GraphExportType::GVGif: case GraphExportType::GVGif:
exportR2GraphvizGraph(filePath, "gif"); exportR2GraphvizGraph(filePath, "gif");
break; break;
case GraphExportType::GVPng: case GraphExportType::GVPng:
skipping to change at line 1203 skipping to change at line 1203
case GraphExportType::GVSvg: case GraphExportType::GVSvg:
exportR2GraphvizGraph(filePath, "svg"); exportR2GraphvizGraph(filePath, "svg");
break; break;
} }
} }
void DisassemblerGraphView::exportR2GraphvizGraph(QString filePath, QString type ) void DisassemblerGraphView::exportR2GraphvizGraph(QString filePath, QString type )
{ {
TempConfig tempConfig; TempConfig tempConfig;
tempConfig.set("graph.gv.format", type); tempConfig.set("graph.gv.format", type);
qWarning() << Core()->cmdRaw(QString("agfw \"%1\" @ 0x%2") qWarning() << Core()->cmdRawAt(QString("agfw \"%1\"")
.arg(filePath).arg(currentFcnAddr, 0, 16)); .arg(filePath),
currentFcnAddr);
} }
void DisassemblerGraphView::mousePressEvent(QMouseEvent *event) void DisassemblerGraphView::mousePressEvent(QMouseEvent *event)
{ {
GraphView::mousePressEvent(event); GraphView::mousePressEvent(event);
emit graphMoved(); emit graphMoved();
} }
void DisassemblerGraphView::mouseMoveEvent(QMouseEvent *event) void DisassemblerGraphView::mouseMoveEvent(QMouseEvent *event)
{ {
 End of changes. 2 change blocks. 
3 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)