X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fjob_manager_view.h;h=83ce4ee5abb9d837eee80cd90df3800bb9892c80;hb=606bed3cfa9b1b5496591b2869dd5b47c9c56c31;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..83ce4ee5a 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. @@ -33,21 +34,21 @@ class Job; class JobManagerView : public wxScrolledWindow { public: - JobManagerView (wxWindow *); - - void update (); + enum Buttons { + PAUSE = 0x1, + }; + + JobManagerView (wxWindow *, Buttons); 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; + Buttons _buttons; };