X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fjob_manager_view.h;h=79cc4743cef789ae8deb715bd5133272a710fd06;hb=aeb835a18c8df347e0ed68fb24631b320abeb611;hp=fc29eadb4760c3bb74d9f2a55b4142c9f7967e19;hpb=5f0f0de782100a5cb558f30c7768c8af0c19bcb7;p=dcpomatic.git diff --git a/src/wx/job_manager_view.h b/src/wx/job_manager_view.h index fc29eadb4..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,32 +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; - }; - - std::map, JobRecord> _job_records; - Buttons _buttons; + boost::shared_ptr _timer; + + std::list > _job_records; };