Add leaf parameter to DirPickerCtrl.
[dcpomatic.git] / src / wx / dir_picker_ctrl.h
index f236096598ce07dfbb998fd950b3bda645803a9c..31df9518cda38a8104cd98e3c4eccf9f852d664c 100644 (file)
 
 */
 
+
 #ifndef DCPOMATIC_DIR_PICKER_CTRL
 #define DCPOMATIC_DIR_PICKER_CTRL
 
+
+#include <dcp/warnings.h>
+LIBDCP_DISABLE_WARNINGS
 #include <wx/wx.h>
+LIBDCP_ENABLE_WARNINGS
+#include <boost/signals2.hpp>
+
 
 class DirPickerCtrl : public wxPanel
 {
 public:
-       explicit DirPickerCtrl (wxWindow *);
+       DirPickerCtrl(wxWindow *, bool leaf = false);
 
        wxString GetPath () const;
        void SetPath (wxString);
 
+       boost::signals2::signal<void ()> Changed;
+
 private:
        void browse_clicked ();
 
@@ -38,6 +47,7 @@ private:
        wxButton* _browse;
        wxString _path;
        wxSizer* _sizer;
+       bool _leaf = false;
 };
 
 #endif