diff options
| author | Rusty Wagner <rusty.wagner@gmail.com> | 2021-11-18 13:52:25 -0500 |
|---|---|---|
| committer | Rusty Wagner <rusty.wagner@gmail.com> | 2022-01-10 15:25:18 -0700 |
| commit | 7f6e54fdc8ff4a06fdcd3c510a37add337f04bac (patch) | |
| tree | 60cce5955fcc05fc84f35f9662d49c7e0790dde1 /ui/viewlist.h | |
| parent | d9661f34eec6855d495a10eaafc2a8e2679756a7 (diff) | |
Refactor main area to use pane system
Diffstat (limited to 'ui/viewlist.h')
| -rw-r--r-- | ui/viewlist.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/ui/viewlist.h b/ui/viewlist.h new file mode 100644 index 00000000..c1926106 --- /dev/null +++ b/ui/viewlist.h @@ -0,0 +1,31 @@ +#pragma once + +#include <QtWidgets/QLabel> +#include <string> +#include "viewframe.h" +#include "menus.h" +#include "action.h" + +class BINARYNINJAUIAPI ViewList: public MenuHelper +{ + Q_OBJECT + + FileContext* m_context = nullptr; + QString m_currentType; + std::string m_currentDataType; + + UIActionHandler* m_handler; + +public: + ViewList(QWidget* parent); + + void bindActions(UIActionHandler* handler); + void addMenuActions(Menu* menu, const QString& group); + void setCurrentViewType(ViewFrame* view, const QString& type); + +protected: + virtual void showMenu(); + +Q_SIGNALS: + void viewChanged(QString type); +}; |
