Fix build with older boost.
[dcpomatic.git] / src / wx / dir_picker_ctrl.h
index 2ab2a5714b8f42d7ae96aa5625421abd45fc5914..34f46b2dfc4b79c99b041e695f0b6af42d9dbc68 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2012 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2012-2016 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
 
 */
 
+#ifndef DCPOMATIC_DIR_PICKER_CTRL
+#define DCPOMATIC_DIR_PICKER_CTRL
+
+#include "lib/warnings.h"
+DCPOMATIC_DISABLE_WARNINGS
 #include <wx/wx.h>
+DCPOMATIC_ENABLE_WARNINGS
+#include <boost/signals2.hpp>
 
 class DirPickerCtrl : public wxPanel
 {
 public:
-       DirPickerCtrl (wxWindow *);
+       explicit DirPickerCtrl (wxWindow *);
 
        wxString GetPath () const;
        void SetPath (wxString);
 
+       boost::signals2::signal<void ()> Changed;
+
 private:
        void browse_clicked ();
 
@@ -37,3 +46,4 @@ private:
        wxSizer* _sizer;
 };
 
+#endif