mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
- Use Bind instead of connect. It's recommended for anyone using wx 2.9+ - Remove AppConnector. All this did was destroy objects used in the UI. However, wxWidgets handles this. So it's redundant. - Misc other unimportant changes.
48 lines
1 KiB
C++
48 lines
1 KiB
C++
#pragma once
|
|
|
|
#include "Emu/Cell/PPUOpcodes.h"
|
|
#include "Loader/ELF64.h"
|
|
#include <wx/aui/aui.h>
|
|
#include <wx/richtext/richtextctrl.h>
|
|
|
|
class CompilerELF : public FrameBase
|
|
{
|
|
wxAuiManager m_aui_mgr;
|
|
wxStatusBar& m_status_bar;
|
|
bool m_disable_scroll;
|
|
|
|
public:
|
|
CompilerELF(wxWindow* parent);
|
|
~CompilerELF();
|
|
|
|
wxTextCtrl* asm_list;
|
|
wxTextCtrl* hex_list;
|
|
wxTextCtrl* err_list;
|
|
|
|
void MouseWheel(wxMouseEvent& event);
|
|
void OnKeyDown(wxKeyEvent& event);
|
|
|
|
void OnUpdate(wxCommandEvent& event);
|
|
void OnScroll(wxScrollWinEvent& event);
|
|
void UpdateScroll(bool is_hex, int orient);
|
|
|
|
void AnalyzeCode(wxCommandEvent& WXUNUSED(event))
|
|
{
|
|
DoAnalyzeCode(false);
|
|
}
|
|
|
|
void CompileCode(wxCommandEvent& WXUNUSED(event))
|
|
{
|
|
DoAnalyzeCode(true);
|
|
}
|
|
|
|
void LoadElf(wxCommandEvent& event);
|
|
void LoadElf(const std::string& path);
|
|
|
|
void SetTextStyle(const std::string& text, const wxColour& color, bool bold=false);
|
|
void SetOpStyle(const std::string& text, const wxColour& color, bool bold = true);
|
|
void DoAnalyzeCode(bool compile);
|
|
|
|
void UpdateStatus(int offset=0);
|
|
};
|