#ifndef PSEUDOCODEWIDGET_H #define PSEUDOCODEWIDGET_H #include #include "core/Cutter.h" #include "CutterDockWidget.h" namespace Ui { class PseudocodeWidget; } class QTextEdit; class SyntaxHighlighter; class PseudocodeWidget : public CutterDockWidget { Q_OBJECT public: explicit PseudocodeWidget(MainWindow *main, QAction *action = nullptr); ~PseudocodeWidget(); private slots: void raisePrioritizedMemoryWidget(CutterCore::MemoryWidgetType type); void fontsUpdated(); void colorsUpdatedSlot(); void refreshPseudocode(); private: enum DecompilerComboBoxValues { DecompilerCBR2Dec, DecompilerCBPdc }; std::unique_ptr ui; SyntaxHighlighter *syntaxHighLighter; void doRefresh(RVA addr); void setupFonts(); }; #endif // PSEUDOCODEWIDGET_H