X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Freport_problem_dialog.cc;h=8ec275b4e3b0de9254179c3e95cb61d9f4159eff;hb=df79d429bf1663a0053844b7e98690d2fdfb790d;hp=77540fcbc8eedee93da2f0d5bdff41cede73fd74;hpb=67a68bd971ebe1b35daa3f75873b4ccb53c00ba0;p=dcpomatic.git diff --git a/src/wx/report_problem_dialog.cc b/src/wx/report_problem_dialog.cc index 77540fcbc..8ec275b4e 100644 --- a/src/wx/report_problem_dialog.cc +++ b/src/wx/report_problem_dialog.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2014-2015 Carl Hetherington + Copyright (C) 2014-2018 Carl Hetherington This file is part of DCP-o-matic. @@ -20,13 +20,15 @@ #include "report_problem_dialog.h" #include "wx_util.h" +#include "static_text.h" +#include "check_box.h" #include "lib/config.h" #include "lib/job_manager.h" #include "lib/send_problem_report_job.h" #include using std::string; -using boost::shared_ptr; +using std::shared_ptr; /** @param parent Parent window. * @param film Film that we are working on, or 0. @@ -54,13 +56,13 @@ ReportProblemDialog::ReportProblemDialog (wxWindow* parent, shared_ptr fil flags |= wxALIGN_RIGHT; t += wxT (":"); #endif - wxStaticText* m = new wxStaticText (this, wxID_ANY, t); + wxStaticText* m = new StaticText (this, t); _table->Add (m, 1, flags, 6); _summary = new wxTextCtrl (this, wxID_ANY, wxT (""), wxDefaultPosition, wxSize (320, 240), wxTE_MULTILINE); _table->Add (_summary, 1, wxEXPAND | wxALIGN_TOP); - _send_logs = new wxCheckBox (this, wxID_ANY, _("Send logs")); + _send_logs = new CheckBox (this, _("Send logs")); _send_logs->SetValue (true); _table->Add (_send_logs, 1, wxEXPAND); _table->AddSpacer (0); @@ -88,13 +90,15 @@ ReportProblemDialog::ReportProblemDialog (wxWindow* parent, shared_ptr fil } } - wxStaticText* n = new wxStaticText (this, wxID_ANY, wxT ("")); + wxStaticText* n = new StaticText (this, wxT ("")); n->SetLabelMarkup (out); _table->AddSpacer (0); _table->Add (n, 1, wxEXPAND); _overall_sizer->Layout (); _overall_sizer->SetSizeHints (this); + + _summary->SetFocus (); } void