#ifndef SIDEBARWIDGET_H #define SIDEBARWIDGET_H #include #include #include #include #include #include #include #include #include #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; void setFcnName(RVA addr); void get_refs_data(RVA addr); void fill_refs(QList refs, QList xrefs, QList graph_data); void fillOffsetInfo(QString off); void setScrollMode(); private slots: void on_seekChanged(RVA addr); void refresh(RVA addr = RVA_INVALID); void on_xrefFromTreeWidget_itemDoubleClicked(QTreeWidgetItem *item, int column); void on_xrefToTreeWidget_itemDoubleClicked(QTreeWidgetItem *item, int column); void on_offsetToolButton_clicked(); void on_opcodeDescToolButton_clicked(); void on_xrefFromToolButton_clicked(); void on_xrefToToolButton_clicked(); }; #endif // SIDEBARWIDGET_H