cutter/src/widgets/PseudocodeWidget.h

42 lines
798 B
C
Raw Normal View History

#ifndef PSEUDOCODEWIDGET_H
#define PSEUDOCODEWIDGET_H
#include <memory>
#include "core/Cutter.h"
#include "MemoryDockWidget.h"
2018-03-21 20:32:32 +00:00
namespace Ui {
class PseudocodeWidget;
}
class QTextEdit;
2019-07-11 13:21:54 +00:00
class QSyntaxHighlighter;
class PseudocodeWidget : public MemoryDockWidget
{
2018-03-21 20:32:32 +00:00
Q_OBJECT
public:
explicit PseudocodeWidget(MainWindow *main, QAction *action = nullptr);
~PseudocodeWidget();
private slots:
void fontsUpdated();
void colorsUpdatedSlot();
void refreshPseudocode();
private:
2018-09-08 07:12:08 +00:00
enum DecompilerComboBoxValues { DecompilerCBR2Dec, DecompilerCBPdc };
std::unique_ptr<Ui::PseudocodeWidget> ui;
2019-07-11 13:21:54 +00:00
QSyntaxHighlighter *syntaxHighlighter;
void doRefresh(RVA addr);
void setupFonts();
QString getWindowTitle() const override;
};
#endif // PSEUDOCODEWIDGET_H