diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-10-03 09:14:58 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-10-03 09:14:58 +0100 |
| commit | 1fb11836b91977a949bef5eae807d57b13fe9bf8 (patch) | |
| tree | 2a9ebae3c5cd7b8fdec2d718be98a7d4c15e2215 /src/wx/job_view.h | |
| parent | 1b7e04a8628bf7eff1c58d1db05ecd89ac3f664d (diff) | |
Fix various bad automatic merges in i18n files.
Diffstat (limited to 'src/wx/job_view.h')
| -rw-r--r-- | src/wx/job_view.h | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/src/wx/job_view.h b/src/wx/job_view.h index 96233f732..8cd34fdab 100644 --- a/src/wx/job_view.h +++ b/src/wx/job_view.h @@ -18,6 +18,9 @@ */ +#ifndef DCPOMATIC_JOB_VIEW_H +#define DCPOMATIC_JOB_VIEW_H + #include <boost/noncopyable.hpp> #include <boost/shared_ptr.hpp> #include <boost/signals2.hpp> @@ -31,32 +34,44 @@ class wxBoxSizer; class wxGauge; class wxStaticText; class wxButton; +class wxSizer; class JobView : public boost::noncopyable { public: - JobView (boost::shared_ptr<Job> job, wxWindow* parent, wxWindow* container, wxFlexGridSizer* table, bool top); + JobView (boost::shared_ptr<Job> job, wxWindow* parent, wxWindow* container, wxFlexGridSizer* table); + virtual ~JobView () {} + + void setup (); void maybe_pulse (); +protected: + virtual void finished (); + + boost::shared_ptr<Job> _job; + wxFlexGridSizer* _table; + private: + virtual int insert_position () const = 0; + virtual void finish_setup (wxWindow *, wxSizer *) {} + void progress (); - void finished (); void details_clicked (wxCommandEvent &); void cancel_clicked (wxCommandEvent &); - void pause_clicked (wxCommandEvent &); - boost::shared_ptr<Job> _job; wxWindow* _parent; + wxWindow* _container; wxBoxSizer* _gauge_message; wxGauge* _gauge; wxStaticText* _message; wxButton* _cancel; - wxButton* _pause; wxButton* _details; std::string _last_message; boost::signals2::scoped_connection _progress_connection; boost::signals2::scoped_connection _finished_connection; }; + +#endif |
