mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-23 05:16:11 +00:00
ab27e09b91
Sometimes it is not necessary to include the whole Cutter.h file Hence, it's been splitted so you can include only what you require E.g. #include "core/CutterCommon.h" to have access to the common types
41 lines
824 B
C++
41 lines
824 B
C++
#ifndef PSEUDOCODEWIDGET_H
|
|
#define PSEUDOCODEWIDGET_H
|
|
|
|
#include <memory>
|
|
|
|
#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::PseudocodeWidget> ui;
|
|
|
|
SyntaxHighlighter *syntaxHighLighter;
|
|
|
|
void doRefresh(RVA addr);
|
|
void setupFonts();
|
|
};
|
|
|
|
#endif // PSEUDOCODEWIDGET_H
|