diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-10-29 01:02:22 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-10-29 01:02:22 +0100 |
| commit | 501e47b65eb72d20b3420d14412bd5720200be86 (patch) | |
| tree | 204c40dded1c1f88bfbd5248c61730f377cc2abb /src/wx | |
| parent | e83d72432823f3efc7a5a1d2eba5674286580b54 (diff) | |
White space: batch_job_view.{cc,h}
Diffstat (limited to 'src/wx')
| -rw-r--r-- | src/wx/batch_job_view.cc | 34 | ||||
| -rw-r--r-- | src/wx/batch_job_view.h | 12 |
2 files changed, 23 insertions, 23 deletions
diff --git a/src/wx/batch_job_view.cc b/src/wx/batch_job_view.cc index 96dd801d1..e36bce875 100644 --- a/src/wx/batch_job_view.cc +++ b/src/wx/batch_job_view.cc @@ -33,48 +33,48 @@ using std::list; using std::shared_ptr; -BatchJobView::BatchJobView (shared_ptr<Job> job, wxWindow* parent, wxWindow* container, wxFlexGridSizer* table) - : JobView (job, parent, container, table) +BatchJobView::BatchJobView(shared_ptr<Job> job, wxWindow* parent, wxWindow* container, wxFlexGridSizer* table) + : JobView(job, parent, container, table) { } int -BatchJobView::insert_position () const +BatchJobView::insert_position() const { return _table->GetEffectiveRowsCount() * _table->GetEffectiveColsCount(); } void -BatchJobView::finish_setup (wxWindow* parent, wxSizer* sizer) +BatchJobView::finish_setup(wxWindow* parent, wxSizer* sizer) { - _higher_priority = new Button (parent, _("Higher priority")); - _higher_priority->Bind (wxEVT_BUTTON, boost::bind(&BatchJobView::higher_priority_clicked, this)); - sizer->Add (_higher_priority, 1, wxALIGN_CENTER_VERTICAL); - _lower_priority = new Button (parent, _("Lower priority")); - _lower_priority->Bind (wxEVT_BUTTON, boost::bind(&BatchJobView::lower_priority_clicked, this)); - sizer->Add (_lower_priority, 1, wxALIGN_CENTER_VERTICAL); + _higher_priority = new Button(parent, _("Higher priority")); + _higher_priority->Bind(wxEVT_BUTTON, boost::bind(&BatchJobView::higher_priority_clicked, this)); + sizer->Add(_higher_priority, 1, wxALIGN_CENTER_VERTICAL); + _lower_priority = new Button(parent, _("Lower priority")); + _lower_priority->Bind(wxEVT_BUTTON, boost::bind(&BatchJobView::lower_priority_clicked, this)); + sizer->Add(_lower_priority, 1, wxALIGN_CENTER_VERTICAL); } void -BatchJobView::higher_priority_clicked () +BatchJobView::higher_priority_clicked() { - JobManager::instance()->increase_priority (_job); + JobManager::instance()->increase_priority(_job); } void -BatchJobView::lower_priority_clicked () +BatchJobView::lower_priority_clicked() { - JobManager::instance()->decrease_priority (_job); + JobManager::instance()->decrease_priority(_job); } void -BatchJobView::job_list_changed () +BatchJobView::job_list_changed() { bool high = false; bool low = false; @@ -88,6 +88,6 @@ BatchJobView::job_list_changed () } } - _higher_priority->Enable (high); - _lower_priority->Enable (low); + _higher_priority->Enable(high); + _lower_priority->Enable(low); } diff --git a/src/wx/batch_job_view.h b/src/wx/batch_job_view.h index 91dca82e9..53daca1b3 100644 --- a/src/wx/batch_job_view.h +++ b/src/wx/batch_job_view.h @@ -25,15 +25,15 @@ class BatchJobView : public JobView { public: - BatchJobView (std::shared_ptr<Job> job, wxWindow* parent, wxWindow* container, wxFlexGridSizer* table); + BatchJobView(std::shared_ptr<Job> job, wxWindow* parent, wxWindow* container, wxFlexGridSizer* table); private: - int insert_position () const override; - void job_list_changed () override; + int insert_position() const override; + void job_list_changed() override; - void finish_setup (wxWindow* parent, wxSizer* sizer) override; - void higher_priority_clicked (); - void lower_priority_clicked (); + void finish_setup(wxWindow* parent, wxSizer* sizer) override; + void higher_priority_clicked(); + void lower_priority_clicked(); wxButton* _higher_priority; wxButton* _lower_priority; |
