From 703f4a3346bb1da33bb5ef7348e70507cd189458 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 12 Nov 2022 21:41:23 +0100 Subject: Add bind() to Choice. --- src/wx/dcpomatic_choice.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/wx/dcpomatic_choice.h b/src/wx/dcpomatic_choice.h index 3a5987ead..7c9042de9 100644 --- a/src/wx/dcpomatic_choice.h +++ b/src/wx/dcpomatic_choice.h @@ -23,6 +23,7 @@ LIBDCP_DISABLE_WARNINGS #include LIBDCP_ENABLE_WARNINGS +#include #include @@ -37,6 +38,11 @@ public: void set(int index); boost::optional get() const; + template + void bind(Args... args) { + Bind(wxEVT_CHOICE, boost::bind(std::forward(args)...)); + } + private: bool _needs_clearing = true; }; -- cgit v1.2.3