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/ilchooser.h | |
| parent | d9661f34eec6855d495a10eaafc2a8e2679756a7 (diff) | |
Refactor main area to use pane system
Diffstat (limited to 'ui/ilchooser.h')
| -rw-r--r-- | ui/ilchooser.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/ui/ilchooser.h b/ui/ilchooser.h new file mode 100644 index 00000000..acf1bd22 --- /dev/null +++ b/ui/ilchooser.h @@ -0,0 +1,34 @@ +#pragma once + +#include "pane.h" +#include "menus.h" + +class BINARYNINJAUIAPI ILChooserWidget: public MenuHelper +{ + Q_OBJECT + + UIActionHandler* m_handler; + bool m_longDescription; + +public: + ILChooserWidget(QWidget* parent, UIActionHandler* handler, bool longDescription); + void updateStatus(BNFunctionGraphType current); + + static QString shortNameForILType(BNFunctionGraphType type); + static QString longNameForILType(BNFunctionGraphType type); + +protected: + virtual void showMenu() override; +}; + +class BINARYNINJAUIAPI ViewPaneHeaderILChooserWidget: public ViewPaneHeaderSubtypeWidget +{ + Q_OBJECT + + View* m_view; + ILChooserWidget* m_widget; + +public: + ViewPaneHeaderILChooserWidget(View* view, UIActionHandler* handler); + virtual void updateStatus(); +}; |
