Add leaf parameter to DirPickerCtrl.
[dcpomatic.git] / src / wx / dir_picker_ctrl.h
index f70168db48fa98f08be28deab3d2d34c78cb0bb5..31df9518cda38a8104cd98e3c4eccf9f852d664c 100644 (file)
@@ -33,7 +33,7 @@ LIBDCP_ENABLE_WARNINGS
 class DirPickerCtrl : public wxPanel
 {
 public:
-       explicit DirPickerCtrl (wxWindow *);
+       DirPickerCtrl(wxWindow *, bool leaf = false);
 
        wxString GetPath () const;
        void SetPath (wxString);
@@ -47,6 +47,7 @@ private:
        wxButton* _browse;
        wxString _path;
        wxSizer* _sizer;
+       bool _leaf = false;
 };
 
 #endif