diff options
Diffstat (limited to 'src/wx/content_widget.h')
| -rw-r--r-- | src/wx/content_widget.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/wx/content_widget.h b/src/wx/content_widget.h index 8b7616044..9e1338b7c 100644 --- a/src/wx/content_widget.h +++ b/src/wx/content_widget.h @@ -227,6 +227,30 @@ public: } }; +template <class S> +class ContentSpinCtrlDouble : public ContentWidget<S, wxSpinCtrlDouble, double, double> +{ +public: + ContentSpinCtrlDouble ( + wxWindow* parent, + wxSpinCtrlDouble* wrapped, + int property, + boost::function<double (S*)> getter, + boost::function<void (S*, double)> setter + ) + : ContentWidget<S, wxSpinCtrlDouble, double, double> ( + parent, + wrapped, + property, + getter, setter, + &caster<double, double>, + &caster<double, double> + ) + { + wrapped->Bind (wxEVT_COMMAND_SPINCTRLDOUBLE_UPDATED, boost::bind (&ContentWidget<S, wxSpinCtrlDouble, double, double>::view_changed, this)); + } +}; + template <class S, class U> class ContentChoice : public ContentWidget<S, wxChoice, U, int> { |
