X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Fwx%2Freport_problem_dialog.cc;h=c79c542ed5861d880010d9bbb54e8d1da0c14538;hp=7519259eb75457ef82024878d648b163db60e2d2;hb=386e25f3b9d3fa59cbdeed458d9b3e0d21e338b8;hpb=c7e9b9a5c9d39e703fcd98b0bfdba2197a34108d diff --git a/src/wx/report_problem_dialog.cc b/src/wx/report_problem_dialog.cc index 7519259eb..c79c542ed 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,6 +20,8 @@ #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" @@ -28,7 +30,9 @@ using std::string; using boost::shared_ptr; -/** @param film Film that we are working on, or 0 */ +/** @param parent Parent window. + * @param film Film that we are working on, or 0. + */ ReportProblemDialog::ReportProblemDialog (wxWindow* parent, shared_ptr film) : wxDialog (parent, wxID_ANY, _("Report A Problem")) , _film (film) @@ -52,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); @@ -86,7 +90,7 @@ 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);