projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tidy ownership/lifetime of GLVideoView to fix crashes on close.
[dcpomatic.git]
/
src
/
wx
/
dir_picker_ctrl.h
diff --git
a/src/wx/dir_picker_ctrl.h
b/src/wx/dir_picker_ctrl.h
index 383362f570d97095e296d6559af3e2d23da44b36..34f46b2dfc4b79c99b041e695f0b6af42d9dbc68 100644
(file)
--- a/
src/wx/dir_picker_ctrl.h
+++ b/
src/wx/dir_picker_ctrl.h
@@
-18,16
+18,25
@@
*/
*/
+#ifndef DCPOMATIC_DIR_PICKER_CTRL
+#define DCPOMATIC_DIR_PICKER_CTRL
+
+#include "lib/warnings.h"
+DCPOMATIC_DISABLE_WARNINGS
#include <wx/wx.h>
#include <wx/wx.h>
+DCPOMATIC_ENABLE_WARNINGS
+#include <boost/signals2.hpp>
class DirPickerCtrl : public wxPanel
{
public:
class DirPickerCtrl : public wxPanel
{
public:
-
DirPickerCtrl (wxWindow *, wxSize size = wxDefaultSize
);
+
explicit DirPickerCtrl (wxWindow *
);
wxString GetPath () const;
void SetPath (wxString);
wxString GetPath () const;
void SetPath (wxString);
+ boost::signals2::signal<void ()> Changed;
+
private:
void browse_clicked ();
private:
void browse_clicked ();
@@
-36,3
+45,5
@@
private:
wxString _path;
wxSizer* _sizer;
};
wxString _path;
wxSizer* _sizer;
};
+
+#endif