X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fwx%2Fjob_manager_view.h;h=79cc4743cef789ae8deb715bd5133272a710fd06;hb=f001a5020a6307f1adf650bd33a0c2a2ea26d468;hp=e3d885f94884bf95e86e20089c7f7d3a84925316;hpb=69812a7d02f5714a80a0a131b96f5f76a8f3c3a3;p=dcpomatic.git diff --git a/src/wx/job_manager_view.h b/src/wx/job_manager_view.h index e3d885f94..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); + JobManagerView (wxWindow *); private: - void cancel_clicked (wxCommandEvent &); - void pause_clicked (wxCommandEvent &); - void details_clicked (wxCommandEvent &); - void job_added (boost::weak_ptr); - void progress (boost::weak_ptr); - void finished (boost::weak_ptr); + void periodic (); wxPanel* _panel; wxFlexGridSizer* _table; - struct JobRecord { - wxGauge* gauge; - wxStaticText* message; - wxButton* cancel; - wxButton* pause; - wxButton* details; - bool scroll_nudged; - }; - - std::map, JobRecord> _job_records; - Buttons _buttons; + boost::shared_ptr _timer; + + std::list > _job_records; };