2017-10-11 21:07:32 +00:00
|
|
|
#ifndef DISASSEMBLYVIEW_H
|
|
|
|
#define DISASSEMBLYVIEW_H
|
|
|
|
|
2017-10-15 19:19:48 +00:00
|
|
|
#include "cutter.h"
|
2017-10-11 21:07:32 +00:00
|
|
|
#include <QDockWidget>
|
|
|
|
#include <QTextEdit>
|
|
|
|
|
2017-10-12 19:55:15 +00:00
|
|
|
class DisassemblyWidget : public QDockWidget
|
2017-10-11 21:07:32 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2017-10-12 19:55:15 +00:00
|
|
|
explicit DisassemblyWidget(QWidget *parent = nullptr);
|
|
|
|
explicit DisassemblyWidget(const QString &title, QWidget *parent = nullptr);
|
2017-10-11 21:07:32 +00:00
|
|
|
|
|
|
|
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();
|
2017-10-14 09:35:49 +00:00
|
|
|
void fontsUpdatedSlot();
|
2017-10-11 21:07:32 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
QTextEdit *mDisasTextEdit;
|
|
|
|
|
|
|
|
RVA readCurrentDisassemblyOffset();
|
|
|
|
bool loadMoreDisassembly();
|
|
|
|
void highlightDisasms();
|
|
|
|
bool eventFilter(QObject *obj, QEvent *event);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // DISASSEMBLYVIEW_H
|