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.
|
|
|
|
//
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// AEGISUB
|
|
|
|
//
|
|
|
|
// Website: http://aegisub.cellosoft.com
|
|
|
|
// Contact: mailto:zeratul@cellosoft.com
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
////////////
|
|
|
|
// Includes
|
2007-01-04 06:04:31 +01:00
|
|
|
#include <wx/statline.h>
|
2007-09-12 01:22:26 +02:00
|
|
|
#include <wx/stattext.h>
|
|
|
|
#include <wx/sizer.h>
|
|
|
|
#include <wx/button.h>
|
2006-12-24 22:52:54 +01:00
|
|
|
#include "dialog_about.h"
|
2006-01-16 22:02:54 +01:00
|
|
|
#include "version.h"
|
|
|
|
#include "options.h"
|
|
|
|
|
|
|
|
|
|
|
|
///////////////
|
|
|
|
// Constructor
|
2006-04-27 20:12:48 +02:00
|
|
|
AboutScreen::AboutScreen(wxWindow *parent)
|
2007-05-04 03:56:17 +02:00
|
|
|
: wxDialog (parent, -1, _("About Aegisub"), wxDefaultPosition, wxSize(300,240), wxCAPTION | wxCLOSE_BOX , _("About Aegisub"))
|
2006-01-16 22:02:54 +01:00
|
|
|
{
|
|
|
|
// Get splash
|
2006-04-27 20:12:48 +02:00
|
|
|
wxBitmap splash = wxBITMAP(splash);
|
2007-01-04 23:16:39 +01:00
|
|
|
SetOwnBackgroundColour(wxColour(255,255,255));
|
2007-01-04 18:24:16 +01:00
|
|
|
SetForegroundColour(wxColour(0,0,0));
|
2006-01-16 22:02:54 +01:00
|
|
|
|
|
|
|
// Picture
|
|
|
|
wxSizer *PicSizer = new wxBoxSizer(wxHORIZONTAL);
|
|
|
|
PicSizer->Add(new BitmapControl(this,splash));
|
|
|
|
|
2007-01-04 06:04:31 +01:00
|
|
|
// Generate library string
|
2007-01-04 18:24:16 +01:00
|
|
|
wxString libString = _("This build of Aegisub uses the following C/C++ libraries:\n");
|
|
|
|
libString += _T("wxWidgets - Copyright (c) 1998-2006 Julian Smart, Robert Roebling et al;\n");
|
2007-04-22 01:16:38 +02:00
|
|
|
libString += _T("wxStyledTextCtrl - Copyright (c) 2004 wxCode;\n");
|
2007-09-12 01:22:26 +02:00
|
|
|
libString += _T("Lua - Copyright (c) 1994-2007 Lua.org, PUC-Rio;\n");
|
2007-01-04 18:24:16 +01:00
|
|
|
libString += _T("Hunspell - Copyright (c) Kevin Hendricks;\n");
|
|
|
|
libString += _T("PortAudio - Copyright (c) 1999-2000 Ross Bencina, Phil Burk;\n");
|
2007-04-22 04:03:40 +02:00
|
|
|
libString += _T("FFmpeg - Copyright (c) 2001 Fabrice Bellard,;\n");
|
|
|
|
libString += _T("libass - Copyright (c) 2006-2007, Evgeniy Stepanov;\n");
|
2007-01-04 18:34:00 +01:00
|
|
|
libString += _T("asa - Copyright (c) 2004-2007, David Lamparter;\n");
|
2007-01-04 18:24:16 +01:00
|
|
|
libString += _T("MyThes - Copyright (c) 2003 Kevin B. Hendricks, Stratford, Ontario, Canada\n");
|
2007-01-21 07:30:19 +01:00
|
|
|
libString += _T("Matroska Parser and VideoSink - Copyright (c) 2004-2007 Mike Matsnev\n");
|
2007-01-04 06:04:31 +01:00
|
|
|
|
2006-02-22 21:52:00 +01:00
|
|
|
// Generate about string
|
|
|
|
wxString aboutString;
|
|
|
|
wxString translatorCredit = _("Translated into LANGUAGE by PERSON\n");
|
|
|
|
if (translatorCredit == _T("Translated into LANGUAGE by PERSON\n")) translatorCredit.Clear();
|
2006-05-07 14:38:33 +02:00
|
|
|
aboutString += wxString(_T("Aegisub ")) + GetAegisubShortVersionString() + _(" by ArchMage ZeratuL.\n");
|
2007-01-04 06:04:31 +01:00
|
|
|
aboutString += _T("Copyright (c) 2005-2007 - Rodrigo Braz Monteiro.\n\n");
|
|
|
|
aboutString += _T("Automation - Copyright (c) 2005-2007 Niels Martin Hansen (aka jfs).\n");
|
|
|
|
aboutString += _("Programmers: ");
|
2007-01-21 07:30:19 +01:00
|
|
|
aboutString += _T(" ArchMageZeratuL, jfs, Myrsloik, equinox, Tentacle, Yuvi,\n Azzy, Pomyk, Motoko-chan, Dansolo, Haali.\n");
|
2007-01-04 06:04:31 +01:00
|
|
|
aboutString += _("Manual by: ");
|
|
|
|
aboutString += _T("ArchMage ZeratuL, jfs, movax, Kobi, TheFluff, Jcubed.\n");
|
|
|
|
aboutString += _("Forum, wiki and bug tracker hosting by: ");
|
|
|
|
aboutString += _T("Bot1.\n");
|
2007-01-04 23:16:39 +01:00
|
|
|
aboutString += _("SVN hosting by: ");
|
2007-01-21 07:30:19 +01:00
|
|
|
aboutString += _T("equinox, BerliOS, Mentar.\n");
|
2006-02-22 21:52:00 +01:00
|
|
|
aboutString += translatorCredit;
|
2007-01-04 18:24:16 +01:00
|
|
|
aboutString += _T("\n") + libString;
|
2006-05-07 14:38:33 +02:00
|
|
|
aboutString += _("\nSee the help file for full credits.\n");
|
|
|
|
aboutString += wxString::Format(_("Built by %s on %s."), GetAegisubBuildCredit().c_str(), GetAegisubBuildTime().c_str());
|
2006-02-22 21:52:00 +01:00
|
|
|
|
2007-01-04 18:34:00 +01:00
|
|
|
// Replace copyright symbol
|
|
|
|
wxChar copySymbol = 0xA9;
|
|
|
|
aboutString.Replace(_T("(c)"),wxString(copySymbol));
|
|
|
|
|
2006-01-16 22:02:54 +01:00
|
|
|
// Text sizer
|
|
|
|
wxSizer *TextSizer = new wxBoxSizer(wxVERTICAL);
|
2006-02-22 21:52:00 +01:00
|
|
|
TextSizer->Add(new wxStaticText(this,-1,aboutString),1);
|
2006-01-16 22:02:54 +01:00
|
|
|
|
2007-01-04 23:16:39 +01:00
|
|
|
// Buttons panel
|
|
|
|
wxPanel *buttonPanel = new wxPanel(this,-1,wxDefaultPosition,wxDefaultSize,wxTAB_TRAVERSAL);
|
2006-01-16 22:02:54 +01:00
|
|
|
wxSizer *ButtonSizer = new wxBoxSizer(wxHORIZONTAL);
|
|
|
|
ButtonSizer->AddStretchSpacer(1);
|
2007-09-12 01:22:26 +02:00
|
|
|
#ifndef __APPLE__
|
2007-01-04 23:16:39 +01:00
|
|
|
ButtonSizer->Add(new wxButton(buttonPanel,wxID_OK),0,wxALIGN_RIGHT | wxALL,7);
|
2006-06-19 04:57:27 +02:00
|
|
|
#else
|
2007-01-04 23:16:39 +01:00
|
|
|
wxButton *okButton = new wxButton(buttonPanel,wxID_OK);
|
|
|
|
ButtonSizer->Add(okButton,0,wxALIGN_RIGHT | wxALL,7);
|
2006-06-19 04:57:27 +02:00
|
|
|
okButton->SetDefault();
|
|
|
|
#endif
|
2007-01-04 23:16:39 +01:00
|
|
|
ButtonSizer->SetSizeHints(buttonPanel);
|
|
|
|
buttonPanel->SetSizer(ButtonSizer);
|
2006-01-16 22:02:54 +01:00
|
|
|
|
|
|
|
// Main sizer
|
|
|
|
wxSizer *MainSizer = new wxBoxSizer(wxVERTICAL);
|
2007-01-04 23:16:39 +01:00
|
|
|
MainSizer->Add(PicSizer,0,0,0);
|
|
|
|
MainSizer->Add(TextSizer,0,wxEXPAND | wxALL,10);
|
|
|
|
MainSizer->Add(new wxStaticLine(this,wxID_ANY),0,wxEXPAND | wxALL,0);
|
|
|
|
MainSizer->Add(buttonPanel,0,wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT,0);
|
2006-01-16 22:02:54 +01:00
|
|
|
|
|
|
|
// Set sizer
|
|
|
|
MainSizer->SetSizeHints(this);
|
|
|
|
SetSizer(MainSizer);
|
|
|
|
|
|
|
|
// Draw logo
|
|
|
|
Centre();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//////////////
|
|
|
|
// Destructor
|
|
|
|
AboutScreen::~AboutScreen () {
|
|
|
|
}
|