Removed wxPGProperty:GetArrIndex() in favor of GetIndexInParent()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55879 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2008-09-25 17:04:11 +00:00
parent 0d6e0565c6
commit b96a14e334
4 changed files with 3 additions and 5 deletions

View File

@@ -1605,8 +1605,6 @@ public:
*/ */
double GetAttributeAsDouble( const wxString& name, double defVal ) const; double GetAttributeAsDouble( const wxString& name, double defVal ) const;
unsigned int GetArrIndex() const { return m_arrIndex; }
unsigned int GetDepth() const { return (unsigned int)m_depth; } unsigned int GetDepth() const { return (unsigned int)m_depth; }
/** Gets flags as a'|' delimited string. Note that flag names are not /** Gets flags as a'|' delimited string. Note that flag names are not

View File

@@ -1953,7 +1953,7 @@ void wxPGProperty::PrepareSubProperties()
depth--; depth--;
i = nparent->GetArrIndex() + 1; i = nparent->GetIndexInParent() + 1;
nparent = nparent->GetParent(); nparent = nparent->GetParent();
} }
} }

View File

@@ -290,7 +290,7 @@ wxPGProperty* wxPropertyGridInterface::AppendIn( wxPGPropArg id, wxPGProperty* n
wxPGProperty* wxPropertyGridInterface::Insert( wxPGPropArg id, wxPGProperty* property ) wxPGProperty* wxPropertyGridInterface::Insert( wxPGPropArg id, wxPGProperty* property )
{ {
wxPG_PROP_ARG_CALL_PROLOG_RETVAL(wxNullProperty) wxPG_PROP_ARG_CALL_PROLOG_RETVAL(wxNullProperty)
wxPGProperty* retp = m_pState->DoInsert(p->GetParent(), p->GetArrIndex(), property); wxPGProperty* retp = m_pState->DoInsert(p->GetParent(), p->GetIndexInParent(), property);
RefreshGrid(); RefreshGrid();
return retp; return retp;
} }

View File

@@ -1226,7 +1226,7 @@ void wxFlagsProperty::Init()
if ( selected ) if ( selected )
{ {
if ( selected->GetParent() == this ) if ( selected->GetParent() == this )
oldSel = selected->GetArrIndex(); oldSel = selected->GetIndexInParent();
else if ( selected == this ) else if ( selected == this )
oldSel = -2; oldSel = -2;
} }