mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 15:01:16 +01:00
Update 2005 project files. Add websites to help menu.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@235 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
51317997f5
commit
3ccc46a67e
@ -751,6 +751,14 @@
|
|||||||
RelativePath=".\src\GameListCtrl.h"
|
RelativePath=".\src\GameListCtrl.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\MemoryCards\GCMemcard.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\MemoryCards\GCMemcard.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\src\Globals.cpp"
|
RelativePath=".\src\Globals.cpp"
|
||||||
>
|
>
|
||||||
@ -759,6 +767,14 @@
|
|||||||
RelativePath=".\src\Globals.h"
|
RelativePath=".\src\Globals.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\MemcardManager.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\MemcardManager.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\src\PluginOptions.cpp"
|
RelativePath=".\src\PluginOptions.cpp"
|
||||||
>
|
>
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
#include "Globals.h"
|
#include "Globals.h"
|
||||||
#include "Frame.h"
|
#include "Frame.h"
|
||||||
|
#include "FileUtil.h"
|
||||||
|
|
||||||
#include "GameListCtrl.h"
|
#include "GameListCtrl.h"
|
||||||
#include "BootManager.h"
|
#include "BootManager.h"
|
||||||
@ -79,8 +80,9 @@ const wxEventType wxEVT_HOST_COMMAND = wxNewEventType();
|
|||||||
BEGIN_EVENT_TABLE(CFrame, wxFrame)
|
BEGIN_EVENT_TABLE(CFrame, wxFrame)
|
||||||
EVT_MENU(wxID_OPEN, CFrame::OnOpen)
|
EVT_MENU(wxID_OPEN, CFrame::OnOpen)
|
||||||
EVT_MENU(wxID_EXIT, CFrame::OnQuit)
|
EVT_MENU(wxID_EXIT, CFrame::OnQuit)
|
||||||
EVT_MENU(wxID_HELP, CFrame::OnAbout)
|
EVT_MENU(IDM_HELPWEBSITE, CFrame::OnHelp)
|
||||||
EVT_MENU(IDM_ABOUT, CFrame::OnAbout)
|
EVT_MENU(IDM_HELPGOOGLECODE, CFrame::OnHelp)
|
||||||
|
EVT_MENU(IDM_HELPABOUT, CFrame::OnHelp)
|
||||||
EVT_MENU(wxID_REFRESH, CFrame::OnRefresh)
|
EVT_MENU(wxID_REFRESH, CFrame::OnRefresh)
|
||||||
EVT_MENU(IDM_PLAY, CFrame::OnPlay)
|
EVT_MENU(IDM_PLAY, CFrame::OnPlay)
|
||||||
EVT_MENU(IDM_STOP, CFrame::OnStop)
|
EVT_MENU(IDM_STOP, CFrame::OnStop)
|
||||||
@ -210,7 +212,10 @@ void CFrame::CreateMenu()
|
|||||||
wxMenu* helpMenu = new wxMenu;
|
wxMenu* helpMenu = new wxMenu;
|
||||||
/*helpMenu->Append(wxID_HELP, _T("&Help"));
|
/*helpMenu->Append(wxID_HELP, _T("&Help"));
|
||||||
re-enable when there's something useful to display*/
|
re-enable when there's something useful to display*/
|
||||||
helpMenu->Append(wxID_HELP, _T("&About..."));
|
helpMenu->Append(IDM_HELPWEBSITE, _T("&Dolphin web site"));
|
||||||
|
helpMenu->Append(IDM_HELPGOOGLECODE, _T("&Dolphin at Google Code"));
|
||||||
|
helpMenu->AppendSeparator();
|
||||||
|
helpMenu->Append(IDM_HELPABOUT, _T("&About..."));
|
||||||
m_pMenuBar->Append(helpMenu, _T("&Help"));
|
m_pMenuBar->Append(helpMenu, _T("&Help"));
|
||||||
|
|
||||||
// Associate the menu bar with the frame
|
// Associate the menu bar with the frame
|
||||||
@ -329,15 +334,17 @@ void CFrame::OnQuit(wxCommandEvent& WXUNUSED (event))
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CFrame::OnAbout(wxCommandEvent& WXUNUSED (event))
|
void CFrame::OnHelp(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
|
switch (event.GetId()) {
|
||||||
|
case IDM_HELPABOUT:
|
||||||
|
{
|
||||||
wxAboutDialogInfo info;
|
wxAboutDialogInfo info;
|
||||||
info.AddDeveloper(_T("ector"));
|
info.AddDeveloper(_T("ector"));
|
||||||
info.AddDeveloper(_T("F|RES"));
|
info.AddDeveloper(_T("F|RES"));
|
||||||
info.AddDeveloper(_T("yaz0r"));
|
info.AddDeveloper(_T("yaz0r"));
|
||||||
info.AddDeveloper(_T("zerofrog"));
|
info.AddDeveloper(_T("zerofrog"));
|
||||||
|
/* info.SetLicence(wxString::FromAscii(
|
||||||
/* info.SetLicence(wxString::FromAscii(
|
|
||||||
"Dolphin Licence 1.0"
|
"Dolphin Licence 1.0"
|
||||||
"#include GPL.TXT"));
|
"#include GPL.TXT"));
|
||||||
*/
|
*/
|
||||||
@ -345,12 +352,15 @@ void CFrame::OnAbout(wxCommandEvent& WXUNUSED (event))
|
|||||||
info.AddArtist(_T("miloszwl@miloszwl.com (miloszwl.deviantart.com)"));
|
info.AddArtist(_T("miloszwl@miloszwl.com (miloszwl.deviantart.com)"));
|
||||||
|
|
||||||
wxAboutBox(info);
|
wxAboutBox(info);
|
||||||
}
|
break;
|
||||||
|
}
|
||||||
|
case IDM_HELPWEBSITE:
|
||||||
void CFrame::OnHelp(wxCommandEvent& WXUNUSED (event))
|
File::Launch("http://www.dolphin-emu.com/");
|
||||||
{
|
break;
|
||||||
wxMessageBox(wxString::FromAscii("missing OnHelp()"));
|
case IDM_HELPGOOGLECODE:
|
||||||
|
File::Launch("http://code.google.com/p/dolphin-emu/");
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -50,10 +50,8 @@ class CFrame
|
|||||||
void RecreateToolbar();
|
void RecreateToolbar();
|
||||||
void CreateMenu();
|
void CreateMenu();
|
||||||
|
|
||||||
|
|
||||||
// event handler
|
// event handler
|
||||||
void OnQuit(wxCommandEvent& event);
|
void OnQuit(wxCommandEvent& event);
|
||||||
void OnAbout(wxCommandEvent& event);
|
|
||||||
void OnHelp(wxCommandEvent& event);
|
void OnHelp(wxCommandEvent& event);
|
||||||
void OnRefresh(wxCommandEvent& event);
|
void OnRefresh(wxCommandEvent& event);
|
||||||
void OnPluginOptions(wxCommandEvent& event);
|
void OnPluginOptions(wxCommandEvent& event);
|
||||||
|
@ -45,7 +45,9 @@ enum
|
|||||||
IDM_HOST_MESSAGE,
|
IDM_HOST_MESSAGE,
|
||||||
IDM_BOOTING_STARTED,
|
IDM_BOOTING_STARTED,
|
||||||
IDM_BOOTING_ENDED,
|
IDM_BOOTING_ENDED,
|
||||||
IDM_ABOUT,
|
IDM_HELPABOUT,
|
||||||
|
IDM_HELPWEBSITE,
|
||||||
|
IDM_HELPGOOGLECODE,
|
||||||
ID_TOOLBAR = 500,
|
ID_TOOLBAR = 500,
|
||||||
LIST_CTRL = 1000
|
LIST_CTRL = 1000
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user