mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-13 07:14:49 +00:00
Change the GUI a little bit
Removed the launch of the ELF Compiler window at startup. Instead of it, I added a menubar item called "Compiler", and within it a menu item called "ELF Compiler", wich will launch the window.
This commit is contained in:
parent
5373747210
commit
19fea00432
@ -31,6 +31,7 @@ enum IDs
|
|||||||
id_config_emu,
|
id_config_emu,
|
||||||
id_config_vfs_manager,
|
id_config_vfs_manager,
|
||||||
id_config_vhdd_manager,
|
id_config_vhdd_manager,
|
||||||
|
id_compiler,
|
||||||
id_help_about,
|
id_help_about,
|
||||||
id_update_dbg,
|
id_update_dbg,
|
||||||
};
|
};
|
||||||
@ -59,11 +60,13 @@ MainFrame::MainFrame()
|
|||||||
wxMenu& menu_boot(*new wxMenu());
|
wxMenu& menu_boot(*new wxMenu());
|
||||||
wxMenu& menu_sys(*new wxMenu());
|
wxMenu& menu_sys(*new wxMenu());
|
||||||
wxMenu& menu_conf(*new wxMenu());
|
wxMenu& menu_conf(*new wxMenu());
|
||||||
|
wxMenu& menu_compiler(*new wxMenu());
|
||||||
wxMenu& menu_help(*new wxMenu());
|
wxMenu& menu_help(*new wxMenu());
|
||||||
|
|
||||||
menubar.Append(&menu_boot, "Boot");
|
menubar.Append(&menu_boot, "Boot");
|
||||||
menubar.Append(&menu_sys, "System");
|
menubar.Append(&menu_sys, "System");
|
||||||
menubar.Append(&menu_conf, "Config");
|
menubar.Append(&menu_conf, "Config");
|
||||||
|
menubar.Append(&menu_compiler, "Compiler");
|
||||||
menubar.Append(&menu_help, "Help");
|
menubar.Append(&menu_help, "Help");
|
||||||
|
|
||||||
menu_boot.Append(id_boot_game, "Boot game");
|
menu_boot.Append(id_boot_game, "Boot game");
|
||||||
@ -83,6 +86,8 @@ MainFrame::MainFrame()
|
|||||||
menu_conf.Append(id_config_vfs_manager, "Virtual File System Manager");
|
menu_conf.Append(id_config_vfs_manager, "Virtual File System Manager");
|
||||||
menu_conf.Append(id_config_vhdd_manager, "Virtual HDD Manager");
|
menu_conf.Append(id_config_vhdd_manager, "Virtual HDD Manager");
|
||||||
|
|
||||||
|
menu_compiler.Append(id_compiler, "ELF Compiler");
|
||||||
|
|
||||||
menu_help.Append(id_help_about, "About...");
|
menu_help.Append(id_help_about, "About...");
|
||||||
|
|
||||||
SetMenuBar(&menubar);
|
SetMenuBar(&menubar);
|
||||||
@ -104,6 +109,8 @@ MainFrame::MainFrame()
|
|||||||
Connect( id_config_vfs_manager, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MainFrame::ConfigVFS) );
|
Connect( id_config_vfs_manager, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MainFrame::ConfigVFS) );
|
||||||
Connect( id_config_vhdd_manager,wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MainFrame::ConfigVHDD) );
|
Connect( id_config_vhdd_manager,wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MainFrame::ConfigVHDD) );
|
||||||
|
|
||||||
|
Connect( id_compiler, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MainFrame::OpenELFCompiler));
|
||||||
|
|
||||||
Connect( id_help_about, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MainFrame::AboutDialogHandler) );
|
Connect( id_help_about, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MainFrame::AboutDialogHandler) );
|
||||||
|
|
||||||
Connect( id_update_dbg, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MainFrame::UpdateUI) );
|
Connect( id_update_dbg, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MainFrame::UpdateUI) );
|
||||||
@ -478,6 +485,11 @@ void MainFrame::ConfigVHDD(wxCommandEvent& WXUNUSED(event))
|
|||||||
VHDDManagerDialog(this).ShowModal();
|
VHDDManagerDialog(this).ShowModal();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MainFrame::OpenELFCompiler(wxCommandEvent& WXUNUSED(event))
|
||||||
|
{
|
||||||
|
(new CompilerELF(this)) -> Show();
|
||||||
|
}
|
||||||
|
|
||||||
void MainFrame::AboutDialogHandler(wxCommandEvent& WXUNUSED(event))
|
void MainFrame::AboutDialogHandler(wxCommandEvent& WXUNUSED(event))
|
||||||
{
|
{
|
||||||
AboutDialog(this).ShowModal();
|
AboutDialog(this).ShowModal();
|
||||||
|
@ -30,6 +30,7 @@ private:
|
|||||||
void Config(wxCommandEvent& event);
|
void Config(wxCommandEvent& event);
|
||||||
void ConfigVFS(wxCommandEvent& event);
|
void ConfigVFS(wxCommandEvent& event);
|
||||||
void ConfigVHDD(wxCommandEvent& event);
|
void ConfigVHDD(wxCommandEvent& event);
|
||||||
|
void OpenELFCompiler(wxCommandEvent& evt);
|
||||||
void AboutDialogHandler(wxCommandEvent& event);
|
void AboutDialogHandler(wxCommandEvent& event);
|
||||||
void UpdateUI(wxCommandEvent& event);
|
void UpdateUI(wxCommandEvent& event);
|
||||||
void OnKeyDown(wxKeyEvent& event);
|
void OnKeyDown(wxKeyEvent& event);
|
||||||
|
@ -22,7 +22,7 @@ bool Rpcs3App::OnInit()
|
|||||||
SetTopWindow(m_MainFrame);
|
SetTopWindow(m_MainFrame);
|
||||||
Emu.Init();
|
Emu.Init();
|
||||||
|
|
||||||
(new CompilerELF(m_MainFrame))->Show();
|
// (new CompilerELF(m_MainFrame))->Show();
|
||||||
m_debugger_frame = new DebuggerPanel(m_MainFrame);
|
m_debugger_frame = new DebuggerPanel(m_MainFrame);
|
||||||
ConLogFrame = new LogFrame(m_MainFrame);
|
ConLogFrame = new LogFrame(m_MainFrame);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user