]> git.saurik.com Git - wxWidgets.git/commitdiff
Move body of SetMinSize and SetMaxSize from header to cpp file for easier debugging...
authorRobert Roebling <robert@roebling.de>
Fri, 30 Jan 2009 09:49:29 +0000 (09:49 +0000)
committerRobert Roebling <robert@roebling.de>
Fri, 30 Jan 2009 09:49:29 +0000 (09:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58515 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/window.h
src/common/wincmn.cpp

index 4a7c051835e9fd76f55d37fa1198dae42893923f..9ae3e478484afb58e2da1265d7dee18b49f48d58 100644 (file)
@@ -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)
index 878bca5ae8c6abd5e3059f3c15b5d9bba23af67d..5bb116f600727bcf6f5334430692e3ac2e7cfed2 100644 (file)
@@ -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