#ifndef DISASSEMBLYCONTEXTMENU_H #define DISASSEMBLYCONTEXTMENU_H #include "cutter.h" #include #include class DisassemblyContextMenu : public QMenu { Q_OBJECT public: DisassemblyContextMenu(RVA offset, QWidget *parent = nullptr); ~DisassemblyContextMenu() = default; DisassemblyContextMenu(QWidget *parent = nullptr); 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; private: RVA offset; QAction actionAddComment; QAction actionAddFlag; QAction actionRename; QAction actionXRefs; QAction actionDisplayOptions; }; #endif // DISASSEMBLYCONTEXTMENU_H