#pragma once #include "util/types.hpp" #include #include #include class CPUDisAsm; class cpu_thread; class QCheckBox; class instruction_editor_dialog : public QDialog { Q_OBJECT private: u32 m_pc; u8* m_cpu_offset; std::shared_ptr m_disasm; // shared in order to allow an incomplete type QLineEdit* m_instr; QLabel* m_preview; QLabel* m_func_info = nullptr; QCheckBox* m_apply_for_spu_group = nullptr; const std::function m_get_cpu; public: instruction_editor_dialog(QWidget *parent, u32 _pc, CPUDisAsm* _disasm, std::function func); void updatePreview() const; };