2017-10-12 19:55:15 +00:00
|
|
|
|
|
|
|
#ifndef SIDEBARWIDGET_H
|
|
|
|
#define SIDEBARWIDGET_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <QDebug>
|
|
|
|
#include <QTextEdit>
|
|
|
|
#include <QDockWidget>
|
|
|
|
#include <QTreeWidget>
|
|
|
|
#include <QTabWidget>
|
|
|
|
#include <QUrl>
|
|
|
|
#include <QPlainTextEdit>
|
|
|
|
#include <QMouseEvent>
|
|
|
|
#include <memory>
|
|
|
|
#include "cutter.h"
|
|
|
|
#include "utils/Highlighter.h"
|
|
|
|
#include "utils/HexAsciiHighlighter.h"
|
|
|
|
#include "utils/HexHighlighter.h"
|
|
|
|
#include "Dashboard.h"
|
|
|
|
|
|
|
|
|
|
|
|
namespace Ui
|
|
|
|
{
|
|
|
|
class SidebarWidget;
|
|
|
|
}
|
|
|
|
|
|
|
|
class SidebarWidget : public QDockWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit SidebarWidget(const QString &title, QWidget *parent = nullptr, Qt::WindowFlags flags = 0);
|
|
|
|
explicit SidebarWidget(QWidget *parent = nullptr, Qt::WindowFlags flags = 0);
|
|
|
|
~SidebarWidget();
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::unique_ptr<Ui::SidebarWidget> ui;
|
|
|
|
|
|
|
|
void setFcnName(RVA addr);
|
2017-12-20 22:50:26 +00:00
|
|
|
void updateRefs(RVA addr);
|
|
|
|
void fillRefs(QList<XrefDescription> refs, QList<XrefDescription> xrefs);
|
2017-10-12 19:55:15 +00:00
|
|
|
void fillOffsetInfo(QString off);
|
|
|
|
|
|
|
|
void setScrollMode();
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_seekChanged(RVA addr);
|
|
|
|
|
|
|
|
void refresh(RVA addr = RVA_INVALID);
|
|
|
|
|
2017-11-26 13:40:24 +00:00
|
|
|
void on_xrefFromTreeWidget_itemDoubleClicked(QTreeWidgetItem *item, int column);
|
|
|
|
void on_xrefToTreeWidget_itemDoubleClicked(QTreeWidgetItem *item, int column);
|
|
|
|
|
2017-10-12 19:55:15 +00:00
|
|
|
void on_offsetToolButton_clicked();
|
2017-11-26 13:40:24 +00:00
|
|
|
void on_opcodeDescToolButton_clicked();
|
|
|
|
void on_xrefFromToolButton_clicked();
|
|
|
|
void on_xrefToToolButton_clicked();
|
2017-10-12 19:55:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SIDEBARWIDGET_H
|