Supporters update.
[dcpomatic.git] / src / wx / check_box.h
index 8e6789e448311346f7ddb838c7e353979e9fa80e..4b3fddb9fdf65fa4f55226c203f740eb2a9dd97b 100644 (file)
 
 
 #include "i18n_hook.h"
+#include <dcp/warnings.h>
+LIBDCP_DISABLE_WARNINGS
 #include <wx/wx.h>
+LIBDCP_ENABLE_WARNINGS
+#include <boost/bind/bind.hpp>
 
 
 class CheckBox : public wxCheckBox, public I18NHook
@@ -32,8 +36,14 @@ class CheckBox : public wxCheckBox, public I18NHook
 public:
        CheckBox (wxWindow* parent, wxString label);
 
-       void set_text (wxString text);
-       wxString get_text () const;
+       void set_text (wxString text) override;
+       wxString get_text () const override;
+       bool get() const;
+
+       template <typename... Args>
+       void bind(Args... args) {
+               Bind(wxEVT_CHECKBOX, boost::bind(std::forward<Args>(args)...));
+       }
 };