#ifndef DECOMPILERCONTEXTMENU_H #define DECOMPILERCONTEXTMENU_H #include "core/Cutter.h" #include #include class DecompilerContextMenu : public QMenu { Q_OBJECT public: DecompilerContextMenu(QWidget *parent, MainWindow *mainWindow); ~DecompilerContextMenu(); signals: void copy(); public slots: void setOffset(RVA offset); void setCanCopy(bool enabled); private slots: void aboutToShowSlot(); void actionCopyTriggered(); private: QKeySequence getCopySequence() const; RVA offset; MainWindow *mainWindow; QAction actionCopy; QAction *copySeparator; void setActionCopy(); // I left out the following part from RAnnotatedCode. Probably, we will be returning/passing annotations // from/to the function getThingUsedHere() and updateTargetMenuActions(). This block of comment will get removed in // future PRs. // // struct ThingUsedHere { // QString name; // RVA offset; // enum class Type { // Var, // Function, // Flag, // Address // }; // Type type; // }; // QVector getThingUsedHere(RVA offset); // void updateTargetMenuActions(const QVector &targets); }; #endif // DECOMPILERCONTEXTMENU_H