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/
|
2006-01-16 22:02:54 +01:00
|
|
|
//
|
2009-07-29 07:43:02 +02:00
|
|
|
// $Id$
|
|
|
|
|
|
|
|
/// @file dialog_about.cpp
|
|
|
|
/// @brief About-dialogue box
|
|
|
|
/// @ingroup configuration_ui
|
|
|
|
///
|
2006-01-16 22:02:54 +01:00
|
|
|
|
|
|
|
|
|
|
|
////////////
|
|
|
|
// Includes
|
2009-01-04 07:31:48 +01:00
|
|
|
#include "config.h"
|
|
|
|
|
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"
|
2009-07-24 02:08:25 +02:00
|
|
|
#include "libresrc/libresrc.h"
|
2009-07-25 18:15:13 +02:00
|
|
|
|
2006-01-16 22:02:54 +01:00
|
|
|
|
|
|
|
|
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
|
|
|
|
2009-08-01 06:02:20 +02:00
|
|
|
/// @brief Constructor
|
|
|
|
/// @param parent Parent frame.
|
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
|
|
|
///
|
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
|
2009-07-25 06:49:59 +02:00
|
|
|
wxBitmap splash = GETIMAGE(splash_misc);
|
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
|
2009-06-17 02:49:41 +02:00
|
|
|
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");
|
|
|
|
#ifdef WITH_AUTO4_LUA
|
|
|
|
libString += _T(" Lua - Copyright (c) Lua.org, PUC-Rio;\n");
|
2008-01-25 22:20:38 +01:00
|
|
|
#endif
|
|
|
|
#ifdef WITH_HUNSPELL
|
|
|
|
libString += _T(" Hunspell - Copyright (c) Kevin Hendricks;\n");
|
|
|
|
#endif
|
|
|
|
#ifdef WITH_PORTAUDIO
|
2009-06-17 02:49:41 +02:00
|
|
|
libString += _T(" PortAudio - Copyright (c) Ross Bencina, Phil Burk;\n");
|
2008-10-28 01:08:52 +01:00
|
|
|
#endif
|
|
|
|
#ifdef WITH_FFMPEGSOURCE
|
2009-06-17 02:49:41 +02:00
|
|
|
libString += _T(" FFmpeg - Copyright (c) Fabrice Bellard;\n");
|
2009-06-17 06:10:11 +02:00
|
|
|
libString += _T(" FFmpegSource - 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
|
2009-06-17 02:49:41 +02:00
|
|
|
libString += _T(" Avisynth 2.5 - Copyright (c) Ben Rudiak-Gould et al;\n");
|
2008-01-25 22:20:38 +01:00
|
|
|
#endif
|
|
|
|
#ifdef WITH_CSRI
|
2009-06-17 02:49:41 +02:00
|
|
|
libString += _T(" csri - Copyright (c) David Lamparter;\n");
|
|
|
|
# ifdef __WINDOWS__
|
2008-01-25 22:44:55 +01:00
|
|
|
libString += _T(" vsfilter - Copyright (c) Gabest;\n");
|
2009-06-17 02:49:41 +02:00
|
|
|
# endif
|
2008-01-25 22:44:55 +01:00
|
|
|
#endif
|
|
|
|
#ifdef WITH_LIBASS
|
2009-07-14 21:45:43 +02:00
|
|
|
libString += _T(" libass - Copyright (c) Evgeniy Stepanov, Grigori Goronzy;\n");
|
2008-01-25 22:44:55 +01:00
|
|
|
#endif
|
|
|
|
#ifdef WITH_UNIVCHARDET
|
2009-06-17 02:49:41 +02:00
|
|
|
libString += _T(" UniversalCharDet - Copyright (c) Netscape Communications Corp.;\n");
|
2008-01-25 22:44:55 +01:00
|
|
|
#endif
|
|
|
|
#ifdef __WINDOWS__
|
2009-06-17 02:49:41 +02:00
|
|
|
libString += _T(" Matroska Parser - Copyright (c) Mike Matsnev;\n");
|
|
|
|
#endif
|
2008-01-25 22:44:55 +01:00
|
|
|
#ifdef WITH_FREETYPE2
|
2009-06-17 02:49:41 +02:00
|
|
|
libString += _T(" Freetype - Copyright (c) David Turner, Robert Wilhelm, Werner Lemberg;\n");
|
2008-01-25 22:20:38 +01:00
|
|
|
#endif
|
2009-06-17 02:49:41 +02:00
|
|
|
libString += _T(" MyThes - Copyright (c) Kevin B. Hendricks, Stratford, Ontario, Canada.\n");
|
2007-01-04 06:04:31 +01:00
|
|
|
|
2006-02-22 21:52:00 +01:00
|
|
|
wxString translatorCredit = _("Translated into LANGUAGE by PERSON\n");
|
|
|
|
if (translatorCredit == _T("Translated into LANGUAGE by PERSON\n")) translatorCredit.Clear();
|
2009-06-17 02:49:41 +02:00
|
|
|
|
|
|
|
// Generate about string
|
|
|
|
wxString aboutString;
|
2008-01-25 22:20:38 +01:00
|
|
|
aboutString += wxString(_T("Aegisub ")) + GetAegisubShortVersionString() + _T(".\n");
|
2009-06-17 02:49:41 +02:00
|
|
|
aboutString += _T("Copyright (c) 2005-2009 Rodrigo Braz Monteiro, Niels Martin Hansen et al.\n\n");
|
|
|
|
aboutString += _T("Programmers:\n");
|
2009-06-17 03:02:32 +02:00
|
|
|
aboutString += _T(" Alysson Souza e Silva\n");
|
|
|
|
aboutString += _T(" Amar Takhar\n");
|
2009-06-17 02:49:41 +02:00
|
|
|
aboutString += _T(" Dan Donovan\n");
|
|
|
|
aboutString += _T(" Daniel Moscoviter\n");
|
|
|
|
aboutString += _T(" David Conrad\n");
|
|
|
|
aboutString += _T(" David Lamparter\n");
|
2009-06-17 04:42:26 +02:00
|
|
|
aboutString += _T(" Eric Batalitzky\n");
|
2009-06-17 02:49:41 +02:00
|
|
|
aboutString += _T(" Evgeniy Stepanov\n");
|
|
|
|
aboutString += _T(" Fredrik Mellbin\n");
|
|
|
|
aboutString += _T(" Karl Blomster\n");
|
|
|
|
aboutString += _T(" Mike Matsnev\n");
|
|
|
|
aboutString += _T(" Muhammad Lukman Nasaruddin\n");
|
|
|
|
aboutString += _T(" Niels Martin Hansen\n");
|
|
|
|
aboutString += _T(" Patryk Pomykalski\n");
|
|
|
|
aboutString += _T(" Rodrigo Braz Monteiro\n");
|
|
|
|
aboutString += _T(" Simone Cociancich\n");
|
2009-06-17 04:42:26 +02:00
|
|
|
aboutString += _T(" Thomas Goyne\n");
|
2009-06-17 02:49:41 +02:00
|
|
|
aboutString += _T(" 2points\n");
|
|
|
|
aboutString += _T(" p-static\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("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");
|
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);
|
2008-01-25 22:44:55 +01:00
|
|
|
//TextSizer->Add(new wxStaticText(this,-1,aboutString),1);
|
|
|
|
TextSizer->Add(new wxTextCtrl(this,-1,aboutString,wxDefaultPosition,wxSize(410,200),wxTE_MULTILINE | wxTE_READONLY),1,wxEXPAND);
|
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);
|
2008-01-25 22:44:55 +01:00
|
|
|
MainSizer->Add(PicSizer,0,wxCENTER,0);
|
|
|
|
MainSizer->Add(TextSizer,0,wxEXPAND | wxALL,0);
|
2007-01-04 23:16:39 +01:00
|
|
|
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();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2009-08-01 06:02:20 +02:00
|
|
|
/// @brief Destructor
|
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
|
|
|
///
|
2006-01-16 22:02:54 +01:00
|
|
|
AboutScreen::~AboutScreen () {
|
|
|
|
}
|
2009-07-29 07:43:02 +02:00
|
|
|
|
Note: This was done using a script! it's far from perfect but 95% of the work has been done already formatting-wise.
Document all functions, class, struct, union, enum, macro, variable, typedefs. This isn't the actual document in itself but empty documentation using any old documentation if it was there.
This was done using exuberant ctags to get tag info, then a TCL script to parse/remove old comments and convert them into Doxygen-style.
Some notes:
* Anything labeled 'DOCME' needs to be documented, @param and @return have been left blank as it would be annoying to delete the 'DOCME' from every one of those.
* Some multiline comments may have been munged into single line comments
* Leave the /// comments above global variables with a space, if they're harder to read then we'll be less likey to use them.
* Enum comments can go after the enumeration itself '[value] /// comment'
* include/aegisub/*.h haven't been converted yet, this will be done in a later commit
* Some documentation blocks are in the wrong place, in the .h when it should be in the .cpp, or vice versa.
See http://devel.aegisub.org/wiki/Doxygen for some details on Doxygen and a 'style guide'.
Originally committed to SVN as r3312.
2009-07-30 00:59:22 +02:00
|
|
|
|