X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fupdate_dialog.cc;h=e864564acd118c7822eda99cba6c99db7faca67f;hb=e9e8951e0961564121f9c6cc4ce87555eebf9ec8;hp=c88ddbff2f46cc026045585d688167ea52c3bc1f;hpb=3828baf56467224f5d44049bf1e7a7ed11f43a05;p=dcpomatic.git diff --git a/src/wx/update_dialog.cc b/src/wx/update_dialog.cc index c88ddbff2..e864564ac 100644 --- a/src/wx/update_dialog.cc +++ b/src/wx/update_dialog.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2012 Carl Hetherington + Copyright (C) 2012-2018 Carl Hetherington This file is part of DCP-o-matic. @@ -18,9 +18,10 @@ */ -#include #include "update_dialog.h" +#include "static_text.h" #include "wx_util.h" +#include using std::string; using boost::optional; @@ -33,9 +34,9 @@ UpdateDialog::UpdateDialog (wxWindow* parent, optional stable, optional< wxStaticText* message; if ((stable || test) && !(stable && test)) { - message = new wxStaticText (this, wxID_ANY, _("A new version of DCP-o-matic is available.")); + message = new StaticText (this, _("A new version of DCP-o-matic is available.")); } else { - message = new wxStaticText (this, wxID_ANY, _("New versions of DCP-o-matic are available.")); + message = new StaticText (this, _("New versions of DCP-o-matic are available.")); } overall_sizer->Add (message, 1, wxTOP | wxLEFT | wxRIGHT, DCPOMATIC_DIALOG_BORDER); @@ -44,13 +45,13 @@ UpdateDialog::UpdateDialog (wxWindow* parent, optional stable, optional< if (stable) { add_label_to_sizer (table, this, _("Stable version ") + std_to_wx (stable.get ()), true); - wxHyperlinkCtrl* h = new wxHyperlinkCtrl (this, wxID_ANY, "dcpomatic.com/download", "http://dcpomatic.com/download"); + wxHyperlinkCtrl* h = new wxHyperlinkCtrl (this, wxID_ANY, "dcpomatic.com/download", "https://dcpomatic.com/download"); table->Add (h); } if (test) { add_label_to_sizer (table, this, _("Test version ") + std_to_wx (test.get ()), true); - wxHyperlinkCtrl* h = new wxHyperlinkCtrl (this, wxID_ANY, "dcpomatic.com/test-download", "http://dcpomatic.com/test-download"); + wxHyperlinkCtrl* h = new wxHyperlinkCtrl (this, wxID_ANY, "dcpomatic.com/test-download", "https://dcpomatic.com/test-download"); table->Add (h); }