cutter/src/widgets/MemoryDockWidget.h
2022-10-31 18:33:54 +02:00

28 lines
710 B
C++

#ifndef MEMORYDOCKWIDGET_H
#define MEMORYDOCKWIDGET_H
#include "AddressableDockWidget.h"
#include "core/Cutter.h"
#include <QAction>
/* Disassembly/Graph/Hexdump/Decompiler view priority */
enum class MemoryWidgetType { Disassembly, Graph, Hexdump, Decompiler, CallGraph, GlobalCallGraph };
class CUTTER_EXPORT MemoryDockWidget : public AddressableDockWidget
{
Q_OBJECT
public:
MemoryDockWidget(MemoryWidgetType type, MainWindow *parent);
~MemoryDockWidget() override {}
bool tryRaiseMemoryWidget();
MemoryWidgetType getType() const { return mType; }
bool eventFilter(QObject *object, QEvent *event) override;
private:
MemoryWidgetType mType;
};
#endif // MEMORYDOCKWIDGET_H