2 Copyright (C) 2013-2015 Carl Hetherington <cth@carlh.net>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 /** @file src/wx/about_dialog.cc
21 * @brief The "about DCP-o-matic" dialogue box.
24 #include "about_dialog.h"
26 #include "lib/version.h"
27 #include "lib/compose.hpp"
28 #include <wx/notebook.h>
29 #include <wx/hyperlink.h>
33 AboutDialog::AboutDialog (wxWindow* parent)
34 : wxDialog (parent, wxID_ANY, _("About DCP-o-matic"))
36 wxBoxSizer* overall_sizer = new wxBoxSizer (wxVERTICAL);
37 wxBoxSizer* sizer = new wxBoxSizer (wxVERTICAL);
39 wxFont title_font (*wxNORMAL_FONT);
40 title_font.SetPointSize (title_font.GetPointSize() + 12);
41 title_font.SetWeight (wxFONTWEIGHT_BOLD);
43 wxFont subtitle_font (*wxNORMAL_FONT);
44 subtitle_font.SetPointSize (subtitle_font.GetPointSize() + 2);
46 wxFont version_font (*wxNORMAL_FONT);
47 version_font.SetWeight (wxFONTWEIGHT_BOLD);
49 wxStaticText* t = new wxStaticText (this, wxID_ANY, _("DCP-o-matic"));
50 t->SetFont (title_font);
51 sizer->Add (t, wxSizerFlags().Centre().Border(wxALL, 16));
54 if (strcmp (dcpomatic_git_commit, "release") == 0) {
55 t = new wxStaticText (this, wxID_ANY, std_to_wx (String::compose ("Version %1", dcpomatic_version)));
57 t = new wxStaticText (this, wxID_ANY, std_to_wx (String::compose ("Version %1 git %2", dcpomatic_version, dcpomatic_git_commit)));
59 t->SetFont (version_font);
60 sizer->Add (t, wxSizerFlags().Centre().Border(wxALL, 2));
61 sizer->AddSpacer (12);
63 t = new wxStaticText (
65 _("Free, open-source DCP creation from almost anything."),
66 wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER
68 t->SetFont (subtitle_font);
70 sizer->Add (t, wxSizerFlags().Centre().Border(wxALL, 8));
72 wxHyperlinkCtrl* h = new wxHyperlinkCtrl (
74 wxT ("dcpomatic.com"),
75 wxT ("http://dcpomatic.com")
78 sizer->Add (h, wxSizerFlags().Centre().Border(wxALL, 8));
80 t = new wxStaticText (
82 _("(C) 2012-2015 Carl Hetherington, Terrence Meiczinger\n Ole Laursen, Brecht Sanders"),
83 wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER
86 sizer->Add (t, wxSizerFlags().Centre().Border(wxLEFT | wxRIGHT, 16));
88 _notebook = new wxNotebook (this, wxID_ANY);
90 wxArrayString written_by;
91 written_by.Add (wxT ("Carl Hetherington"));
92 written_by.Add (wxT ("Terrence Meiczinger"));
93 written_by.Add (wxT ("Ole Laursen"));
94 written_by.Add (wxT ("Brecht Sanders"));
95 written_by.Add (wxT ("Jianguo Huang"));
96 add_section (_("Written by"), written_by);
98 wxArrayString translated_by;
99 translated_by.Add (wxT ("Manuel AC"));
100 translated_by.Add (wxT ("Max Aeschlimann"));
101 translated_by.Add (wxT ("Grégoire Ausina"));
102 translated_by.Add (wxT ("Cherif Ben Brahim"));
103 translated_by.Add (wxT ("Massimiliano Broggi"));
104 translated_by.Add (wxT ("Davide Dall'AraCiao"));
105 translated_by.Add (wxT ("William Fanelli"));
106 translated_by.Add (wxT ("Thierry Journet"));
107 translated_by.Add (wxT ("Adam Klotblixt"));
108 translated_by.Add (wxT ("Theo Kooijmans"));
109 translated_by.Add (wxT ("Carsten Kurz"));
110 translated_by.Add (wxT ("Lilian Lefranc"));
111 translated_by.Add (wxT ("Gérald Maruccia"));
112 translated_by.Add (wxT ("Rob van Nieuwkerk"));
113 translated_by.Add (wxT ("Anders Uhl Pedersen"));
114 translated_by.Add (wxT ("Olivier Perriere"));
115 translated_by.Add (wxT ("Markus Raab"));
116 translated_by.Add (wxT ("Davide Sanvito"));
117 translated_by.Add (wxT ("Marek Skrzelowski"));
118 translated_by.Add (wxT ("Igor Voytovich"));
119 add_section (_("Translated by"), translated_by);
121 wxArrayString with_help_from;
122 with_help_from.Add (wxT ("David Vignoni"));
123 with_help_from.Add (wxT ("Dennis Couzin"));
124 with_help_from.Add (wxT ("Gérald Maruccia"));
125 add_section (_("With help from"), with_help_from);
127 wxArrayString supported_by;
128 supported_by.Add (wxT ("Manuel AC"));
129 supported_by.Add (wxT ("Kambiz Afshar"));
130 supported_by.Add (wxT ("Alex Asp"));
131 supported_by.Add (wxT ("Eric Audurier"));
132 supported_by.Add (wxT ("Louis Belloisy"));
133 supported_by.Add (wxT ("Mike Blakesley"));
134 supported_by.Add (wxT ("Jeff Boot"));
135 supported_by.Add (wxT ("Silvio Bonomi"));
136 supported_by.Add (wxT ("Kieran Carroll"));
137 supported_by.Add (wxT ("Matt Carter"));
138 supported_by.Add (wxT ("Frank Cianciolo"));
139 supported_by.Add (wxT ("Cinema Clarici"));
140 supported_by.Add (wxT ("Adam Colt"));
141 supported_by.Add (wxT ("Adam Cousins"));
142 supported_by.Add (wxT ("Matthias Damm"));
143 supported_by.Add (wxT ("Alexey Derevyanko"));
144 supported_by.Add (wxT ("Thomas Dickens"));
145 supported_by.Add (wxT ("Unwana Essien"));
146 supported_by.Add (wxT ("Maxime Estoppey"));
147 supported_by.Add (wxT ("Rasitha Ferdinando"));
148 supported_by.Add (wxT ("Jose Angel Velasco Fernandez"));
149 supported_by.Add (wxT ("Traverso City Film Festival"));
150 supported_by.Add (wxT ("Andres Fink"));
151 supported_by.Add (wxT ("Dave Fleegel"));
152 supported_by.Add (wxT ("Evan Freeze"));
153 supported_by.Add (wxT ("Silvio Giuliano"));
154 supported_by.Add (wxT ("Alan Gouger"));
155 supported_by.Add (wxT ("Christopher Gray"));
156 supported_by.Add (wxT ("Vincent Grenier"));
157 supported_by.Add (wxT ("Flor Guillaume"));
158 supported_by.Add (wxT ("Patrick Haderer"));
159 supported_by.Add (wxT ("Jeff Hemingway"));
160 supported_by.Add (wxT ("Antonio Ruiz Hernandez"));
161 supported_by.Add (wxT ("Jonathan Jensen"));
162 supported_by.Add (wxT ("Zbigniew Kamiński"));
163 supported_by.Add (wxT ("Chris Kay"));
164 supported_by.Add (wxT ("Lars Kelto"));
165 supported_by.Add (wxT ("Erwan Kerzanet"));
166 supported_by.Add (wxT ("Adam Klotblixt"));
167 supported_by.Add (wxT ("Filip Kovcin"));
168 supported_by.Add (wxT ("Cihan Kulaber"));
169 supported_by.Add (wxT ("Carsten Kurz"));
170 supported_by.Add (wxT ("Daniel Martinez Lara"));
171 supported_by.Add (wxT ("Lilian Lefranc"));
172 supported_by.Add (wxT ("Sean Leigh"));
173 supported_by.Add (wxT ("Olivier Lemaire"));
174 supported_by.Add (wxT ("Gavin Lewarne"));
175 supported_by.Add (wxT ("Theo Lipfert"));
176 supported_by.Add (wxT ("Paweł Lipiński"));
177 supported_by.Add (wxT ("Adrian Manolescu"));
178 supported_by.Add (wxT ("Mattias Mattsson"));
179 supported_by.Add (wxT ("Kjarten Michaelsen"));
180 supported_by.Add (wxT ("Aldo Midali"));
181 supported_by.Add (wxT ("Sylvain Mielle"));
182 supported_by.Add (wxT ("Howard Molton"));
183 supported_by.Add (wxT ("Lindsay Morris"));
184 supported_by.Add (wxT ("David Nedrow"));
185 supported_by.Add (wxT ("Tim O'Brien"));
186 supported_by.Add (wxT ("Jerome Cohen Olivar"));
187 supported_by.Add (wxT ("Kevin Orman"));
188 supported_by.Add (wxT ("Rui Pereira"));
189 supported_by.Add (wxT ("Ceridwen Productions"));
190 supported_by.Add (wxT ("Ivan Pullman"));
191 supported_by.Add (wxT ("Mark Rolfe"));
192 supported_by.Add (wxT ("David Rozenthal"));
193 supported_by.Add (wxT ("Lasse Salling"));
194 supported_by.Add (wxT ("Jussi Siponen"));
195 supported_by.Add (wxT ("Peter Sprenger"));
196 supported_by.Add (wxT ("Randy Stankey"));
197 supported_by.Add (wxT ("Andrä Steiner"));
198 supported_by.Add (wxT ("Mike Stiebing"));
199 supported_by.Add (wxT ("Christian Suhren"));
200 supported_by.Add (wxT ("Bruce Taylor"));
201 supported_by.Add (wxT ("Lawrence Towers"));
202 supported_by.Add (wxT ("Richard Turner"));
203 supported_by.Add (wxT ("Andrew Walls"));
204 supported_by.Add (wxT ("Raoul Walzer"));
205 supported_by.Add (wxT ("Wolfram Weber"));
206 supported_by.Add (wxT ("Frank Wenz"));
207 supported_by.Add (wxT ("Johannes Wilbrand"));
208 supported_by.Add (wxT ("Roland Wirtz"));
209 supported_by.Add (wxT ("Wolfgang Woehl"));
210 supported_by.Add (wxT ("Frank de Wulf"));
211 supported_by.Add (wxT ("Pavel Zhdanko"));
212 supported_by.Add (wxT ("Cinéma de la Neuveville"));
213 supported_by.Add (wxT ("Frechen-Film e.V."));
214 supported_by.Add (wxT ("Daniel Židek"));
215 supported_by.Add (wxT ("Гуляев Михаил"));
216 add_section (_("Supported by"), supported_by);
218 wxArrayString tested_by;
219 tested_by.Add (wxT ("Trever Anderson"));
220 tested_by.Add (wxT ("Mike Blakesley"));
221 tested_by.Add (wxT ("David Booty"));
222 tested_by.Add (wxT ("Roop Chand"));
223 tested_by.Add (wxT ("Daniel Chauvet"));
224 tested_by.Add (wxT ("Adam Colt"));
225 tested_by.Add (wxT ("John Convertino"));
226 tested_by.Add (wxT ("Andreas Eli"));
227 tested_by.Add (wxT ("Jose Angel Velasco Fernandez"));
228 tested_by.Add (wxT ("Maurizio Giampà"));
229 tested_by.Add (wxT ("Luke Granger-Brown"));
230 tested_by.Add (wxT ("Sumit Guha"));
231 tested_by.Add (wxT ("Steve Guttag"));
232 tested_by.Add (wxT ("Patrick Haderer"));
233 tested_by.Add (wxT ("Bill Hamell"));
234 tested_by.Add (wxT ("Jonathan Jensen"));
235 tested_by.Add (wxT ("Thierry Journet"));
236 tested_by.Add (wxT ("Markus Kalb"));
237 tested_by.Add (wxT ("Ada de Kamper"));
238 tested_by.Add (wxT ("Stefan Karner"));
239 tested_by.Add (wxT ("Adam Keay"));
240 tested_by.Add (wxT ("Simon Kesselman"));
241 tested_by.Add (wxT ("Pepijn Klijs"));
242 tested_by.Add (wxT ("Denzil Kriekenbeek"));
243 tested_by.Add (wxT ("Carsten Kurz"));
244 tested_by.Add (wxT ("Bill Lam"));
245 tested_by.Add (wxT ("Lilian Lefranc"));
246 tested_by.Add (wxT ("Olivier Lemaire"));
247 tested_by.Add (wxT ("Gavin Lewarne"));
248 tested_by.Add (wxT ("Gérald Maruccia"));
249 tested_by.Add (wxT ("Mattias Mattsson"));
250 tested_by.Add (wxT ("Will Meadows"));
251 tested_by.Add (wxT ("Brad Miller"));
252 tested_by.Add (wxT ("Ash Mitchell"));
253 tested_by.Add (wxT ("Anders Nordentoft-Madsen"));
254 tested_by.Add (wxT ("Mauro Ottonello"));
255 tested_by.Add (wxT ("Peter Puchner"));
256 tested_by.Add (wxT ("Markus Raab"));
257 tested_by.Add (wxT ("Michael Reckert"));
258 tested_by.Add (wxT ("Greg Rooke"));
259 tested_by.Add (wxT ("Elad Saad"));
260 tested_by.Add (wxT ("Karim Senoucci"));
261 tested_by.Add (wxT ("Hordur Valgardsson"));
262 tested_by.Add (wxT ("Simon Vannarath"));
263 tested_by.Add (wxT ("Igor Voytovich"));
264 tested_by.Add (wxT ("Andrew Walls"));
265 tested_by.Add (wxT ("Andreas Weiss"));
266 tested_by.Add (wxT ("Paul Willmott"));
267 tested_by.Add (wxT ("Wolfgang Woehl"));
268 add_section (_("Tested by"), tested_by);
270 sizer->Add (_notebook, wxSizerFlags().Centre().Border(wxALL, 16).Expand());
272 overall_sizer->Add (sizer);
274 wxSizer* buttons = CreateButtonSizer (wxOK);
276 overall_sizer->Add (buttons, 1, wxEXPAND | wxALL, 4);
279 SetSizerAndFit (overall_sizer);
282 /** Add a section of credits.
283 * @param name Name of section.
284 * @param credits List of names.
287 AboutDialog::add_section (wxString name, wxArrayString credits)
289 static bool first = true;
292 wxPanel* panel = new wxPanel (_notebook, wxID_ANY);
293 wxSizer* overall_sizer = new wxBoxSizer (wxHORIZONTAL);
295 vector<wxSizer*> sizers;
297 for (int i = 0; i < N; ++i) {
298 sizers.push_back (new wxBoxSizer (wxVERTICAL));
299 overall_sizer->Add (sizers.back (), 1, wxEXPAND | wxALL, 6);
303 for (size_t i = 0; i < credits.Count(); ++i) {
304 add_label_to_sizer (sizers[c], panel, credits[i], false);
311 panel->SetSizerAndFit (overall_sizer);
312 _notebook->AddPage (panel, name, first);