X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Fwx%2Fnag_dialog.cc;h=2226938f349ead205077392df6c78cb1be069fa7;hp=b7efb43db45953fa35a85d1af24f827dc9e74458;hb=9c1bb2e5ca7c80c4e26b1b2e41159aa171360a94;hpb=cac2b6f2c8dffcb7271d71fc23c0150c2fe4d6ea diff --git a/src/wx/nag_dialog.cc b/src/wx/nag_dialog.cc index b7efb43db..2226938f3 100644 --- a/src/wx/nag_dialog.cc +++ b/src/wx/nag_dialog.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2017 Carl Hetherington + Copyright (C) 2017-2018 Carl Hetherington This file is part of DCP-o-matic. @@ -20,6 +20,8 @@ #include "nag_dialog.h" #include "wx_util.h" +#include "static_text.h" +#include "check_box.h" #include #include @@ -30,10 +32,10 @@ NagDialog::NagDialog (wxWindow* parent, Config::Nag nag, wxString message, bool , _nag (nag) { wxBoxSizer* sizer = new wxBoxSizer (wxVERTICAL); - _text = new wxStaticText (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize (400, 300)); + _text = new StaticText (this, wxEmptyString, wxDefaultPosition, wxSize (400, 300)); sizer->Add (_text, 1, wxEXPAND | wxALL, 6); - wxCheckBox* b = new wxCheckBox (this, wxID_ANY, _("Don't show this message again")); + wxCheckBox* b = new CheckBox (this, _("Don't show this message again")); sizer->Add (b, 0, wxALL, 6); b->Bind (wxEVT_CHECKBOX, bind (&NagDialog::shut_up, this, _1));