X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fjob_manager_view.h;h=fde9199ffb80d5890e0397a08e006d719a07c414;hb=51f024b9d818db44e5d0db7bc4a5c03e324c25fb;hp=5a3ae61cb8c6fab8c2b84dbcb97ee5a5c3e5b1a3;hpb=0653191b6b860b9e5d061faa2af3dab8b08e5850;p=dcpomatic.git diff --git a/src/wx/job_manager_view.h b/src/wx/job_manager_view.h index 5a3ae61cb..fde9199ff 100644 --- a/src/wx/job_manager_view.h +++ b/src/wx/job_manager_view.h @@ -26,6 +26,7 @@ #include class Job; +class JobRecord; /** @class JobManagerView * @brief Class which is a wxPanel for showing the progress of jobs. @@ -35,19 +36,14 @@ class JobManagerView : public wxScrolledWindow public: JobManagerView (wxWindow *); - void update (); - private: - void periodic (wxTimerEvent &); + void job_added (boost::weak_ptr); + void periodic (); + void sized (wxSizeEvent &); - boost::shared_ptr _timer; wxPanel* _panel; wxFlexGridSizer* _table; - struct JobRecord { - wxGauge* gauge; - wxStaticText* message; - bool informed_of_finish; - }; + boost::shared_ptr _timer; - std::map, JobRecord> _job_records; + std::list > _job_records; };