2015-05-24 06:55:12 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								// Copyright 2008 Dolphin Emulator Project
 
							 
						 
					
						
							
								
									
										
										
										
											2015-05-18 01:08:10 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								// Licensed under GPLv2+
 
							 
						 
					
						
							
								
									
										
										
										
											2013-04-17 23:43:35 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								// Refer to the license.txt file included.
 
							 
						 
					
						
							
								
									
										
										
										
											2009-02-06 18:04:24 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2014-02-22 23:36:30 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								# include  <wx/bitmap.h> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# include  <wx/dialog.h> 
 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-04 21:12:18 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								# include  <wx/hyperlink.h> 
 
							 
						 
					
						
							
								
									
										
										
										
											2014-02-22 23:36:30 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								# include  <wx/image.h> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# include  <wx/mstream.h> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# include  <wx/sizer.h> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# include  <wx/stattext.h> 
 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-04 21:12:18 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								# include  <wx/textctrl.h> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# include  <wx/generic/statbmpg.h> 
 
							 
						 
					
						
							
								
									
										
										
										
											2014-02-22 23:36:30 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-04-25 14:52:53 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								# ifdef __APPLE__ 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# import <AppKit / AppKit.h> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# endif 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2014-02-17 05:18:15 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								# include  "Common/Common.h" 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# include  "DolphinWX/AboutDolphin.h" 
 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-19 11:34:01 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								# include  "DolphinWX/WxUtils.h" 
 
							 
						 
					
						
							
								
									
										
										
										
											2008-12-08 05:30:24 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2010-06-10 14:39:08 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								AboutDolphin : : AboutDolphin ( wxWindow  * parent ,  wxWindowID  id , 
							 
						 
					
						
							
								
									
										
										
										
											2011-03-15 21:57:00 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
										const  wxString  & title ,  const  wxPoint  & position , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
										const  wxSize &  size ,  long  style ) 
							 
						 
					
						
							
								
									
										
										
										
											2010-06-10 14:39:08 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
									:  wxDialog ( parent ,  id ,  title ,  position ,  size ,  style ) 
							 
						 
					
						
							
								
									
										
										
										
											2008-12-08 05:30:24 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								{ 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-04 21:12:18 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
									wxGenericStaticBitmap *  const  sbDolphinLogo  =  new  wxGenericStaticBitmap ( this ,  wxID_ANY , 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-19 11:34:01 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
											WxUtils : : LoadResourceBitmap ( " dolphin_logo " ,  true ) ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2010-06-10 14:39:08 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-02-04 21:12:18 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
									const  wxString  DolphinText  =  _ ( " Dolphin " ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									const  wxString  RevisionText  =  scm_desc_str ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									const  wxString  CopyrightText  =  _ ( " (c) 2003-2015+ Dolphin Team.  \" GameCube \"  and  \" Wii \"  are trademarks of Nintendo. Dolphin is not affiliated with Nintendo in any way. " ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									const  wxString  BranchText  =  wxString : : Format ( _ ( " Branch: %s " ) ,  scm_branch_str ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									const  wxString  BranchRevText  =  wxString : : Format ( _ ( " Revision: %s " ) ,  scm_rev_git_str ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									const  wxString  CheckUpdateText  =  _ ( " Check for updates:  " ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									const  wxString  Text  =  _ ( " \n " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
										" Dolphin is a free and open-source GameCube and Wii emulator. \n " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
										" \n " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
										" This software should not be used to play games you do not legally own. \n " ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									const  wxString  LicenseText  =  _ ( " License " ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									const  wxString  AuthorsText  =  _ ( " Authors " ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									const  wxString  SupportText  =  _ ( " Support " ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2013-09-06 21:02:11 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-02-04 21:12:18 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
									wxStaticText *  const  Dolphin  =  new  wxStaticText ( this ,  wxID_ANY ,  DolphinText ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2015-04-30 17:32:45 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
									wxStaticText *  const  Revision  =  new  wxStaticText ( this ,  wxID_ANY ,  RevisionText ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-02-04 21:12:18 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
									wxStaticText *  const  Copyright  =  new  wxStaticText ( this ,  wxID_ANY ,  CopyrightText ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-14 00:52:41 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
									wxStaticText *  const  Branch  =  new  wxStaticText ( this ,  wxID_ANY ,  BranchText  +  " \n "  +  BranchRevText  +  " \n " ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2013-09-06 21:02:11 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
									wxStaticText *  const  Message  =  new  wxStaticText ( this ,  wxID_ANY ,  Text ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2015-04-29 19:59:34 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
									wxStaticText *  const  UpdateText  =  new  wxStaticText ( this ,  wxID_ANY ,  CheckUpdateText ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2015-04-30 18:04:49 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
									wxStaticText *  const  FirstSpacer  =  new  wxStaticText ( this ,  wxID_ANY ,  "   |   " ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									wxStaticText *  const  SecondSpacer  =  new  wxStaticText ( this ,  wxID_ANY ,  "   |   " ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-04 21:12:18 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
									wxHyperlinkCtrl *  const  Download  =  new  wxHyperlinkCtrl ( this ,  wxID_ANY ,  " dolphin-emu.org/download " ,  " https://dolphin-emu.org/download/ " ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									wxHyperlinkCtrl *  const  License  =  new  wxHyperlinkCtrl ( this ,  wxID_ANY ,  LicenseText ,  " https://github.com/dolphin-emu/dolphin/blob/master/license.txt " ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									wxHyperlinkCtrl *  const  Authors  =  new  wxHyperlinkCtrl ( this ,  wxID_ANY ,  AuthorsText ,  " https://github.com/dolphin-emu/dolphin/graphs/contributors " ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									wxHyperlinkCtrl *  const  Support  =  new  wxHyperlinkCtrl ( this ,  wxID_ANY ,  SupportText ,  " https://forums.dolphin-emu.org/ " ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									wxFont  DolphinFont  =  Dolphin - > GetFont ( ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									wxFont  RevisionFont  =  Revision - > GetFont ( ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									wxFont  CopyrightFont  =  Copyright - > GetFont ( ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									wxFont  BranchFont  =  Branch - > GetFont ( ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									DolphinFont . SetPointSize ( 36 ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									Dolphin - > SetFont ( DolphinFont ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									RevisionFont . SetWeight ( wxFONTWEIGHT_BOLD ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									Revision - > SetFont ( RevisionFont ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									BranchFont . SetPointSize ( 7 ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									Branch - > SetFont ( BranchFont ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									CopyrightFont . SetPointSize ( 7 ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									Copyright - > SetFont ( CopyrightFont ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									Copyright - > SetFocus ( ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									wxBoxSizer *  const  sCheckUpdates  =  new  wxBoxSizer ( wxHORIZONTAL ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2015-04-29 19:59:34 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
									sCheckUpdates - > Add ( UpdateText ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-04 21:12:18 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
									sCheckUpdates - > Add ( Download ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									wxBoxSizer *  const  sLinks  =  new  wxBoxSizer ( wxHORIZONTAL ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									sLinks - > Add ( License ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									sLinks - > Add ( FirstSpacer ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									sLinks - > Add ( Authors ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									sLinks - > Add ( SecondSpacer ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									sLinks - > Add ( Support ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2008-12-08 05:30:24 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2011-03-15 21:57:00 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
									wxBoxSizer *  const  sInfo  =  new  wxBoxSizer ( wxVERTICAL ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-04 21:12:18 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
									sInfo - > Add ( Dolphin ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									sInfo - > AddSpacer ( 5 ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									sInfo - > Add ( Revision ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									sInfo - > AddSpacer ( 10 ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									sInfo - > Add ( Branch ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									sInfo - > Add ( sCheckUpdates ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									sInfo - > Add ( Message ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									sInfo - > Add ( sLinks ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2011-03-15 21:57:00 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-04-25 04:22:32 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
									wxBoxSizer *  const  sLogo  =  new  wxBoxSizer ( wxVERTICAL ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									sLogo - > AddSpacer ( 75 ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									sLogo - > Add ( sbDolphinLogo ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									sLogo - > AddSpacer ( 40 ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2011-03-15 21:57:00 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
									wxBoxSizer *  const  sMainHor  =  new  wxBoxSizer ( wxHORIZONTAL ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2015-04-25 04:22:32 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
									sMainHor - > AddSpacer ( 30 ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									sMainHor - > Add ( sLogo ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									sMainHor - > AddSpacer ( 30 ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2008-12-08 05:30:24 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
									sMainHor - > Add ( sInfo ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-04 21:12:18 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
									sMainHor - > AddSpacer ( 30 ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									wxBoxSizer *  const  sFooter  =  new  wxBoxSizer ( wxVERTICAL ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									sFooter - > AddSpacer ( 15 ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2015-10-05 13:36:53 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
									sFooter - > Add ( Copyright ,  0 ,  wxALIGN_BOTTOM  |  wxALIGN_CENTER_HORIZONTAL ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-04 21:12:18 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
									sFooter - > AddSpacer ( 5 ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2008-12-08 05:30:24 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2011-03-15 21:57:00 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
									wxBoxSizer *  const  sMain  =  new  wxBoxSizer ( wxVERTICAL ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									sMain - > Add ( sMainHor ,  1 ,  wxEXPAND ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2015-02-04 21:12:18 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
									sMain - > Add ( sFooter ,  0 ,  wxEXPAND ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2008-12-08 05:30:24 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2011-03-16 22:22:21 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
									SetSizerAndFit ( sMain ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2011-03-15 21:57:00 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
									Center ( ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									SetFocus ( ) ; 
							 
						 
					
						
							
								
									
										
										
										
											2008-12-08 05:30:24 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								}