2017-03-29 10:18:37 +00:00
|
|
|
#ifndef XREFSDIALOG_H
|
|
|
|
#define XREFSDIALOG_H
|
|
|
|
|
|
|
|
#include "highlighter.h"
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QTreeWidgetItem>
|
|
|
|
|
|
|
|
class MainWindow;
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class XrefsDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class XrefsDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit XrefsDialog(MainWindow *main, QWidget *parent = 0);
|
|
|
|
~XrefsDialog();
|
|
|
|
|
|
|
|
void fillRefs(QList<QStringList> refs, QList<QStringList> xrefs);
|
2017-04-04 11:19:34 +00:00
|
|
|
void updateLabels(QString name);
|
2017-03-29 10:18:37 +00:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
|
|
|
void on_fromTreeWidget_itemDoubleClicked(QTreeWidgetItem *item, int column);
|
|
|
|
|
|
|
|
void on_toTreeWidget_itemDoubleClicked(QTreeWidgetItem *item, int column);
|
|
|
|
|
|
|
|
QString normalizeAddr(QString addr);
|
|
|
|
|
|
|
|
void highlightCurrentLine();
|
|
|
|
void on_fromTreeWidget_itemSelectionChanged();
|
|
|
|
|
|
|
|
void on_toTreeWidget_itemSelectionChanged();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::XrefsDialog *ui;
|
|
|
|
MainWindow *main;
|
|
|
|
|
|
|
|
Highlighter *highlighter;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // XREFSDIALOG_H
|