DisassemblyWidget

class DisassemblyWidget : public MemoryDockWidget

Main widget for showing disassembly of a binary.

Public Functions

explicit DisassemblyWidget(MainWindow *main)
QWidget *getTextWidget()
QFontMetricsF getFontMetrics()
QList<DisassemblyLine> getLines()
int getStartIndex() const
int getEndIndex() const
void updateSelectionPos(const QTextCursor &cursor)

Updates the offset and character position where the cursor selection ends.

void updateSelectionAnchor(const QTextCursor &cursor)

Updates the offset and character position where the cursor selection starts.

Public Slots

QList<QTextEdit::ExtraSelection> highlightCurrentLine()

Highlights the currently selected line and updates the highlighting of the same words under the cursor in the visible screen.

Returns:

List of selections to be highlighted

QList<QTextEdit::ExtraSelection> highlightPCLine()

Adds the PC line highlighting to the other current highlighting. This is generally called after highlightCurrentLine.

Returns:

List of selections to be highlighted

void showDisasContextMenu(const QPoint &pt)
void fontsUpdatedSlot()
void colorsUpdatedSlot()
void scrollInstructions(int count, bool clampToScrollBarRange = false)
void seekPrev()
void setPreviewMode(bool previewMode)
void showTransientScrollBar()

Forces the transient vertical scrollbar to appear on scroll.

void refreshDisasm(RVA offset = RVA_INVALID, RefreshMode mode = RefreshMode::Reset)

Public Static Functions

static QString getWidgetType()