#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
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)...));
+ }
};