mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-31 16:47:26 +00:00
28 lines
710 B
C++
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
|