]> git.saurik.com Git - wxWidgets.git/commitdiff
Removed wxPropertyGridManager::GetChildrentCount() member functions - now use page...
authorJaakko Salli <jaakko.salli@dnainternet.net>
Thu, 25 Sep 2008 17:23:54 +0000 (17:23 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Thu, 25 Sep 2008 17:23:54 +0000 (17:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/propgrid/manager.h
interface/wx/propgrid/manager.h
samples/propgrid/propgrid.cpp
src/propgrid/manager.cpp

index 544cb0c17db3fa16ea13514c73575b581125e654..d3166bc3d6c32e6ef540bf25c86f9bd9394a8e50 100644 (file)
@@ -348,25 +348,6 @@ public:
     */
     bool EnsureVisible( wxPGPropArg id );
 
-    /** Returns number of children of the root property of the selected page. */
-    size_t GetChildrenCount()
-    {
-        return GetChildrenCount( m_pPropGrid->m_pState->m_properties );
-    }
-
-    /** Returns number of children of the root property of given page. */
-    size_t GetChildrenCount( int pageIndex );
-
-    /** Returns number of children for the property.
-
-        NB: Cannot be in container methods class due to name hiding.
-    */
-    size_t GetChildrenCount( wxPGPropArg id ) const
-    {
-        wxPG_PROP_ARG_CALL_PROLOG_RETVAL(0)
-        return p->GetChildCount();
-    }
-
     /** Returns number of columns on given page. By the default,
         returns number of columns on current page. */
     int GetColumnCount( int page = -1 ) const;
index 5d926bef7592d308f3544a17f43fb81da6f3b9a3..a61bce65fab7c08d7acd52f8a3e63168b94ea1e2 100644 (file)
@@ -290,30 +290,6 @@ public:
     */
     bool EnsureVisible( wxPGPropArg id );
 
-    /**
-        Returns number of children of the root property of the selected page.
-    */
-    size_t GetChildrenCount()
-    {
-        return GetChildrenCount( m_pPropGrid->m_pState->m_properties );
-    }
-
-    /**
-        Returns number of children of the root property of given page.
-    */
-    size_t GetChildrenCount( int pageIndex );
-
-    /**
-        Returns number of children for the property.
-
-        NB: Cannot be in container methods class due to name hiding.
-    */
-    size_t GetChildrenCount( wxPGPropArg id ) const
-    {
-        wxPG_PROP_ARG_CALL_PROLOG_RETVAL(0)
-        return p->GetChildCount();
-    }
-
     /**
         Returns number of columns on given page. By the default,
         returns number of columns on current page.
index b01ee0863cabe3796d2cb8138481f8c435696680..ceeb0748c6131620d978f413ea6c58edb392e28b 100644 (file)
@@ -2238,7 +2238,7 @@ void FormMain::OnInsertPropClick( wxCommandEvent& WXUNUSED(event) )
 {
     wxString propLabel;
 
-    if ( !m_pPropGridManager->GetChildrenCount() )
+    if ( !m_pPropGridManager->GetGrid()->GetRoot()->GetChildCount() )
     {
         wxMessageBox(wxT("No items to relate - first add some with Append."));
         return;
@@ -2304,7 +2304,7 @@ void FormMain::OnInsertCatClick( wxCommandEvent& WXUNUSED(event) )
 {
     wxString propLabel;
 
-    if ( !m_pPropGridManager->GetChildrenCount() )
+    if ( !m_pPropGridManager->GetGrid()->GetRoot()->GetChildCount() )
     {
         wxMessageBox(wxT("No items to relate - first add some with Append."));
         return;
index 649cee07f0cd36f5701c15f4b16d9bfd113f0a63..333a758b9d60bf89cb84dbaebed47821662a52c7 100644 (file)
@@ -1337,13 +1337,6 @@ bool wxPropertyGridManager::EnsureVisible( wxPGPropArg id )
 
 // -----------------------------------------------------------------------
 
-size_t wxPropertyGridManager::GetChildrenCount( int page_index )
-{
-    return GetChildrenCount( GetPage(page_index)->GetStatePtr()->m_properties );
-}
-
-// -----------------------------------------------------------------------
-
 void wxPropertyGridManager::OnToolbarClick( wxCommandEvent &event )
 {
     int id = event.GetId();