- Added an about box with the author list

This commit is contained in:
shashclp 2008-03-03 00:11:34 +00:00
parent 158681c738
commit 60ef7d8d67
5 changed files with 123 additions and 8 deletions

View File

@ -0,0 +1,54 @@
/*
Copyright (C) 2008 shash
This file is part of DeSmuME
DeSmuME is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
DeSmuME is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with DeSmuME; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <mmsystem.h>
#include <COMMDLG.H>
#include <string.h>
#include "CWindow.h"
#include "AboutBox.h"
#include "resource.h"
BOOL CALLBACK AboutBox_Proc (HWND dialog, UINT message,WPARAM wparam,LPARAM lparam)
{
switch(message)
{
case WM_INITDIALOG:
{
SetDlgItemText(dialog, IDC_AUTHORS_LIST, "Original author\n---------------\nyopyop\n\nCurrent team\n------------\nAllustar\namponzi\nape\ndelfare\nGuillaume Duhamel\nNormmatt\nRomain Vallet\nshash\nTheo Berkau\nthoduv\nTim Seidel (Mighty Max)\nDamien Nozay (damdoum)\nPascal Giard (evilynux)\nBen Jaques (masscat)\nJeff Bland\n\nContributors\n------------\nAnthony Molinaro\nsnkmad");
break;
}
case WM_COMMAND:
{
if((HIWORD(wparam) == BN_CLICKED)&&(((int)LOWORD(wparam)) == IDC_FERMER))
{
EndDialog(dialog,0);
return 1;
}
break;
}
}
return 0;
}

View File

@ -0,0 +1,26 @@
/*
Copyright (C) 2008 shash
This file is part of DeSmuME
DeSmuME is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
DeSmuME is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with DeSmuME; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef ABOUTBOX_H
#define ABOUTBOX_H
BOOL CALLBACK AboutBox_Proc(HWND dialog,UINT komunikat,WPARAM wparam,LPARAM lparam);
#endif

View File

@ -48,6 +48,7 @@
#include "lightview.h"
#include "ConfigKeys.h"
#include "FirmConfig.h"
#include "AboutBox.h"
#include "OGLRender.h"
#include "../render3D.h"
#include "../gdbstub.h"
@ -1575,6 +1576,16 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM
case IDM_FORUM:
ShellExecute(NULL, "open", "http://forums.desmume.org/index.php", NULL, NULL, SW_SHOWNORMAL);
return 0;
case IDM_ABOUT:
{
cwindow_struct aboutBox;
if (CWindow_Init2(&aboutBox, hAppInst, HWND_DESKTOP, "About desmume...", IDD_ABOUT_BOX, AboutBox_Proc) == 0)
CWindow_Show(&aboutBox);
break;
}
case IDM_SUBMITBUGREPORT:
ShellExecute(NULL, "open", "http://sourceforge.net/tracker/?func=add&group_id=164579&atid=832291", NULL, NULL, SW_SHOWNORMAL);
return 0;

View File

@ -243,6 +243,9 @@ void refreshAll();
#define IDC_EDIT1 1102
#define IDC_EDIT2 1103
#define IDD_ABOUT_BOX 1301
#define IDM_ABOUT 40003
#define IDC_AUTHORS_LIST 1302
// ============================================================================
// Matrix Viewer ID's (1200 to 1299)

View File

@ -1,5 +1,7 @@
// Microsoft Visual C++ generated resource script.
//
#include "resrc1.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
@ -56,7 +58,7 @@ END
/////////////////////////////////////////////////////////////////////////////
// Danish resources
// Danés resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_DAN)
#ifdef _WIN32
@ -532,12 +534,12 @@ BEGIN
WS_GROUP
END
#endif // Danish resources
#endif // Danés resources
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// German (Germany) resources
// Alemán (Alemania) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_DEU)
#ifdef _WIN32
@ -643,12 +645,12 @@ BEGIN
END
#endif // APSTUDIO_INVOKED
#endif // German (Germany) resources
#endif // Alemán (Alemania) resources
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources
// Inglés (Estados Unidos) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
@ -793,6 +795,7 @@ BEGIN
MENUITEM "&Website", IDM_WEBSITE
MENUITEM "&Forums", IDM_FORUM
MENUITEM "&Submit a bug report", IDM_SUBMITBUGREPORT
MENUITEM "&About", IDM_ABOUT
END
END
@ -1270,6 +1273,16 @@ BEGIN
ES_AUTOHSCROLL | ES_READONLY
END
IDD_ABOUT_BOX DIALOGEX 0, 0, 126, 246
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION |
WS_SYSMENU
CAPTION "About desmume..."
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
DEFPUSHBUTTON "Aceptar",IDC_FERMER,38,225,50,14
CTEXT "",IDC_AUTHORS_LIST,7,7,112,216,0,WS_EX_CLIENTEDGE
END
/////////////////////////////////////////////////////////////////////////////
//
@ -1286,15 +1299,23 @@ BEGIN
TOPMARGIN, 7
BOTTOMMARGIN, 170
END
IDD_ABOUT_BOX, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 119
TOPMARGIN, 7
BOTTOMMARGIN, 239
END
END
#endif // APSTUDIO_INVOKED
#endif // English (U.S.) resources
#endif // Inglés (Estados Unidos) resources
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// French (France) resources
// Francés (Francia) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_FRA)
#ifdef _WIN32
@ -1671,7 +1692,7 @@ BEGIN
PUSHBUTTON "&Fermer",IDC_FERMER,50,134,50,14
END
#endif // French (France) resources
#endif // Francés (Francia) resources
/////////////////////////////////////////////////////////////////////////////