summaryrefslogtreecommitdiff
path: root/ui/ilchooser.h
blob: 5779c7b229be754e7a7b85b5b3bdb98465cc06e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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();
};