X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fcontent_widget.h;h=3fa1f0ddc20c168d6d45d0cdf773c2d872f93db9;hb=3a7c4ef4f35960702522642c496b561be138d322;hp=b4d06286e46972de23b863460ec8aebceba57653;hpb=a4d8e5d24beddb719180e75f1047ae317bef85a4;p=dcpomatic.git diff --git a/src/wx/content_widget.h b/src/wx/content_widget.h index b4d06286e..3fa1f0ddc 100644 --- a/src/wx/content_widget.h +++ b/src/wx/content_widget.h @@ -41,7 +41,7 @@ * @param V Data type of state as used by the view. */ template -class ContentWidget +class ContentWidget : public boost::noncopyable { public: /** @param parent Parent window. @@ -90,7 +90,7 @@ public: } _connections.clear (); - + _content = content; _wrapped->Enable (!_content.empty ()); @@ -141,9 +141,9 @@ public: } _ignore_model_changes = false; } - + private: - + void set_single () { if (_wrapped->IsShown ()) { @@ -162,7 +162,7 @@ private: if (_button->IsShown ()) { return; } - + _wrapped->Hide (); _sizer->Detach (_wrapped); _button->Show (); @@ -184,7 +184,7 @@ private: update_from_model (); } } - + T* _wrapped; wxGridBagSizer* _sizer; wxGBPosition _position;