2017-12-06 23:19:14 +00:00
|
|
|
#ifndef PSEUDOCODEWIDGET_H
|
|
|
|
#define PSEUDOCODEWIDGET_H
|
|
|
|
|
|
|
|
#include <QDockWidget>
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
#include "cutter.h"
|
|
|
|
|
2017-12-15 10:52:47 +00:00
|
|
|
|
|
|
|
class QTextEdit;
|
|
|
|
class SyntaxHighlighter;
|
2017-12-06 23:19:14 +00:00
|
|
|
|
|
|
|
class PseudocodeWidget : public QDockWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit PseudocodeWidget(const QString &title, QWidget *parent = nullptr, Qt::WindowFlags flags = 0);
|
|
|
|
explicit PseudocodeWidget(QWidget *parent = nullptr, Qt::WindowFlags flags = 0);
|
|
|
|
~PseudocodeWidget();
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_seekChanged(RVA addr);
|
|
|
|
void raisePrioritizedMemoryWidget(CutterCore::MemoryWidgetType type);
|
|
|
|
void fontsUpdated();
|
|
|
|
void colorsUpdatedSlot();
|
|
|
|
void refreshPseudocode();
|
2017-12-15 10:52:47 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void refresh(RVA addr);
|
|
|
|
void setupFonts();
|
|
|
|
|
|
|
|
private:
|
|
|
|
QTextEdit* textEditWidget;
|
|
|
|
SyntaxHighlighter* syntaxHighLighter;
|
2017-12-06 23:19:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PSEUDOCODEWIDGET_H
|