Add patron.
[dcpomatic.git] / src / wx / about_dialog.cc
index b9233ef1f361d2011ec3ad2e807b140846dd6b7e..9ec41d7d36d3702f44d0877e3407ba9d266a7e80 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2013-2017 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2013-2020 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
@@ -24,6 +24,7 @@
 
 #include "about_dialog.h"
 #include "wx_util.h"
+#include "static_text.h"
 #include "lib/version.h"
 #include "lib/compose.hpp"
 #include <wx/notebook.h>
@@ -47,22 +48,22 @@ AboutDialog::AboutDialog (wxWindow* parent)
        wxFont version_font (*wxNORMAL_FONT);
        version_font.SetWeight (wxFONTWEIGHT_BOLD);
 
-       wxStaticText* t = new wxStaticText (this, wxID_ANY, _("DCP-o-matic"));
+       wxStaticText* t = new StaticText (this, _("DCP-o-matic"));
        t->SetFont (title_font);
        sizer->Add (t, wxSizerFlags().Centre().Border(wxALL, 16));
 
        wxString s;
        if (strcmp (dcpomatic_git_commit, "release") == 0) {
-               t = new wxStaticText (this, wxID_ANY, std_to_wx (String::compose ("Version %1", dcpomatic_version)));
+               t = new StaticText (this, std_to_wx(String::compose("Version %1", dcpomatic_version)));
        } else {
-               t = new wxStaticText (this, wxID_ANY, std_to_wx (String::compose ("Version %1 git %2", dcpomatic_version, dcpomatic_git_commit)));
+               t = new StaticText (this, std_to_wx(String::compose("Version %1 git %2", dcpomatic_version, dcpomatic_git_commit)));
        }
        t->SetFont (version_font);
        sizer->Add (t, wxSizerFlags().Centre().Border(wxALL, 2));
        sizer->AddSpacer (12);
 
-       t = new wxStaticText (
-               this, wxID_ANY,
+       t = new StaticText (
+               this,
                _("Free, open-source DCP creation from almost anything."),
                wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER
                );
@@ -73,14 +74,14 @@ AboutDialog::AboutDialog (wxWindow* parent)
        wxHyperlinkCtrl* h = new wxHyperlinkCtrl (
                this, wxID_ANY,
                wxT ("dcpomatic.com"),
-               wxT ("http://dcpomatic.com")
+               wxT ("https://dcpomatic.com")
                );
 
        sizer->Add (h, wxSizerFlags().Centre().Border(wxALL, 8));
 
-       t = new wxStaticText (
-               this, wxID_ANY,
-               _("(C) 2012-2018 Carl Hetherington, Terrence Meiczinger\n Ole Laursen, Brecht Sanders"),
+       t = new StaticText (
+               this,
+               _("(C) 2012-2020 Carl Hetherington, Terrence Meiczinger\n Ole Laursen, Brecht Sanders"),
                wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER
                );
 
@@ -97,6 +98,14 @@ AboutDialog::AboutDialog (wxWindow* parent)
        written_by.Add (wxT ("Jianguo Huang"));
        add_section (_("Written by"), written_by);
 
+       wxArrayString with_help_from;
+       with_help_from.Add (wxT ("David Vignoni"));
+       with_help_from.Add (wxT ("Dennis Couzin"));
+       with_help_from.Add (wxT ("Carsten Kurz"));
+       with_help_from.Add (wxT ("Gérald Maruccia"));
+       with_help_from.Add (wxT ("Julian van Mil"));
+       add_section (_("With help from"), with_help_from);
+
        wxArrayString translated_by;
        translated_by.Add (wxT ("Manuel AC"));
        translated_by.Add (wxT ("Max Aeschlimann"));
@@ -107,6 +116,7 @@ AboutDialog::AboutDialog (wxWindow* parent)
        translated_by.Add (wxT ("Fabio \"Zak\" Belli"));
        translated_by.Add (wxT ("Cherif Ben Brahim"));
        translated_by.Add (wxT ("Massimiliano Broggi"));
+       translated_by.Add (wxT ("Dan Cohen"));
        translated_by.Add (wxT ("Davide Dall'AraCiao"));
        translated_by.Add (wxT ("William Fanelli"));
        translated_by.Add (wxT ("Max M. Fuhlendorf"));
@@ -128,15 +138,14 @@ AboutDialog::AboutDialog (wxWindow* parent)
        translated_by.Add (wxT ("Igor Voytovich"));
        translated_by.Add (wxT ("Rov (若文)"));
        translated_by.Add (wxT ("刘汉源"));
+       translated_by.Add (wxT ("Gökhan Aksoy"));
        add_section (_("Translated by"), translated_by);
 
-       wxArrayString with_help_from;
-       with_help_from.Add (wxT ("David Vignoni"));
-       with_help_from.Add (wxT ("Dennis Couzin"));
-       with_help_from.Add (wxT ("Carsten Kurz"));
-       with_help_from.Add (wxT ("Gérald Maruccia"));
-       with_help_from.Add (wxT ("Julian van Mil"));
-       add_section (_("With help from"), with_help_from);
+       wxArrayString patrons;
+       patrons.Add ("Luproduction");
+       patrons.Add ("Lightbender Post");
+       patrons.Add ("Drop-out Cinema");
+       add_section (_("Patrons"), patrons);
 
        wxArrayString subscribers;
        #include "subscribers.cc"