Use enum class for Film::Property.
[dcpomatic.git] / src / wx / hints_dialog.h
index 83510643a3be2264a54766efafbe7549a098aad2..9124d5c13e9e7fc9d95ab73d3d61bde698ab8889 100644 (file)
 
 */
 
-#include "lib/types.h"
+
+#include "lib/change_signaller.h"
+#include "lib/warnings.h"
+DCPOMATIC_DISABLE_WARNINGS
 #include <wx/wx.h>
-#include <boost/weak_ptr.hpp>
+DCPOMATIC_ENABLE_WARNINGS
 #include <boost/signals2.hpp>
 
+
 class wxRichTextCtrl;
 class Film;
 class Hints;
@@ -30,10 +34,10 @@ class Hints;
 class HintsDialog : public wxDialog
 {
 public:
-       HintsDialog (wxWindow* parent, boost::weak_ptr<Film>, bool ok);
+       HintsDialog (wxWindow* parent, std::weak_ptr<Film>, bool ok);
 
 private:
-       void film_changed ();
+       void film_change (ChangeType);
        void film_content_change (ChangeType type);
        void shut_up (wxCommandEvent& ev);
        void update ();
@@ -42,13 +46,14 @@ private:
        void finished ();
        void progress (std::string m);
 
-       boost::weak_ptr<Film> _film;
+       std::weak_ptr<Film> _film;
        wxGauge* _gauge;
        wxStaticText* _gauge_message;
        wxRichTextCtrl* _text;
-       boost::shared_ptr<Hints> _hints;
+       boost::scoped_ptr<Hints> _hints;
        std::list<std::string> _current;
+       bool _finished;
 
-       boost::signals2::scoped_connection _film_changed_connection;
-       boost::signals2::scoped_connection _film_content_changed_connection;
+       boost::signals2::scoped_connection _film_change_connection;
+       boost::signals2::scoped_connection _film_content_change_connection;
 };