cutter/src/menus/DisassemblyContextMenu.h

44 lines
994 B
C
Raw Normal View History

#ifndef DISASSEMBLYCONTEXTMENU_H
#define DISASSEMBLYCONTEXTMENU_H
#include "cutter.h"
#include <QMenu>
#include <QKeySequence>
2017-11-19 17:49:29 +00:00
class DisassemblyContextMenu : public QMenu
{
Q_OBJECT
2017-11-19 17:49:29 +00:00
public:
2017-11-19 17:49:29 +00:00
DisassemblyContextMenu(QWidget *parent = nullptr);
~DisassemblyContextMenu() = default;
public slots:
void setOffset(RVA offset);
void on_actionAddComment_triggered();
void on_actionAddFlag_triggered();
void on_actionRename_triggered();
void on_actionXRefs_triggered();
void on_actionDisplayOptions_triggered();
private:
void init();
QKeySequence getCommentSequence() const;
QKeySequence getAddFlagSequence() const;
QKeySequence getRenameSequence() const;
QKeySequence getXRefSequence() const;
QKeySequence getDisplayOptionsSequence() const;
2017-11-19 17:49:29 +00:00
RVA offset;
2017-11-19 17:49:29 +00:00
QAction actionAddComment;
QAction actionAddFlag;
QAction actionRename;
QAction actionXRefs;
QAction actionDisplayOptions;
};
#endif // DISASSEMBLYCONTEXTMENU_H