X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fjob_manager_view.h;h=79cc4743cef789ae8deb715bd5133272a710fd06;hb=aeb835a18c8df347e0ed68fb24631b320abeb611;hp=3d1ad30c07f60e60a53d4473b374fe7d82c13f39;hpb=883d885dc8690519d205c8baa275385af8a39f4b;p=dcpomatic.git diff --git a/src/wx/job_manager_view.h b/src/wx/job_manager_view.h index 3d1ad30c0..79cc4743c 100644 --- a/src/wx/job_manager_view.h +++ b/src/wx/job_manager_view.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012 Carl Hetherington + Copyright (C) 2012-2015 Carl Hetherington This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,11 +21,12 @@ * @brief Class which is a wxPanel for showing the progress of jobs. */ -#include -#include #include +#include +#include class Job; +class JobView; /** @class JobManagerView * @brief Class which is a wxPanel for showing the progress of jobs. @@ -33,33 +34,15 @@ class Job; class JobManagerView : public wxScrolledWindow { public: - enum Buttons { - PAUSE = 0x1, - }; - - JobManagerView (wxWindow *, Buttons); - - void update (); + JobManagerView (wxWindow *); private: - void periodic (wxTimerEvent &); - void cancel_clicked (wxCommandEvent &); - void pause_clicked (wxCommandEvent &); - void details_clicked (wxCommandEvent &); + void job_added (boost::weak_ptr); + void periodic (); - boost::shared_ptr _timer; wxPanel* _panel; wxFlexGridSizer* _table; - struct JobRecord { - wxGauge* gauge; - wxStaticText* message; - wxButton* cancel; - wxButton* pause; - wxButton* details; - bool finalised; - bool scroll_nudged; - }; - - std::map, JobRecord> _job_records; - Buttons _buttons; + boost::shared_ptr _timer; + + std::list > _job_records; };