*/
+
#ifndef DCPOMATIC_BUTTON_H
#define DCPOMATIC_BUTTON_H
+
#include "i18n_hook.h"
+#include <dcp/warnings.h>
+LIBDCP_DISABLE_WARNINGS
#include <wx/button.h>
+LIBDCP_ENABLE_WARNINGS
+#include <boost/bind/bind.hpp>
+
class Button : public wxButton, public I18NHook
{
void set_text (wxString text) override;
wxString get_text () const override;
+
+ template <typename... Args>
+ void bind(Args... args) {
+ Bind(wxEVT_BUTTON, boost::bind(std::forward<Args>(args)...));
+ }
};
+
#endif