cutter/src/widgets/DisassemblyWidget.h

40 lines
941 B
C
Raw Normal View History

#ifndef DISASSEMBLYVIEW_H
#define DISASSEMBLYVIEW_H
#include "cutter.h"
#include <QDockWidget>
#include <QTextEdit>
2017-10-16 19:00:47 +00:00
#include <QShortcut>
class DisassemblyWidget : public QDockWidget
{
Q_OBJECT
public:
explicit DisassemblyWidget(QWidget *parent = nullptr);
explicit DisassemblyWidget(const QString &title, QWidget *parent = nullptr);
2017-10-22 10:21:44 +00:00
QWidget* getTextWidget();
signals:
public slots:
void highlightCurrentLine();
void disasmScrolled();
void showDisasContextMenu(const QPoint &pt);
2017-10-22 13:55:42 +00:00
void cursorPositionChanged();
void on_seekChanged(RVA offset);
void refreshDisasm();
void fontsUpdatedSlot();
2017-10-16 19:00:47 +00:00
void showXrefsDialog();
private:
QTextEdit *mDisasTextEdit;
2017-10-22 13:55:42 +00:00
QString readDisasm(RVA offset = RVA_INVALID);
RVA readCurrentDisassemblyOffset();
bool loadMoreDisassembly();
void highlightDisasms();
bool eventFilter(QObject *obj, QEvent *event);
};
#endif // DISASSEMBLYVIEW_H