* @brief Class generating a GTK widget to show the progress of jobs.
*/
+#include "job_manager_view.h"
+#include "wx_util.h"
#include "lib/job_manager.h"
#include "lib/job.h"
#include "lib/util.h"
#include "lib/exceptions.h"
-#include "job_manager_view.h"
-#include "wx_util.h"
+#include "lib/compose.hpp"
using std::string;
using std::list;
/* 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 "), wxDefaultPosition, wxDefaultSize, wxST_ELLIPSIZE_END);
+ _message = new wxStaticText (panel, 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;
_progress_connection = job->Progress.connect (boost::bind (&JobRecord::progress, this));
_finished_connection = job->Finished.connect (boost::bind (&JobRecord::finished, this));
+ progress ();
+
table->Layout ();
}
}
whole += _job->status ();
if (whole != _last_message) {
- _message->SetLabelMarkup (whole);
+ _message->SetLabelMarkup (std_to_wx (whole));
_last_message = whole;
}
if (_job->progress ()) {