Emit no audio from DCPs if none is mapped
[dcpomatic.git] / src / wx / check_box.h
index 5176cd2e8cce4d3245e58a2d13eb3ce8aa1f4fe2..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
@@ -34,6 +38,12 @@ public:
 
        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)...));
+       }
 };