summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-03-19 10:36:32 +0100
committerCarl Hetherington <cth@carlh.net>2021-03-19 10:36:32 +0100
commit7cd939aa3d0b87858c74e5832d1aa812b2271459 (patch)
tree74350c6d21d86b74b4319fc6a4ee3444c76d784a /src
parentcb2c727267a29e657db07ff0d19d2edbd85b7a51 (diff)
White space / C++11 tidying.
Diffstat (limited to 'src')
-rw-r--r--src/wx/job_view.cc16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/wx/job_view.cc b/src/wx/job_view.cc
index 52c975bee..2754948ae 100644
--- a/src/wx/job_view.cc
+++ b/src/wx/job_view.cc
@@ -18,6 +18,7 @@
*/
+
#include "job_view.h"
#include "wx_util.h"
#include "message_dialog.h"
@@ -34,12 +35,14 @@
#include <wx/wx.h>
#include <boost/algorithm/string.hpp>
+
using std::string;
using std::min;
using std::shared_ptr;
using boost::bind;
using std::dynamic_pointer_cast;
+
JobView::JobView (shared_ptr<Job> job, wxWindow* parent, wxWindow* container, wxFlexGridSizer* table)
: _job (job)
, _table (table)
@@ -50,6 +53,7 @@ JobView::JobView (shared_ptr<Job> job, wxWindow* parent, wxWindow* container, wx
}
+
void
JobView::setup ()
{
@@ -95,6 +99,7 @@ JobView::setup ()
_table->Layout ();
}
+
void
JobView::maybe_pulse ()
{
@@ -103,6 +108,7 @@ JobView::maybe_pulse ()
}
}
+
void
JobView::progress ()
{
@@ -110,7 +116,7 @@ JobView::progress ()
if (!_job->sub_name().empty ()) {
whole += _job->sub_name() + " ";
}
- string s = _job->status ();
+ auto s = _job->status ();
/* Watch out for < > in the error string */
boost::algorithm::replace_all (s, "<", "&lt;");
boost::algorithm::replace_all (s, ">", "&gt;");
@@ -128,6 +134,7 @@ JobView::progress ()
}
}
+
void
JobView::finished ()
{
@@ -162,14 +169,16 @@ JobView::finished ()
}
}
+
void
JobView::details_clicked (wxCommandEvent &)
{
- string s = _job->error_summary();
+ auto s = _job->error_summary();
s[0] = toupper (s[0]);
error_dialog (_parent, std_to_wx(s), std_to_wx(_job->error_details()));
}
+
void
JobView::cancel_clicked (wxCommandEvent &)
{
@@ -178,6 +187,7 @@ JobView::cancel_clicked (wxCommandEvent &)
}
}
+
void
JobView::insert (int pos)
{
@@ -186,6 +196,7 @@ JobView::insert (int pos)
_table->Layout ();
}
+
void
JobView::detach ()
{
@@ -193,6 +204,7 @@ JobView::detach ()
_table->Detach (_controls);
}
+
void
JobView::notify_clicked ()
{