cutter/src/widgets/MemoryDockWidget.h

28 lines
682 B
C
Raw Normal View History

#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 };
class CUTTER_EXPORT MemoryDockWidget : public AddressableDockWidget
{
Q_OBJECT
public:
MemoryDockWidget(MemoryWidgetType type, MainWindow *parent);
~MemoryDockWidget() override {}
bool tryRaiseMemoryWidget();
2021-01-24 14:50:13 +00:00
MemoryWidgetType getType() const { return mType; }
bool eventFilter(QObject *object, QEvent *event) override;
2021-01-24 14:50:13 +00:00
private:
MemoryWidgetType mType;
};
#endif // MEMORYDOCKWIDGET_H