diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-07-25 18:32:54 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-07-25 18:32:54 +0100 |
| commit | 81e0ec64eccf10232628fdf89149b3a66f231312 (patch) | |
| tree | 1d845a4ea4c97109b6b2c2c78ff8c14ce7080119 /src/wx/job_manager_view.h | |
| parent | f1a68da7de486525be2b4199288ee2e9b822668b (diff) | |
Various hacking.
Diffstat (limited to 'src/wx/job_manager_view.h')
| -rw-r--r-- | src/wx/job_manager_view.h | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/src/wx/job_manager_view.h b/src/wx/job_manager_view.h index c88a1ce9a..ef74b3cf8 100644 --- a/src/wx/job_manager_view.h +++ b/src/wx/job_manager_view.h @@ -18,31 +18,37 @@ */ /** @file src/job_manager_view.h - * @brief Class generating a GTK widget to show the progress of jobs. + * @brief Class which is a wxPanel for showing the progress of jobs. */ #include <string> #include <boost/shared_ptr.hpp> -#include <gtkmm.h> +#include <wx/wx.h> class Job; /** @class JobManagerView - * @brief Class generating a GTK widget to show the progress of jobs. + * @brief Class which is a wxPanel for showing the progress of jobs. */ -class JobManagerView +class JobManagerView : public wxPanel { public: - JobManagerView (); - - /** @return Our main widget, which contains everything else */ - Gtk::Widget& widget () { - return _scroller; - } + JobManagerView (wxWindow *); void update (); private: + void periodic (wxTimerEvent &); + + boost::shared_ptr<wxTimer> _timer; + wxFlexGridSizer* _sizer; + struct JobRecord { + wxGauge* gauge; + bool informed_of_finish; + }; + + std::map<boost::shared_ptr<Job>, JobRecord> _job_records; +#if 0 /** Scroller for all our contents */ Gtk::ScrolledWindow _scroller; /** View for the jobs */ @@ -80,4 +86,5 @@ private: /** The columns for the store */ StoreColumns _columns; +#endif }; |
