rpcsx/rpcs3/rpcs3qt/cg_disasm_window.h
scribam 626836f95b qt: rewrite syntax highlighter
- fix multi-line comments
- remove compilation warnings "unknown escape sequence"
- fewer lines of code
2018-06-12 02:49:58 +04:00

41 lines
854 B
C++

#pragma once
#include <QTextEdit>
#include <QDropEvent>
#include "stdafx.h"
#include "gui_settings.h"
#include "syntax_highlighter.h"
class cg_disasm_window : public QWidget
{
Q_OBJECT
private Q_SLOTS:
void ShowContextMenu(const QPoint &pos);
void ShowDisasm();
bool IsValidFile(const QMimeData& md, bool save = false);
private:
QString m_path_last;
QTextEdit* m_disasm_text;
QTextEdit* m_glsl_text;
QList<QUrl> m_urls;
QAction *openCgBinaryProgram;
std::shared_ptr<gui_settings> xgui_settings;
AsmHighlighter* sh_asm;
GlslHighlighter* sh_glsl;
public:
explicit cg_disasm_window(std::shared_ptr<gui_settings> xSettings);
protected:
void dropEvent(QDropEvent* ev) override;
void dragEnterEvent(QDragEnterEvent* ev) override;
void dragMoveEvent(QDragMoveEvent* ev) override;
void dragLeaveEvent(QDragLeaveEvent* ev) override;
};