mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-24 13:55:26 +00:00
12e64cf052
* Add SidebarWidget from disassembly sidebar * Remove disassembly sidebar from MemoryWidget * Add HexdumpWidget from MemoryWidget * Remove Hexdump from MemoryWidget * Make PreviewWidget from MemoryWidget * Some cleanup * Rename DisassemblyView to DisasseblyWidget
36 lines
829 B
C++
36 lines
829 B
C++
#ifndef DISASSEMBLYVIEW_H
|
|
#define DISASSEMBLYVIEW_H
|
|
|
|
#include <QDockWidget>
|
|
#include <QTextEdit>
|
|
#include "cutter.h"
|
|
|
|
class DisassemblyWidget : public QDockWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit DisassemblyWidget(QWidget *parent = nullptr);
|
|
explicit DisassemblyWidget(const QString &title, QWidget *parent = nullptr);
|
|
|
|
signals:
|
|
|
|
public slots:
|
|
void highlightCurrentLine();
|
|
void disasmScrolled();
|
|
void showDisasContextMenu(const QPoint &pt);
|
|
void showXrefsDialog();
|
|
void on_mDisasTextEdit_cursorPositionChanged();
|
|
void on_seekChanged(RVA offset);
|
|
void refreshDisasm();
|
|
|
|
private:
|
|
QTextEdit *mDisasTextEdit;
|
|
|
|
RVA readCurrentDisassemblyOffset();
|
|
bool loadMoreDisassembly();
|
|
void highlightDisasms();
|
|
bool eventFilter(QObject *obj, QEvent *event);
|
|
};
|
|
|
|
#endif // DISASSEMBLYVIEW_H
|