2006-01-16 22:02:54 +01:00
|
|
|
// Copyright (c) 2005, Rodrigo Braz Monteiro
|
|
|
|
// All rights reserved.
|
|
|
|
//
|
|
|
|
// Redistribution and use in source and binary forms, with or without
|
|
|
|
// modification, are permitted provided that the following conditions are met:
|
|
|
|
//
|
|
|
|
// * Redistributions of source code must retain the above copyright notice,
|
|
|
|
// this list of conditions and the following disclaimer.
|
|
|
|
// * Redistributions in binary form must reproduce the above copyright notice,
|
|
|
|
// this list of conditions and the following disclaimer in the documentation
|
|
|
|
// and/or other materials provided with the distribution.
|
|
|
|
// * Neither the name of the Aegisub Group nor the names of its contributors
|
|
|
|
// may be used to endorse or promote products derived from this software
|
|
|
|
// without specific prior written permission.
|
|
|
|
//
|
|
|
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
|
|
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
|
|
|
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
|
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
// POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
//
|
2009-07-29 07:43:02 +02:00
|
|
|
// Aegisub Project http://www.aegisub.org/
|
|
|
|
|
|
|
|
/// @file dialog_about.cpp
|
|
|
|
/// @brief About-dialogue box
|
|
|
|
/// @ingroup configuration_ui
|
|
|
|
///
|
2006-01-16 22:02:54 +01:00
|
|
|
|
2009-01-04 07:31:48 +01:00
|
|
|
#include "config.h"
|
|
|
|
|
2007-09-12 01:22:26 +02:00
|
|
|
#include <wx/button.h>
|
2009-09-10 12:26:50 +02:00
|
|
|
#include <wx/panel.h>
|
2009-09-10 15:06:40 +02:00
|
|
|
#include <wx/sizer.h>
|
2010-06-29 19:48:17 +02:00
|
|
|
#include <wx/statbmp.h>
|
2009-09-10 15:06:40 +02:00
|
|
|
#include <wx/statline.h>
|
|
|
|
#include <wx/stattext.h>
|
2009-09-10 12:26:50 +02:00
|
|
|
#include <wx/textctrl.h>
|
2009-09-10 15:06:40 +02:00
|
|
|
|
2006-12-24 22:52:54 +01:00
|
|
|
#include "dialog_about.h"
|
2009-07-24 02:08:25 +02:00
|
|
|
#include "libresrc/libresrc.h"
|
2009-09-10 15:06:40 +02:00
|
|
|
#include "version.h"
|
2006-01-16 22:02:54 +01:00
|
|
|
|
2006-04-27 20:12:48 +02:00
|
|
|
AboutScreen::AboutScreen(wxWindow *parent)
|
2010-06-29 19:48:17 +02:00
|
|
|
: wxDialog (parent, -1, _("About Aegisub"), wxDefaultPosition, wxDefaultSize, wxCAPTION | wxCLOSE_BOX , _("About Aegisub"))
|
2006-01-16 22:02:54 +01:00
|
|
|
{
|
2007-01-04 06:04:31 +01:00
|
|
|
// Generate library string
|
2011-09-28 21:43:11 +02:00
|
|
|
wxString libString = "Aegisub includes portions from the following other projects:\n";
|
|
|
|
libString += " wxWidgets - Copyright (c) Julian Smart, Robert Roebling et al;\n";
|
|
|
|
libString += " wxStyledTextCtrl - Copyright (c) Robin Dunn, Neil Hodgson;\n";
|
|
|
|
libString += " Scintilla - Copyright (c) Neil Hodgson;\n";
|
|
|
|
libString += " UniversalCharDet - Copyright (c) Netscape Communications Corp.;\n";
|
|
|
|
libString += " Lua - Copyright (c) Lua.org, PUC-Rio;\n";
|
2008-01-25 22:20:38 +01:00
|
|
|
#ifdef WITH_HUNSPELL
|
2011-09-28 21:43:11 +02:00
|
|
|
libString += " Hunspell - Copyright (c) Kevin Hendricks;\n";
|
2008-01-25 22:20:38 +01:00
|
|
|
#endif
|
|
|
|
#ifdef WITH_PORTAUDIO
|
2011-09-28 21:43:11 +02:00
|
|
|
libString += " PortAudio - Copyright (c) Ross Bencina, Phil Burk;\n";
|
2008-10-28 01:08:52 +01:00
|
|
|
#endif
|
2011-12-22 22:25:49 +01:00
|
|
|
#ifdef WITH_FFMS2
|
2011-09-28 21:43:11 +02:00
|
|
|
libString += " FFmpeg - Copyright (c) Fabrice Bellard;\n";
|
2011-12-22 22:32:29 +01:00
|
|
|
libString += " FFMS2 - Copyright (c) Fredrik Mellbin;\n";
|
2008-01-25 22:20:38 +01:00
|
|
|
#endif
|
2008-01-25 22:44:55 +01:00
|
|
|
#ifdef WITH_AVISYNTH
|
2011-09-28 21:43:11 +02:00
|
|
|
libString += " Avisynth 2.5 - Copyright (c) Ben Rudiak-Gould et al;\n";
|
2008-01-25 22:20:38 +01:00
|
|
|
#endif
|
|
|
|
#ifdef WITH_CSRI
|
2011-09-28 21:43:11 +02:00
|
|
|
libString += " csri - Copyright (c) David Lamparter;\n";
|
2009-06-17 02:49:41 +02:00
|
|
|
# ifdef __WINDOWS__
|
2011-09-28 21:43:11 +02:00
|
|
|
libString += " vsfilter - Copyright (c) Gabest;\n";
|
2009-06-17 02:49:41 +02:00
|
|
|
# endif
|
2008-01-25 22:44:55 +01:00
|
|
|
#endif
|
2011-09-28 21:43:11 +02:00
|
|
|
libString += " libass - Copyright (c) Evgeniy Stepanov, Grigori Goronzy;\n";
|
2008-01-25 22:44:55 +01:00
|
|
|
#ifdef __WINDOWS__
|
2011-09-28 21:43:11 +02:00
|
|
|
libString += " Matroska Parser - Copyright (c) Mike Matsnev;\n";
|
2009-06-17 02:49:41 +02:00
|
|
|
#endif
|
2011-09-28 21:43:11 +02:00
|
|
|
libString += " Freetype - Copyright (c) David Turner, Robert Wilhelm, Werner Lemberg;\n";
|
2011-12-22 22:32:37 +01:00
|
|
|
#ifdef WITH_FFTW3
|
2011-12-23 23:05:44 +01:00
|
|
|
libString += " FFTW - Copyright (c) Matteo Frigo, Massachusetts Institute of Technology;\n";
|
2011-12-22 22:32:37 +01:00
|
|
|
#endif
|
2007-01-04 06:04:31 +01:00
|
|
|
|
2006-02-22 21:52:00 +01:00
|
|
|
wxString translatorCredit = _("Translated into LANGUAGE by PERSON\n");
|
2011-09-28 21:43:11 +02:00
|
|
|
if (translatorCredit == "Translated into LANGUAGE by PERSON\n") translatorCredit.Clear();
|
2009-06-17 02:49:41 +02:00
|
|
|
|
|
|
|
// Generate about string
|
|
|
|
wxString aboutString;
|
2011-09-28 21:43:11 +02:00
|
|
|
aboutString += wxString("Aegisub ") + GetAegisubShortVersionString() + ".\n";
|
2012-01-08 02:34:24 +01:00
|
|
|
aboutString += "Copyright (c) 2005-2012 Rodrigo Braz Monteiro, Niels Martin Hansen, Thomas Goyne et al.\n\n";
|
2011-09-28 21:43:11 +02:00
|
|
|
aboutString += "Programmers:\n";
|
|
|
|
aboutString += " Alysson Souza e Silva\n";
|
|
|
|
aboutString += " Amar Takhar\n";
|
|
|
|
aboutString += " Dan Donovan\n";
|
|
|
|
aboutString += " Daniel Moscoviter\n";
|
|
|
|
aboutString += " David Conrad\n";
|
|
|
|
aboutString += " David Lamparter\n";
|
|
|
|
aboutString += " Eric Batalitzky\n";
|
|
|
|
aboutString += " Evgeniy Stepanov\n";
|
|
|
|
aboutString += " Fredrik Mellbin\n";
|
|
|
|
aboutString += " Grigori Goronzy\n";
|
|
|
|
aboutString += " Karl Blomster\n";
|
|
|
|
aboutString += " Mike Matsnev\n";
|
|
|
|
aboutString += " Moritz Brunner\n";
|
|
|
|
aboutString += " Muhammad Lukman Nasaruddin\n";
|
|
|
|
aboutString += " Niels Martin Hansen\n";
|
|
|
|
aboutString += " Patryk Pomykalski\n";
|
|
|
|
aboutString += " Ravi Pinjala\n";
|
|
|
|
aboutString += " Rodrigo Braz Monteiro\n";
|
|
|
|
aboutString += " Simone Cociancich\n";
|
|
|
|
aboutString += " Thomas Goyne\n";
|
|
|
|
aboutString += "User manual written by:\n";
|
|
|
|
aboutString += " Karl Blomster\n";
|
|
|
|
aboutString += " Niels Martin Hansen\n";
|
|
|
|
aboutString += " Rodrigo Braz Monteiro\n";
|
|
|
|
aboutString += "Icons by:\n";
|
|
|
|
aboutString += " Philip Cash\n";
|
|
|
|
aboutString += "Additional thanks to:\n";
|
|
|
|
aboutString += " Mentar\n";
|
|
|
|
aboutString += " Sigurd Tao Lyngse\n";
|
|
|
|
aboutString += " Everyone in the Aegisub IRC channel\n";
|
|
|
|
aboutString += " Everyone who ever reported a bug\n";
|
2006-02-22 21:52:00 +01:00
|
|
|
aboutString += translatorCredit;
|
2011-09-28 21:43:11 +02:00
|
|
|
aboutString += "\n" + libString;
|
2006-05-07 14:38:33 +02:00
|
|
|
aboutString += _("\nSee the help file for full credits.\n");
|
2011-07-28 00:52:37 +02:00
|
|
|
aboutString += wxString::Format(_("Built by %s on %s."), GetAegisubBuildCredit(), GetAegisubBuildTime());
|
2006-02-22 21:52:00 +01:00
|
|
|
|
2007-01-04 18:34:00 +01:00
|
|
|
// Replace copyright symbol
|
|
|
|
wxChar copySymbol = 0xA9;
|
2011-09-28 21:43:11 +02:00
|
|
|
aboutString.Replace("(c)",wxString(copySymbol));
|
2007-01-04 18:34:00 +01:00
|
|
|
|
2010-06-29 19:48:17 +02:00
|
|
|
wxTextCtrl *textctrl = new wxTextCtrl(this, -1, aboutString, wxDefaultPosition, wxSize(-1,200), wxTE_MULTILINE|wxTE_READONLY|wxBORDER_NONE);
|
2006-01-16 22:02:54 +01:00
|
|
|
|
|
|
|
wxSizer *MainSizer = new wxBoxSizer(wxVERTICAL);
|
2011-01-11 18:00:11 +01:00
|
|
|
MainSizer->Add(new wxStaticBitmap(this, -1, GETIMAGE(splash)), 0, wxCENTER, 0);
|
2010-06-29 19:48:17 +02:00
|
|
|
MainSizer->Add(new wxStaticLine(this, wxID_ANY), 0, wxEXPAND|wxALL, 0);
|
|
|
|
MainSizer->Add(textctrl, 0, wxEXPAND|wxALL, 0);
|
|
|
|
MainSizer->Add(new wxStaticLine(this, wxID_ANY), 0, wxEXPAND|wxALL, 0);
|
|
|
|
MainSizer->Add(CreateButtonSizer(wxOK), 0, wxEXPAND|wxALL, 6);
|
|
|
|
|
|
|
|
SetSizerAndFit(MainSizer);
|
|
|
|
CentreOnParent();
|
2006-01-16 22:02:54 +01:00
|
|
|
}
|