summaryrefslogtreecommitdiff
path: root/src/wx/job_view.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-09-30 10:42:30 +0100
committerCarl Hetherington <cth@carlh.net>2016-09-30 10:42:30 +0100
commita5e041b46b675c1f42fc83920be45345662e0376 (patch)
tree65c9728693ed5f22028e5eeceeefad239f027919 /src/wx/job_view.cc
parent0ef231d6ef3c483edc5d13affd31367acfecd320 (diff)
Reverse order of jobs in the batch converter view.
Diffstat (limited to 'src/wx/job_view.cc')
-rw-r--r--src/wx/job_view.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wx/job_view.cc b/src/wx/job_view.cc
index 136b18ed3..83d3159b0 100644
--- a/src/wx/job_view.cc
+++ b/src/wx/job_view.cc
@@ -28,11 +28,12 @@ using std::string;
using std::min;
using boost::shared_ptr;
-JobView::JobView (shared_ptr<Job> job, wxWindow* parent, wxWindow* container, wxFlexGridSizer* table)
+/** @param top Put this view at the top of table, otherwise put it at the bottom */
+JobView::JobView (shared_ptr<Job> job, wxWindow* parent, wxWindow* container, wxFlexGridSizer* table, bool top)
: _job (job)
, _parent (parent)
{
- int n = 0;
+ int n = top ? 0 : (table->GetEffectiveRowsCount() * table->GetEffectiveColsCount());
_gauge_message = new wxBoxSizer (wxVERTICAL);
_gauge = new wxGauge (container, wxID_ANY, 100);