IaitoGraphView¶
-
class
IaitoGraphView
: public GraphView¶ Common Iaito specific graph functionality.
Subclassed by DisassemblerGraphView, SimpleTextGraphView
Public Types
Public Functions
-
IaitoGraphView
(QWidget *parent)¶
-
bool
event
(QEvent *event)¶
-
void
exportGraph
(QString filePath, GraphExportType type, QString graphCommand = "", RVA address = RVA_INVALID)¶ Export graph to a file in the specified format.
- Parameters
filePath
:type
: export type, GV* and R2* types requiregraphCommand
graphCommand
: r2 graph printing command without type, not required for direct image exportaddress
: object address for commands like agf
-
void
exportR2GraphvizGraph
(QString filePath, QString type, QString graphCommand, RVA address)¶ Export image using r2 ag*w command and graphviz. Requires graphviz dot executable in the path.
- Parameters
filePath
: output file pathtype
: image format as expected by “e graph.gv.format”graphCommand
: r2 command without type, for example agfaddress
: object address if required by command
-
void
exportR2TextGraph
(QString filePath, QString graphCommand, RVA address)¶ Export graph in one of the text formats supported by r2 json, gml, SDB key-value.
- Parameters
filePath
: output file pathgraphCommand
: graph command including the format, example “agfd” or “agfg”address
: object address if required by command
-
void
showExportGraphDialog
(QString defaultName, QString graphCommand = "", RVA address = RVA_INVALID)¶ Show graph export dialog.
- Parameters
defaultName
: - default file name in the export dialoggraphCommand
: - R2 graph commmand with graph type and without export type, for example afC. Leave empty for non-r2 graphs. In such case only direct image export will be available.address
: - object address if relevant forgraphCommand
Public Slots
-
void
refreshView
()¶
-
void
updateColors
()¶
-
void
fontsUpdatedSlot
()¶
-
void
zoom
(QPointF mouseRelativePos, double velocity)¶
-
void
setZoom
(QPointF mouseRelativePos, double scale)¶
-
void
zoomIn
()¶
-
void
zoomOut
()¶
-
void
zoomReset
()¶
-
void
showExportDialog
()¶ Show the export file dialog. Override this to support r2 based export formats.
Public Static Functions
-
bool
graphIsBitamp
(GraphExportType type)¶
-