2 Copyright (C) 2013-2017 Carl Hetherington <cth@carlh.net>
4 This file is part of DCP-o-matic.
6 DCP-o-matic is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 DCP-o-matic is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with DCP-o-matic. If not, see <http://www.gnu.org/licenses/>.
21 /** @file src/wx/about_dialog.cc
22 * @brief The "about DCP-o-matic" dialogue box.
25 #include "about_dialog.h"
27 #include "lib/version.h"
28 #include "lib/compose.hpp"
29 #include <wx/notebook.h>
30 #include <wx/hyperlink.h>
34 AboutDialog::AboutDialog (wxWindow* parent)
35 : wxDialog (parent, wxID_ANY, _("About DCP-o-matic"))
37 wxBoxSizer* overall_sizer = new wxBoxSizer (wxVERTICAL);
38 wxBoxSizer* sizer = new wxBoxSizer (wxVERTICAL);
40 wxFont title_font (*wxNORMAL_FONT);
41 title_font.SetPointSize (title_font.GetPointSize() + 12);
42 title_font.SetWeight (wxFONTWEIGHT_BOLD);
44 wxFont subtitle_font (*wxNORMAL_FONT);
45 subtitle_font.SetPointSize (subtitle_font.GetPointSize() + 2);
47 wxFont version_font (*wxNORMAL_FONT);
48 version_font.SetWeight (wxFONTWEIGHT_BOLD);
50 wxStaticText* t = new wxStaticText (this, wxID_ANY, _("DCP-o-matic"));
51 t->SetFont (title_font);
52 sizer->Add (t, wxSizerFlags().Centre().Border(wxALL, 16));
55 if (strcmp (dcpomatic_git_commit, "release") == 0) {
56 t = new wxStaticText (this, wxID_ANY, std_to_wx (String::compose ("Version %1", dcpomatic_version)));
58 t = new wxStaticText (this, wxID_ANY, std_to_wx (String::compose ("Version %1 git %2", dcpomatic_version, dcpomatic_git_commit)));
60 t->SetFont (version_font);
61 sizer->Add (t, wxSizerFlags().Centre().Border(wxALL, 2));
62 sizer->AddSpacer (12);
64 t = new wxStaticText (
66 _("Free, open-source DCP creation from almost anything."),
67 wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER
69 t->SetFont (subtitle_font);
71 sizer->Add (t, wxSizerFlags().Centre().Border(wxALL, 8));
73 wxHyperlinkCtrl* h = new wxHyperlinkCtrl (
75 wxT ("dcpomatic.com"),
76 wxT ("http://dcpomatic.com")
79 sizer->Add (h, wxSizerFlags().Centre().Border(wxALL, 8));
81 t = new wxStaticText (
83 _("(C) 2012-2017 Carl Hetherington, Terrence Meiczinger\n Ole Laursen, Brecht Sanders"),
84 wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER
87 sizer->Add (t, wxSizerFlags().Centre().Border(wxLEFT | wxRIGHT, 16));
89 _notebook = new wxNotebook (this, wxID_ANY);
91 wxArrayString written_by;
92 written_by.Add (wxT ("Carl Hetherington"));
93 written_by.Add (wxT ("Terrence Meiczinger"));
94 written_by.Add (wxT ("Ole Laursen"));
95 written_by.Add (wxT ("Brecht Sanders"));
96 written_by.Add (wxT ("Jianguo Huang"));
97 add_section (_("Written by"), written_by);
99 wxArrayString translated_by;
100 translated_by.Add (wxT ("Manuel AC"));
101 translated_by.Add (wxT ("Max Aeschlimann"));
102 translated_by.Add (wxT ("Thiago Andre"));
103 translated_by.Add (wxT ("Grégoire Ausina"));
104 translated_by.Add (wxT ("Tomáš Begeni"));
105 translated_by.Add (wxT ("Fabio \"Zak\" Belli"));
106 translated_by.Add (wxT ("Cherif Ben Brahim"));
107 translated_by.Add (wxT ("Massimiliano Broggi"));
108 translated_by.Add (wxT ("Davide Dall'AraCiao"));
109 translated_by.Add (wxT ("William Fanelli"));
110 translated_by.Add (wxT ("Max M. Fuhlendorf"));
111 translated_by.Add (wxT ("Tomáš Hlaváč"));
112 translated_by.Add (wxT ("Thierry Journet"));
113 translated_by.Add (wxT ("Adam Klotblixt"));
114 translated_by.Add (wxT ("Theo Kooijmans"));
115 translated_by.Add (wxT ("Carsten Kurz"));
116 translated_by.Add (wxT ("Lilian Lefranc"));
117 translated_by.Add (wxT ("Gérald Maruccia"));
118 translated_by.Add (wxT ("Rob van Nieuwkerk"));
119 translated_by.Add (wxT ("Anders Uhl Pedersen"));
120 translated_by.Add (wxT ("Olivier Perriere"));
121 translated_by.Add (wxT ("Markus Raab"));
122 translated_by.Add (wxT ("Tiago Casal Ribeiro"));
123 translated_by.Add (wxT ("Davide Sanvito"));
124 translated_by.Add (wxT ("Marek Skrzelowski"));
125 translated_by.Add (wxT ("Igor Voytovich"));
126 translated_by.Add (wxT ("Rov (若文)"));
127 translated_by.Add (wxT ("刘汉源"));
128 add_section (_("Translated by"), translated_by);
130 wxArrayString with_help_from;
131 with_help_from.Add (wxT ("David Vignoni"));
132 with_help_from.Add (wxT ("Dennis Couzin"));
133 with_help_from.Add (wxT ("Gérald Maruccia"));
134 with_help_from.Add (wxT ("Julian van Mil"));
135 add_section (_("With help from"), with_help_from);
137 wxArrayString supported_by;
138 supported_by.Add (wxT ("Manuel AC"));
139 supported_by.Add (wxT ("Kambiz Afshar"));
140 supported_by.Add (wxT ("Louis Albini"));
141 supported_by.Add (wxT ("Alex Asp"));
142 supported_by.Add (wxT ("Georges Asmar"));
143 supported_by.Add (wxT ("Eric Audurier"));
144 supported_by.Add (wxT ("Kenneth Beals"));
145 supported_by.Add (wxT ("Jean-Pierre Beauviala"));
146 supported_by.Add (wxT ("Louis Belloisy"));
147 supported_by.Add (wxT ("Frans van den Berg"));
148 supported_by.Add (wxT ("Mike Blakesley"));
149 supported_by.Add (wxT ("Silvio Bonomi"));
150 supported_by.Add (wxT ("Fabio Bozzoli"));
151 supported_by.Add (wxT ("Pierre-Alexis Bontemps"));
152 supported_by.Add (wxT ("Jeff Boot"));
153 supported_by.Add (wxT ("Paul Carey"));
154 supported_by.Add (wxT ("Nathan Carpenter"));
155 supported_by.Add (wxT ("Kieran Carroll"));
156 supported_by.Add (wxT ("Matt Carter"));
157 supported_by.Add (wxT ("Frank Cianciolo"));
158 supported_by.Add (wxT ("Central Cinema"));
159 supported_by.Add (wxT ("Cinema Clarici"));
160 supported_by.Add (wxT ("Dan Cohen"));
161 supported_by.Add (wxT ("Adam Colt"));
162 supported_by.Add (wxT ("Adam Cousins"));
163 supported_by.Add (wxT ("Matthias Damm"));
164 supported_by.Add (wxT ("JP Davidson"));
165 supported_by.Add (wxT ("Yohann Dedy"));
166 supported_by.Add (wxT ("Alexey Derevyanko"));
167 supported_by.Add (wxT ("Thomas Dickens"));
168 supported_by.Add (wxT ("Unwana Essien"));
169 supported_by.Add (wxT ("Maxime Estoppey"));
170 supported_by.Add (wxT ("Peter Ericson"));
171 supported_by.Add (wxT ("Darius Family"));
172 supported_by.Add (wxT ("Rasitha Ferdinando"));
173 supported_by.Add (wxT ("Jose Angel Velasco Fernandez"));
174 supported_by.Add (wxT ("Traverso City Film Festival"));
175 supported_by.Add (wxT ("Andres Fink"));
176 supported_by.Add (wxT ("Dave Fleegel"));
177 supported_by.Add (wxT ("Evan Freeze"));
178 supported_by.Add (wxT ("Brett Friedman"));
179 supported_by.Add (wxT ("Stephen Furley"));
180 supported_by.Add (wxT ("filmtechniek.nl"));
181 supported_by.Add (wxT ("Gartenbaukino"));
182 supported_by.Add (wxT ("Silvio Giuliano"));
183 supported_by.Add (wxT ("Alan Gouger"));
184 supported_by.Add (wxT ("Christopher Gray"));
185 supported_by.Add (wxT ("Vincent Grenier"));
186 supported_by.Add (wxT ("Gerhard Gruber"));
187 supported_by.Add (wxT ("Flor Guillaume"));
188 supported_by.Add (wxT ("Patrick Haderer"));
189 supported_by.Add (wxT ("刘汉源"));
190 supported_by.Add (wxT ("Jeff Hemingway"));
191 supported_by.Add (wxT ("Antonio Ruiz Hernandez"));
192 supported_by.Add (wxT ("Joseph Huether"));
193 supported_by.Add (wxT ("Film.Ca Inc."));
194 supported_by.Add (wxT ("Denis Ivashvkevych"));
195 supported_by.Add (wxT ("Karl Jacob"));
196 supported_by.Add (wxT ("Henrik Jäger"));
197 supported_by.Add (wxT ("Tomasz Jagi"));
198 supported_by.Add (wxT ("Jonathan Jensen"));
199 supported_by.Add (wxT ("Mathew Johns"));
200 supported_by.Add (wxT ("Thierry Journet"));
201 supported_by.Add (wxT ("Mario Kalogjera"));
202 supported_by.Add (wxT ("Zbigniew Kamiński"));
203 supported_by.Add (wxT ("Klaus Karger"));
204 supported_by.Add (wxT ("Ikram Karimov"));
205 supported_by.Add (wxT ("Chris Kay"));
206 supported_by.Add (wxT ("Lars Kelto"));
207 supported_by.Add (wxT ("Erwan Kerzanet"));
208 supported_by.Add (wxT ("Kert Kiima"));
209 supported_by.Add (wxT ("Alabama Kino"));
210 supported_by.Add (wxT ("James Kirst"));
211 supported_by.Add (wxT ("Adam Klotblixt"));
212 supported_by.Add (wxT ("Filip Kovcin"));
213 supported_by.Add (wxT ("Cihan Kulaber"));
214 supported_by.Add (wxT ("Carsten Kurz"));
215 supported_by.Add (wxT ("David Armati Lechner"));
216 supported_by.Add (wxT ("Lilian Lefranc"));
217 supported_by.Add (wxT ("Robert Legato"));
218 supported_by.Add (wxT ("Sean Leigh"));
219 supported_by.Add (wxT ("Olivier Lemaire"));
220 supported_by.Add (wxT ("Eric Lesachet"));
221 supported_by.Add (wxT ("Gavin Lewarne"));
222 supported_by.Add (wxT ("Theo Lipfert"));
223 supported_by.Add (wxT ("Paweł Lipiński"));
224 supported_by.Add (wxT ("Marco Löber"));
225 supported_by.Add (wxT ("Juan Marin Lorenzo"));
226 supported_by.Add (wxT ("Cinéma Le Louxor"));
227 supported_by.Add (wxT ("Mandorla"));
228 supported_by.Add (wxT ("Andrea Maguolo"));
229 supported_by.Add (wxT ("Gerard Manshanden"));
230 supported_by.Add (wxT ("Daniel Martinez Lara"));
231 supported_by.Add (wxT ("Stefan Massopust"));
232 supported_by.Add (wxT ("Richard Malmberg"));
233 supported_by.Add (wxT ("Adrian Manolescu"));
234 supported_by.Add (wxT ("Mattias Mattsson"));
235 supported_by.Add (wxT ("George Mazarakis"));
236 supported_by.Add (wxT ("Mike Mazur"));
237 supported_by.Add (wxT ("Gordon McLeod"));
238 supported_by.Add (wxT ("P. Meijer"));
239 supported_by.Add (wxT ("Brian Mendelssohn"));
240 supported_by.Add (wxT ("Kjarten Michaelsen"));
241 supported_by.Add (wxT ("Aldo Midali"));
242 supported_by.Add (wxT ("Sylvain Mielle"));
243 supported_by.Add (wxT ("Jill Mobley"));
244 supported_by.Add (wxT ("Michal Moc"));
245 supported_by.Add (wxT ("Howard Molton"));
246 supported_by.Add (wxT ("Lindsay Morris"));
247 supported_by.Add (wxT ("Moviemento Kino"));
248 supported_by.Add (wxT ("NT Next"));
249 supported_by.Add (wxT ("David Nedrow"));
250 supported_by.Add (wxT ("Niclas Nornemark"));
251 supported_by.Add (wxT ("Casablanca Nuernberg"));
252 supported_by.Add (wxT ("Pascal Nussbaum"));
253 supported_by.Add (wxT ("Tim O'Brien"));
254 supported_by.Add (wxT ("Jerome Cohen Olivar"));
255 supported_by.Add (wxT ("Tito Oliveira"));
256 supported_by.Add (wxT ("Anders Olsson"));
257 supported_by.Add (wxT ("Kevin Orman"));
258 supported_by.Add (wxT ("Olov Östlund"));
259 supported_by.Add (wxT ("Vasiliy Popov"));
260 supported_by.Add (wxT ("Rui Pereira"));
261 supported_by.Add (wxT ("Armin Peterhans"));
262 supported_by.Add (wxT ("Andrea Pieri"));
263 supported_by.Add (wxT ("Denis Postle"));
264 supported_by.Add (wxT ("Aditya Pratama"));
265 supported_by.Add (wxT ("Ceridwen Productions"));
266 supported_by.Add (wxT ("Ivan Pullman"));
267 supported_by.Add (wxT ("Arts Quest"));
268 supported_by.Add (wxT ("Desiderio Garcia Ramirez"));
269 supported_by.Add (wxT ("Steve Reverand"));
270 supported_by.Add (wxT ("Mark Rolfe"));
271 supported_by.Add (wxT ("Leigh Rosin"));
272 supported_by.Add (wxT ("David Rozenthal"));
273 supported_by.Add (wxT ("Lasse Salling"));
274 supported_by.Add (wxT ("Jussi Siponen"));
275 supported_by.Add (wxT ("Gregg Smith"));
276 supported_by.Add (wxT ("Marco Spiaggi"));
277 supported_by.Add (wxT ("Peter Sprenger"));
278 supported_by.Add (wxT ("Randy Stankey"));
279 supported_by.Add (wxT ("Andrä Steiner"));
280 supported_by.Add (wxT ("Mike Stiebing"));
281 supported_by.Add (wxT ("Tomislav Stojanović"));
282 supported_by.Add (wxT ("Christian Suhren"));
283 supported_by.Add (wxT ("Bruce Taylor"));
284 supported_by.Add (wxT ("OpsCenter Technologies, Inc."));
285 supported_by.Add (wxT ("Texas Theatre"));
286 supported_by.Add (wxT ("Lawrence Towers"));
287 supported_by.Add (wxT ("Petter Trønsdal"));
288 supported_by.Add (wxT ("Richard Turner"));
289 supported_by.Add (wxT ("Tilman Vatteroth"));
290 supported_by.Add (wxT ("Alexey Vinokurov"));
291 supported_by.Add (wxT ("Stéphane Wagneur"));
292 supported_by.Add (wxT ("Andrew Walls"));
293 supported_by.Add (wxT ("Raoul Walzer"));
294 supported_by.Add (wxT ("Wolfram Weber"));
295 supported_by.Add (wxT ("Frank Wenz"));
296 supported_by.Add (wxT ("Anja Wenz"));
297 supported_by.Add (wxT ("Johannes Wilbrand"));
298 supported_by.Add (wxT ("Roland Wirtz"));
299 supported_by.Add (wxT ("Wolfgang Woehl"));
300 supported_by.Add (wxT ("Frank de Wulf"));
301 supported_by.Add (wxT ("Pavel Zhdanko"));
302 supported_by.Add (wxT ("Daniel Židek"));
303 supported_by.Add (wxT ("Гуляев Михаил"));
304 supported_by.Add (wxT ("Cinéma de la Neuveville"));
305 supported_by.Add (wxT ("Frechen-Film e.V."));
306 supported_by.Add (wxT ("Mobiles Kino e.V."));
307 supported_by.Add (wxT ("Kino Völkerfreundschaft"));
308 supported_by.Add (wxT ("Ernst Zimmerman"));
309 add_section (_("Supported by"), supported_by);
311 wxArrayString tested_by;
312 tested_by.Add (wxT ("Manuel AC"));
313 tested_by.Add (wxT ("Trever Anderson"));
314 tested_by.Add (wxT ("Mike Blakesley"));
315 tested_by.Add (wxT ("David Booty"));
316 tested_by.Add (wxT ("Roop Chand"));
317 tested_by.Add (wxT ("Daniel Chauvet"));
318 tested_by.Add (wxT ("Adam Colt"));
319 tested_by.Add (wxT ("John Convertino"));
320 tested_by.Add (wxT ("Andreas Eli"));
321 tested_by.Add (wxT ("Leo Enticknap"));
322 tested_by.Add (wxT ("Jose Angel Velasco Fernandez"));
323 tested_by.Add (wxT ("Maurizio Giampà"));
324 tested_by.Add (wxT ("Luke Granger-Brown"));
325 tested_by.Add (wxT ("Sumit Guha"));
326 tested_by.Add (wxT ("Steve Guttag"));
327 tested_by.Add (wxT ("Patrick Haderer"));
328 tested_by.Add (wxT ("Bill Hamell"));
329 tested_by.Add (wxT ("Jonathan Jensen"));
330 tested_by.Add (wxT ("Thierry Journet"));
331 tested_by.Add (wxT ("Markus Kalb"));
332 tested_by.Add (wxT ("Ada de Kamper"));
333 tested_by.Add (wxT ("Stefan Karner"));
334 tested_by.Add (wxT ("Adam Keay"));
335 tested_by.Add (wxT ("Simon Kesselman"));
336 tested_by.Add (wxT ("Pepijn Klijs"));
337 tested_by.Add (wxT ("Denzil Kriekenbeek"));
338 tested_by.Add (wxT ("Carsten Kurz"));
339 tested_by.Add (wxT ("Bill Lam"));
340 tested_by.Add (wxT ("Lilian Lefranc"));
341 tested_by.Add (wxT ("Olivier Lemaire"));
342 tested_by.Add (wxT ("Gavin Lewarne"));
343 tested_by.Add (wxT ("Gérald Maruccia"));
344 tested_by.Add (wxT ("George Mazarakis"));
345 tested_by.Add (wxT ("Mattias Mattsson"));
346 tested_by.Add (wxT ("Will Meadows"));
347 tested_by.Add (wxT ("Brad Miller"));
348 tested_by.Add (wxT ("Ash Mitchell"));
349 tested_by.Add (wxT ("Rob van Nieuwkerk"));
350 tested_by.Add (wxT ("Anders Nordentoft-Madsen"));
351 tested_by.Add (wxT ("Mauro Ottonello"));
352 tested_by.Add (wxT ("Peter Puchner"));
353 tested_by.Add (wxT ("Markus Raab"));
354 tested_by.Add (wxT ("Michael Reckert"));
355 tested_by.Add (wxT ("Greg Rooke"));
356 tested_by.Add (wxT ("Elad Saad"));
357 tested_by.Add (wxT ("Karim Senoucci"));
358 tested_by.Add (wxT ("Hordur Valgardsson"));
359 tested_by.Add (wxT ("Xenophon the Vampire"));
360 tested_by.Add (wxT ("Simon Vannarath"));
361 tested_by.Add (wxT ("Igor Voytovich"));
362 tested_by.Add (wxT ("Andrew Walls"));
363 tested_by.Add (wxT ("Andreas Weiss"));
364 tested_by.Add (wxT ("Paul Willmott"));
365 tested_by.Add (wxT ("Wolfgang Woehl"));
366 add_section (_("Tested by"), tested_by);
368 sizer->Add (_notebook, wxSizerFlags().Centre().Border(wxALL, 16).Expand());
370 overall_sizer->Add (sizer);
372 wxSizer* buttons = CreateButtonSizer (wxOK);
374 overall_sizer->Add (buttons, 1, wxEXPAND | wxALL, 4);
377 SetSizerAndFit (overall_sizer);
380 /** Add a section of credits.
381 * @param name Name of section.
382 * @param credits List of names.
385 AboutDialog::add_section (wxString name, wxArrayString credits)
387 static bool first = true;
390 wxScrolledWindow* panel = new wxScrolledWindow (_notebook);
391 panel->SetMaxSize (wxSize (-1, 380));
392 panel->EnableScrolling (false, true);
393 panel->SetScrollRate (0, 32);
394 wxSizer* overall_sizer = new wxBoxSizer (wxHORIZONTAL);
396 vector<wxSizer*> sizers;
398 for (int i = 0; i < N; ++i) {
399 sizers.push_back (new wxBoxSizer (wxVERTICAL));
400 overall_sizer->Add (sizers.back (), 1, wxEXPAND | wxALL, 6);
404 for (size_t i = 0; i < credits.Count(); ++i) {
405 add_label_to_sizer (sizers[c], panel, credits[i], false);
412 panel->SetSizerAndFit (overall_sizer);
413 _notebook->AddPage (panel, name, first);