diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-10-07 17:11:31 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-10-09 13:44:58 +0100 |
| commit | f29f405000752ad568de1e304640a4edac8214bc (patch) | |
| tree | cb4990c7e7d90ddc6d5fddb9a69f3379a693c3fa /src/wx/job_view.cc | |
| parent | bf0b74f67b87b2361529cefaae45533e5935a9c4 (diff) | |
Basics of job view when sending KDM emails from dcpomatic_kdm.
Diffstat (limited to 'src/wx/job_view.cc')
| -rw-r--r-- | src/wx/job_view.cc | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/wx/job_view.cc b/src/wx/job_view.cc index fca297430..87582ec8c 100644 --- a/src/wx/job_view.cc +++ b/src/wx/job_view.cc @@ -27,34 +27,33 @@ using std::string; using std::min; using boost::shared_ptr; -JobView::JobView (shared_ptr<Job> job, wxScrolledWindow* window, wxPanel* panel, wxFlexGridSizer* table) +JobView::JobView (shared_ptr<Job> job, wxWindow* parent, wxWindow* container, wxFlexGridSizer* table) : _job (job) - , _window (window) - , _panel (panel) + , _parent (parent) { int n = 0; _gauge_message = new wxBoxSizer (wxVERTICAL); - _gauge = new wxGauge (panel, wxID_ANY, 100); + _gauge = new wxGauge (container, wxID_ANY, 100); /* This seems to be required to allow the gauge to shrink under OS X */ _gauge->SetMinSize (wxSize (0, -1)); _gauge_message->Add (_gauge, 0, wxEXPAND | wxLEFT | wxRIGHT); - _message = new wxStaticText (panel, wxID_ANY, wxT (" \n ")); + _message = new wxStaticText (container, wxID_ANY, wxT (" \n ")); _gauge_message->Add (_message, 1, wxEXPAND | wxALIGN_CENTER_VERTICAL | wxALL, 6); table->Insert (n, _gauge_message, 1, wxEXPAND | wxLEFT | wxRIGHT); ++n; - _cancel = new wxButton (panel, wxID_ANY, _("Cancel")); + _cancel = new wxButton (container, wxID_ANY, _("Cancel")); _cancel->Bind (wxEVT_COMMAND_BUTTON_CLICKED, &JobView::cancel_clicked, this); table->Insert (n, _cancel, 1, wxALIGN_CENTER_VERTICAL | wxALL, 3); ++n; - _pause = new wxButton (_panel, wxID_ANY, _("Pause")); + _pause = new wxButton (container, wxID_ANY, _("Pause")); _pause->Bind (wxEVT_COMMAND_BUTTON_CLICKED, &JobView::pause_clicked, this); table->Insert (n, _pause, 1, wxALIGN_CENTER_VERTICAL | wxALL, 3); ++n; - _details = new wxButton (_panel, wxID_ANY, _("Details...")); + _details = new wxButton (container, wxID_ANY, _("Details...")); _details->Bind (wxEVT_COMMAND_BUTTON_CLICKED, &JobView::details_clicked, this); _details->Enable (false); table->Insert (n, _details, 1, wxALIGN_CENTER_VERTICAL | wxALL, 3); @@ -115,7 +114,7 @@ JobView::details_clicked (wxCommandEvent &) { string s = _job->error_summary(); s[0] = toupper (s[0]); - error_dialog (_window, std_to_wx (String::compose ("%1.\n\n%2", s, _job->error_details()))); + error_dialog (_parent, std_to_wx (String::compose ("%1.\n\n%2", s, _job->error_details()))); } void |
