cutter/src/widgets/MemoryDockWidget.h
karliss 7c9c7e6fe4
Add symbol exports. (#2345)
* Add symbol exports required for external native plugins to work on Windows
* Make Linux build behave more like Windows so that missing export
annotations can be more easily detected.
2020-08-01 17:14:30 +03:00

31 lines
698 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 };
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