*/
#include <wx/notebook.h>
+#include <wx/hyperlink.h>
#include "lib/version.h"
#include "lib/compose.hpp"
#include "about_dialog.h"
using std::vector;
AboutDialog::AboutDialog (wxWindow* parent)
- : wxDialog (parent, wxID_ANY, _("About DVD-o-matic"))
+ : wxDialog (parent, wxID_ANY, _("About DCP-o-matic"))
{
wxBoxSizer* sizer = new wxBoxSizer (wxVERTICAL);
wxFont version_font (*wxNORMAL_FONT);
version_font.SetWeight (wxFONTWEIGHT_BOLD);
- wxStaticText* t = new wxStaticText (this, wxID_ANY, _("DVD-o-matic"));
+ wxStaticText* t = new wxStaticText (this, wxID_ANY, _("DCP-o-matic"));
t->SetFont (title_font);
sizer->Add (t, wxSizerFlags().Centre().Border());
wxString s;
- if (strcmp (dvdomatic_git_commit, "release") == 0) {
- t = new wxStaticText (this, wxID_ANY, std_to_wx (String::compose ("Version %1", dvdomatic_version)));
+ if (strcmp (dcpomatic_git_commit, "release") == 0) {
+ t = new wxStaticText (this, wxID_ANY, 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", dvdomatic_version, dvdomatic_git_commit)));
+ 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());
sizer->Add (t, wxSizerFlags().Centre().Border());
+ wxHyperlinkCtrl* h = new wxHyperlinkCtrl (
+ this, wxID_ANY,
+ wxT ("www.carlh.net/software/dcpomatic"),
+ wxT ("http://www.carlh.net/software/dcpomatic")
+ );
+
+ sizer->Add (h, wxSizerFlags().Centre().Border());
+
t = new wxStaticText (
this, wxID_ANY,
_("(C) 2012-2013 Carl Hetherington, Terrence Meiczinger, Paul Davis, Ole Laursen"),
sizer->Add (_notebook, wxSizerFlags().Centre().Border().Expand());
-#if 0
- info.SetWebSite (wxT ("http://carlh.net/software/dvdomatic"));
-#endif
-
SetSizerAndFit (sizer);
}
for (int i = 0; i < N; ++i) {
sizers.push_back (new wxBoxSizer (wxVERTICAL));
- overall_sizer->Add (sizers.back (), 1, wxEXPAND);
+ overall_sizer->Add (sizers.back (), 1, wxEXPAND | wxALL, 6);
}
int c = 0;