]> git.saurik.com Git - wxWidgets.git/commitdiff
undeprecated wxSizerItem::IsShown() undoing last change to wx/sizer.h: turns out...
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 9 Feb 2006 15:25:22 +0000 (15:25 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 9 Feb 2006 15:25:22 +0000 (15:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/changes.txt
docs/latex/wx/sizeritem.tex
include/wx/sizer.h

index e1c1b632fa813d2bf953c40bbad309dc2a0cf9e1..6ea5c2a3715e1b8e2cae0b45a4c2c50eebfbc246 100644 (file)
@@ -16,7 +16,6 @@ Deprecated methods since 2.6.x and their replacements
 
 - wxGetWorkingDirectory() deprecated in favour of wxGetCwd()
 - wxDC::BeginDrawing() and wxDC::EndDrawing() deprecated, just don't use them
-- wxSizerItem::IsShown(): no replacement as it doesn't have clear semantics
 
 
 2.7.0
index 82acb95ab402f20063d568dfb64cc1af8c7be909..988cf2f198f728c9c66ccdce365a358e329d8869 100644 (file)
@@ -155,6 +155,16 @@ If this item is tracking a window then return it.  NULL otherwise.
 Is this item a sizer?
 
 
+\membersection{wxSizerItem::IsShown}\label{wxsizeritemisshown}
+
+\constfunc{bool}{IsShown}{\void}
+
+Returns \true if this item is a window or a spacer and it is shown or if this
+item is a sizer and not all its elements are hidden. In other words, for sizer
+items, all of the child elements must be hidden for the sizer itself to be
+considered hidden.
+
+
 \membersection{wxSizerItem::IsSpacer}\label{wxsizeritemisspacer}
 
 \constfunc{bool}{IsSpacer}{\void}
index 49c6c2817cbefd8b62349a26eafd842e03153869..bbab8447f93a9d59164a8394e321ed39339925c1 100644 (file)
@@ -252,6 +252,10 @@ public:
         { return m_kind == Item_Sizer ? m_sizer : NULL; }
     wxSize GetSpacer() const;
 
+    // this function behaves obviously for the windows and spacers but for the
+    // sizers it returns true if any sizer element is shown and only returns
+    // false if all of them are hidden
+    bool IsShown() const;
     void Show(bool show);
 
     void SetUserData(wxObject* userData)
@@ -268,11 +272,6 @@ public:
     void SetSpacer(const wxSize& size);
     void SetSpacer(int width, int height) { SetSpacer(wxSize(width, height)); }
 
-    // this function is deprecated because if this item is a sizer, then it
-    // doesn't really make sense: sizer is neither shown nor hidden, because
-    // some of its elements may be hidden while others are shown
-    wxDEPRECATED( bool IsShown() const );
-
 protected:
     // common part of several ctors
     void Init() { m_userData = NULL; }