summaryrefslogtreecommitdiff
path: root/ui/viewlist.h
blob: c1926106a9a6c21b8b6e58e2c3e4d0aa960c96a3 (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
#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);
};