X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fcheck_box.h;h=4b3fddb9fdf65fa4f55226c203f740eb2a9dd97b;hb=HEAD;hp=5176cd2e8cce4d3245e58a2d13eb3ce8aa1f4fe2;hpb=b915348a8288d68e2ff114fb3dd89ad22e699969;p=dcpomatic.git diff --git a/src/wx/check_box.h b/src/wx/check_box.h index 5176cd2e8..4b3fddb9f 100644 --- a/src/wx/check_box.h +++ b/src/wx/check_box.h @@ -24,7 +24,11 @@ #include "i18n_hook.h" +#include +LIBDCP_DISABLE_WARNINGS #include +LIBDCP_ENABLE_WARNINGS +#include 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 + void bind(Args... args) { + Bind(wxEVT_CHECKBOX, boost::bind(std::forward(args)...)); + } };