// 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. // // Aegisub Project http://www.aegisub.org/ // // $Id$ /// @file dialog_about.cpp /// @brief About-dialogue box /// @ingroup configuration_ui /// //////////// // Includes #include "config.h" #ifndef AGI_PRE #include #include #include #include #include #include #include #endif #include "dialog_about.h" #include "libresrc/libresrc.h" #include "version.h" /// @brief Constructor /// @param parent Parent frame. /// AboutScreen::AboutScreen(wxWindow *parent) : wxDialog (parent, -1, _("About Aegisub"), wxDefaultPosition, wxDefaultSize, wxCAPTION | wxCLOSE_BOX , _("About Aegisub")) { // Generate library string wxString libString = _T("Aegisub includes portions from the following other projects:\n"); libString += _T(" wxWidgets - Copyright (c) Julian Smart, Robert Roebling et al;\n"); libString += _T(" wxStyledTextCtrl - Copyright (c) Robin Dunn, Neil Hodgson;\n"); libString += _T(" Scintilla - Copyright (c) Neil Hodgson;\n"); libString += _T(" UniversalCharDet - Copyright (c) Netscape Communications Corp.;\n"); #ifdef WITH_AUTO4_LUA libString += _T(" Lua - Copyright (c) Lua.org, PUC-Rio;\n"); #endif #ifdef WITH_HUNSPELL libString += _T(" Hunspell - Copyright (c) Kevin Hendricks;\n"); #endif #ifdef WITH_PORTAUDIO libString += _T(" PortAudio - Copyright (c) Ross Bencina, Phil Burk;\n"); #endif #ifdef WITH_FFMPEGSOURCE libString += _T(" FFmpeg - Copyright (c) Fabrice Bellard;\n"); libString += _T(" FFmpegSource - Copyright (c) Fredrik Mellbin;\n"); #endif #ifdef WITH_AVISYNTH libString += _T(" Avisynth 2.5 - Copyright (c) Ben Rudiak-Gould et al;\n"); #endif #ifdef WITH_CSRI libString += _T(" csri - Copyright (c) David Lamparter;\n"); # ifdef __WINDOWS__ libString += _T(" vsfilter - Copyright (c) Gabest;\n"); # endif #endif #ifdef WITH_LIBASS libString += _T(" libass - Copyright (c) Evgeniy Stepanov, Grigori Goronzy;\n"); #endif #ifdef __WINDOWS__ libString += _T(" Matroska Parser - Copyright (c) Mike Matsnev;\n"); #endif #ifdef WITH_FREETYPE2 libString += _T(" Freetype - Copyright (c) David Turner, Robert Wilhelm, Werner Lemberg;\n"); #endif libString += _T(" MyThes - Copyright (c) Kevin B. Hendricks, Stratford, Ontario, Canada.\n"); wxString translatorCredit = _("Translated into LANGUAGE by PERSON\n"); if (translatorCredit == _T("Translated into LANGUAGE by PERSON\n")) translatorCredit.Clear(); // Generate about string wxString aboutString; aboutString += wxString(_T("Aegisub ")) + GetAegisubShortVersionString() + _T(".\n"); aboutString += _T("Copyright (c) 2005-2010 Rodrigo Braz Monteiro, Niels Martin Hansen et al.\n\n"); aboutString += _T("Programmers:\n"); aboutString += _T(" Alysson Souza e Silva\n"); aboutString += _T(" Amar Takhar\n"); aboutString += _T(" Dan Donovan\n"); aboutString += _T(" Daniel Moscoviter\n"); aboutString += _T(" David Conrad\n"); aboutString += _T(" David Lamparter\n"); aboutString += _T(" Eric Batalitzky\n"); aboutString += _T(" Evgeniy Stepanov\n"); aboutString += _T(" Fredrik Mellbin\n"); aboutString += _T(" Grigori Goronzy\n"); aboutString += _T(" Karl Blomster\n"); aboutString += _T(" Mike Matsnev\n"); aboutString += _T(" Moritz Brunner\n"); aboutString += _T(" Muhammad Lukman Nasaruddin\n"); aboutString += _T(" Niels Martin Hansen\n"); aboutString += _T(" Patryk Pomykalski\n"); aboutString += _T(" Ravi Pinjala\n"); aboutString += _T(" Rodrigo Braz Monteiro\n"); aboutString += _T(" Simone Cociancich\n"); aboutString += _T(" Thomas Goyne\n"); aboutString += _T("User manual written by:\n"); aboutString += _T(" Karl Blomster\n"); aboutString += _T(" Niels Martin Hansen\n"); aboutString += _T(" Rodrigo Braz Monteiro\n"); aboutString += _T("Icons by:\n"); aboutString += _T(" Philip Cash\n"); aboutString += _T("Additional thanks to:\n"); aboutString += _T(" Mentar\n"); aboutString += _T(" Sigurd Tao Lyngse\n"); aboutString += _T(" Everyone in the Aegisub IRC channel\n"); aboutString += _T(" Everyone who ever reported a bug\n"); aboutString += translatorCredit; aboutString += _T("\n") + libString; aboutString += _("\nSee the help file for full credits.\n"); aboutString += wxString::Format(_("Built by %s on %s."), GetAegisubBuildCredit(), GetAegisubBuildTime()); // Replace copyright symbol wxChar copySymbol = 0xA9; aboutString.Replace(_T("(c)"),wxString(copySymbol)); wxTextCtrl *textctrl = new wxTextCtrl(this, -1, aboutString, wxDefaultPosition, wxSize(-1,200), wxTE_MULTILINE|wxTE_READONLY|wxBORDER_NONE); wxSizer *MainSizer = new wxBoxSizer(wxVERTICAL); MainSizer->Add(new wxStaticBitmap(this, -1, GETIMAGE(splash)), 0, wxCENTER, 0); 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(); } /// @brief Destructor /// AboutScreen::~AboutScreen () { }