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;
unsigned int GetArrIndex() const { return m_arrIndex; }
unsigned int GetDepth() const { return (unsigned int)m_depth; }
/** Gets flags as a'|' delimited string. Note that flag names are not

View File

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

View File

@ -290,7 +290,7 @@ wxPGProperty* wxPropertyGridInterface::AppendIn( wxPGPropArg id, wxPGProperty* n
wxPGProperty* wxPropertyGridInterface::Insert( wxPGPropArg id, wxPGProperty* property )
{
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();
return retp;
}

View File

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