Add supporter.
[dcpomatic.git] / src / wx / about_dialog.cc
index 90aa911fa0e257514de7e2dc549ec579cfb5943b..489995faadf6fca2de0c7161ebe06162fbaf0506 100644 (file)
@@ -29,6 +29,7 @@ using std::vector;
 AboutDialog::AboutDialog (wxWindow* parent)
        : wxDialog (parent, wxID_ANY, _("About DCP-o-matic"))
 {
+       wxBoxSizer* overall_sizer = new wxBoxSizer (wxVERTICAL);
        wxBoxSizer* sizer = new wxBoxSizer (wxVERTICAL);
        
        wxFont title_font (*wxNORMAL_FONT);
@@ -43,7 +44,7 @@ AboutDialog::AboutDialog (wxWindow* parent)
        
        wxStaticText* t = new wxStaticText (this, wxID_ANY, _("DCP-o-matic"));
        t->SetFont (title_font);
-       sizer->Add (t, wxSizerFlags().Centre().Border(wxALL, 8));
+       sizer->Add (t, wxSizerFlags().Centre().Border(wxALL, 16));
 
        wxString s;
        if (strcmp (dcpomatic_git_commit, "release") == 0) {
@@ -52,7 +53,7 @@ AboutDialog::AboutDialog (wxWindow* parent)
                t = new wxStaticText (this, wxID_ANY, 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, 8));
+       sizer->Add (t, wxSizerFlags().Centre().Border(wxALL, 2));
        sizer->AddSpacer (12);
 
        t = new wxStaticText (
@@ -70,7 +71,7 @@ AboutDialog::AboutDialog (wxWindow* parent)
                wxT ("http://dcpomatic.com")
                );
 
-       sizer->Add (h, wxSizerFlags().Centre().Border());
+       sizer->Add (h, wxSizerFlags().Centre().Border(wxALL, 8));
 
        t = new wxStaticText (
                this, wxID_ANY,
@@ -78,7 +79,7 @@ AboutDialog::AboutDialog (wxWindow* parent)
                wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER
                );
        
-       sizer->Add (t, wxSizerFlags().Centre().Border(wxALL, 8));
+       sizer->Add (t, wxSizerFlags().Centre().Border(wxLEFT | wxRIGHT, 16));
 
        _notebook = new wxNotebook (this, wxID_ANY);
 
@@ -104,6 +105,7 @@ AboutDialog::AboutDialog (wxWindow* parent)
        supported_by.Add (wxT ("Manual AC"));
        supported_by.Add (wxT ("Theo Lipfert"));
        supported_by.Add (wxT ("Olivier Lemaire"));
+       supported_by.Add (wxT ("Mattias Mattsson"));
        supported_by.Add (wxT ("Andrä Steiner"));
        supported_by.Add (wxT ("Jonathan Jensen"));
        supported_by.Add (wxT ("Kjarten Michaelsen"));
@@ -117,11 +119,22 @@ AboutDialog::AboutDialog (wxWindow* parent)
        supported_by.Add (wxT ("Lasse Salling"));
        supported_by.Add (wxT ("Andres Fink"));
        supported_by.Add (wxT ("Kieran Carroll"));
+       supported_by.Add (wxT ("Kambiz Afshar"));
+       supported_by.Add (wxT ("Sean Leigh"));
+       supported_by.Add (wxT ("Wolfram Weber"));
+       supported_by.Add (wxT ("Randy Stankey"));
        add_section (_("Supported by"), supported_by);
 
-       sizer->Add (_notebook, wxSizerFlags().Centre().Border(wxALL, 8).Expand());
+       sizer->Add (_notebook, wxSizerFlags().Centre().Border(wxALL, 16).Expand());
+
+       overall_sizer->Add (sizer);
+
+       wxSizer* buttons = CreateButtonSizer (wxOK);
+       if (buttons) {
+               overall_sizer->Add (buttons, 1, wxEXPAND | wxALL, 4);
+       }
        
-       SetSizerAndFit (sizer);
+       SetSizerAndFit (overall_sizer);
 }
 
 void