2016-02-08 22:56:25 +00:00
|
|
|
#ifndef DISASSEMBLERVIEWER_H
|
|
|
|
#define DISASSEMBLERVIEWER_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
#include <QByteArray>
|
|
|
|
|
|
|
|
#include "binaryfile.h"
|
|
|
|
namespace Ui {
|
|
|
|
class DisassemblerViewer;
|
|
|
|
}
|
|
|
|
|
|
|
|
class DisassemblerViewer : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit DisassemblerViewer(QWidget *parent = 0);
|
|
|
|
~DisassemblerViewer();
|
|
|
|
|
|
|
|
void setFile(BinaryFile *file);
|
|
|
|
void setData(QByteArray data);
|
|
|
|
void setText(QString text);
|
|
|
|
|
2016-02-10 17:45:39 +00:00
|
|
|
QString getPotentialLabel(quint16 address);
|
2016-02-08 22:56:25 +00:00
|
|
|
private:
|
|
|
|
Ui::DisassemblerViewer *ui;
|
|
|
|
|
|
|
|
BinaryFile *m_file;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // DISASSEMBLERVIEWER_H
|