1 // Copyright (c) 2005, Rodrigo Braz Monteiro
2 // All rights reserved.
3 //
4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are met:
6 //
7 // * Redistributions of source code must retain the above copyright notice,
8 // this list of conditions and the following disclaimer.
9 // * Redistributions in binary form must reproduce the above copyright notice,
10 // this list of conditions and the following disclaimer in the documentation
11 // and/or other materials provided with the distribution.
12 // * Neither the name of the Aegisub Group nor the names of its contributors
13 // may be used to endorse or promote products derived from this software
14 // without specific prior written permission.
15 //
16 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
20 // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 // POSSIBILITY OF SUCH DAMAGE.
27 //
28 // Aegisub Project http://www.aegisub.org/
29
30 #include "libresrc/libresrc.h"
31 #include "format.h"
32 #include "version.h"
33
34 #include <wx/button.h>
35 #include <wx/dialog.h>
36 #include <wx/panel.h>
37 #include <wx/sizer.h>
38 #include <wx/statbmp.h>
39 #include <wx/statline.h>
40 #include <wx/stattext.h>
41 #include <wx/textctrl.h>
42
ShowAboutDialog(wxWindow * parent)43 void ShowAboutDialog(wxWindow *parent) {
44 wxDialog d(parent, -1, _("About Aegisub"), wxDefaultPosition, wxDefaultSize, wxCAPTION | wxCLOSE_BOX);
45
46 wxString translatorCredit = _("Translated into LANGUAGE by PERSON\n");
47 if (translatorCredit == "Translated into LANGUAGE by PERSON\n")
48 translatorCredit.clear();
49
50 // Generate about string
51 wxString aboutString = wxString("Aegisub ") + GetAegisubShortVersionString() + ".\n"
52 "Copyright (c) 2005-2014 Rodrigo Braz Monteiro, Niels Martin Hansen, Thomas Goyne et al.\n\n"
53 "Programmers:\n"
54 " Alysson Souza e Silva\n"
55 " Amar Takhar\n"
56 " Dan Donovan\n"
57 " Daniel Moscoviter\n"
58 " David Conrad\n"
59 " David Lamparter\n"
60 " Eric Batalitzky\n"
61 " Evgeniy Stepanov\n"
62 " Fredrik Mellbin\n"
63 " Grigori Goronzy\n"
64 " Karl Blomster\n"
65 " Mike Matsnev\n"
66 " Moritz Brunner\n"
67 " Muhammad Lukman Nasaruddin\n"
68 " Niels Martin Hansen\n"
69 " Patryk Pomykalski\n"
70 " Ravi Pinjala\n"
71 " Rodrigo Braz Monteiro\n"
72 " Simone Cociancich\n"
73 " Thomas Goyne\n"
74 "User manual written by:\n"
75 " Karl Blomster\n"
76 " Niels Martin Hansen\n"
77 " Rodrigo Braz Monteiro\n"
78 "Icons by:\n"
79 " Philip Cash\n"
80 "Additional thanks to:\n"
81 " Mentar\n"
82 " Sigurd Tao Lyngse\n"
83 " Everyone in the Aegisub IRC channel\n"
84 " Everyone who ever reported a bug\n"
85 + translatorCredit + "\n"
86 "Aegisub includes portions from the following other projects:\n"
87 " wxWidgets - Copyright (c) Julian Smart, Robert Roebling et al;\n"
88 " wxStyledTextCtrl - Copyright (c) Robin Dunn, Neil Hodgson;\n"
89 " Scintilla - Copyright (c) Neil Hodgson;\n"
90 " Boost - Copyright (c) Beman Dawes, David Abrahams et al;\n"
91 " UniversalCharDet - Copyright (c) Netscape Communications Corp.;\n"
92 " ICU - Copyright (c) International Business Machines Corp.;\n"
93 " Lua - Copyright (c) Lua.org, PUC-Rio;\n"
94 " LuaJIT - Copyright (c) Mike Pall;\n"
95 " luabins - Copyright (c) Alexander Gladysh;\n"
96 #ifdef WITH_HUNSPELL
97 " Hunspell - Copyright (c) Kevin Hendricks;\n"
98 #endif
99 #ifdef WITH_PORTAUDIO
100 " PortAudio - Copyright (c) Ross Bencina, Phil Burk;\n"
101 #endif
102 #ifdef WITH_FFMS2
103 " FFmpeg - Copyright (c) Fabrice Bellard;\n"
104 " FFMS2 - Copyright (c) Fredrik Mellbin;\n"
105 #endif
106 #ifdef WITH_AVISYNTH
107 " Avisynth 2.5 - Copyright (c) Ben Rudiak-Gould et al;\n"
108 #endif
109 #ifdef WITH_CSRI
110 " csri - Copyright (c) David Lamparter;\n"
111 # ifdef __WINDOWS__
112 " vsfilter - Copyright (c) Gabest et al;\n"
113 # endif
114 #endif
115 " libass - Copyright (c) Evgeniy Stepanov, Grigori Goronzy;\n"
116 " Matroska Parser - Copyright (c) Mike Matsnev;\n"
117 " Freetype - Copyright (c) David Turner, Robert Wilhelm, Werner Lemberg;\n"
118 " Fontconfig - Copyright (c) Keith Packard et al;\n"
119 #ifdef WITH_FFTW3
120 " FFTW - Copyright (c) Matteo Frigo, Massachusetts Institute of Technology;\n"
121 #endif
122 + _("\nSee the help file for full credits.\n")
123 + fmt_tl("Built by %s on %s.", GetAegisubBuildCredit(), GetAegisubBuildTime());
124
125 // Replace copyright symbol
126 wxChar copySymbol = 0xA9;
127 aboutString.Replace("(c)", wxString(copySymbol));
128
129 wxTextCtrl *textctrl = new wxTextCtrl(&d, -1, aboutString, wxDefaultPosition, wxSize(-1, 200), wxTE_MULTILINE | wxTE_READONLY | wxBORDER_NONE);
130
131 wxSizer *MainSizer = new wxBoxSizer(wxVERTICAL);
132 MainSizer->Add(new wxStaticBitmap(&d, -1, GETIMAGE(splash)), 0, wxCENTER, 0);
133 MainSizer->Add(new wxStaticLine(&d, wxID_ANY), 0, wxEXPAND | wxALL, 0);
134 MainSizer->Add(textctrl, 0, wxEXPAND | wxALL, 0);
135 MainSizer->Add(new wxStaticLine(&d, wxID_ANY), 0, wxEXPAND | wxALL, 0);
136 MainSizer->Add(d.CreateButtonSizer(wxOK), 0, wxEXPAND | wxALL, 6);
137
138 d.SetSizerAndFit(MainSizer);
139 d.CentreOnParent();
140 d.ShowModal();
141 }
142