From e81c7155869a701afe700d1d41a26de9acfda80e Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Fri, 30 Jan 2009 09:49:29 +0000 Subject: [PATCH] Move body of SetMinSize and SetMaxSize from header to cpp file for easier debugging. The methods are virtual anyway. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58515 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/window.h | 4 ++-- src/common/wincmn.cpp | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/include/wx/window.h b/include/wx/window.h index 4a7c051835..9ae3e47848 100644 --- a/include/wx/window.h +++ b/include/wx/window.h @@ -458,8 +458,8 @@ public: // Call these to override what GetBestSize() returns. This // method is only virtual because it is overriden in wxTLW // as a different API for SetSizeHints(). - virtual void SetMinSize(const wxSize& minSize) { m_minWidth = minSize.x; m_minHeight = minSize.y; } - virtual void SetMaxSize(const wxSize& maxSize) { m_maxWidth = maxSize.x; m_maxHeight = maxSize.y; } + virtual void SetMinSize(const wxSize& minSize); + virtual void SetMaxSize(const wxSize& maxSize); // Like Set*Size, but for client, not window, size virtual void SetMinClientSize(const wxSize& size) diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index 878bca5ae8..5bb116f600 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -721,6 +721,18 @@ wxSize wxWindowBase::GetEffectiveMinSize() const } +void wxWindowBase::SetMinSize(const wxSize& minSize) +{ + m_minWidth = minSize.x; + m_minHeight = minSize.y; +} + +void wxWindowBase::SetMaxSize(const wxSize& maxSize) +{ + m_maxWidth = maxSize.x; + m_maxHeight = maxSize.y; +} + void wxWindowBase::SetInitialSize(const wxSize& size) { // Set the min size to the size passed in. This will usually either be -- 2.45.2