X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Fwx%2Fdcpomatic_button.h;fp=src%2Fwx%2Fdcpomatic_button.h;h=6de8b60f40aa837590bbde420875897250eb6f2d;hp=902c856668ae2c1b900aafafa664c31a015855d7;hb=f48e23cc1fa3fcc3027feef0e6329d514574b0df;hpb=99cb0937e54340fa20c594aaa501276b8321cbf0 diff --git a/src/wx/dcpomatic_button.h b/src/wx/dcpomatic_button.h index 902c85666..6de8b60f4 100644 --- a/src/wx/dcpomatic_button.h +++ b/src/wx/dcpomatic_button.h @@ -28,6 +28,7 @@ LIBDCP_DISABLE_WARNINGS #include LIBDCP_ENABLE_WARNINGS +#include class Button : public wxButton, public I18NHook @@ -37,6 +38,11 @@ public: void set_text (wxString text) override; wxString get_text () const override; + + template + void bind(Args... args) { + Bind(wxEVT_BUTTON, boost::bind(std::forward(args)...)); + } };