cutter/src/dialogs/XrefsDialog.h

56 lines
1.2 KiB
C
Raw Normal View History

#ifndef XREFSDIALOG_H
#define XREFSDIALOG_H
#include <QDialog>
#include <QTreeWidgetItem>
2017-10-02 09:41:28 +00:00
#include <memory>
2017-10-01 19:09:42 +00:00
#include "utils/Highlighter.h"
2018-03-04 17:42:02 +00:00
#include "Cutter.h"
class MainWindow;
2018-03-21 20:32:32 +00:00
namespace Ui {
class XrefsDialog;
}
class XrefsDialog : public QDialog
{
Q_OBJECT
public:
explicit XrefsDialog(QWidget *parent = nullptr);
~XrefsDialog();
void fillRefsForAddress(RVA addr, QString name, bool whole_function);
private slots:
void on_fromTreeWidget_itemDoubleClicked(QTreeWidgetItem *item, int column);
void on_toTreeWidget_itemDoubleClicked(QTreeWidgetItem *item, int column);
2018-03-21 20:32:32 +00:00
QString normalizeAddr(const QString &addr) const;
void setupPreviewFont();
void setupPreviewColors();
void highlightCurrentLine();
void on_fromTreeWidget_itemSelectionChanged();
void on_toTreeWidget_itemSelectionChanged();
private:
RVA addr;
QString func_name;
2017-10-02 09:41:28 +00:00
std::unique_ptr<Ui::XrefsDialog> ui;
2017-10-09 18:08:35 +00:00
CutterCore *core;
void fillRefs(QList<XrefDescription> refs, QList<XrefDescription> xrefs);
2017-06-07 15:48:36 +00:00
void updateLabels(QString name);
void updatePreview(RVA addr);
2017-06-07 15:48:36 +00:00
2017-11-27 11:18:47 +00:00
QString xrefTypeString(const QString &type);
};
#endif // XREFSDIALOG_H