cutter/src/widgets/PseudocodeWidget.h

40 lines
743 B
C
Raw Normal View History

#ifndef PSEUDOCODEWIDGET_H
#define PSEUDOCODEWIDGET_H
#include <memory>
2018-03-04 17:42:02 +00:00
#include "Cutter.h"
#include "CutterDockWidget.h"
2018-03-21 20:32:32 +00:00
namespace Ui {
class PseudocodeWidget;
}
class QTextEdit;
class SyntaxHighlighter;
class PseudocodeWidget : public CutterDockWidget
{
2018-03-21 20:32:32 +00:00
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:
std::unique_ptr<Ui::PseudocodeWidget> ui;
SyntaxHighlighter *syntaxHighLighter;
void refresh(RVA addr);
void setupFonts();
};
#endif // PSEUDOCODEWIDGET_H