Logo Search packages:      
Sourcecode: codeblocks version File versions  Download package

wxString wxPropertyContainerMethods::GetPropertyShortClassName ( wxPGId  id ) [inherited]

Returns short name for property's class. For example, "wxPropertyCategory" translates to "Category" and "wxIntProperty" to "Int".

Definition at line 10499 of file propgrid.cpp.

References wxPGProperty::GetClassName(), and wxPGProperty::GetParentingType().

{
    wxPG_PROP_ID_CALL_PROLOG_RETVAL(wxEmptyString)

    if ( p->GetParentingType() != 1 )
    {
        const wxChar* src = p->GetClassName();
        wxString s;
        if ( src[0] == wxT('w') && src[1] == wxT('x') )
            s = &src[2];
        else
            s = src;
        wxASSERT( (((int)s.length())-8) > 0 );
        s.Truncate(s.length()-8);
        //s.LowerCase();
        return s;
    }
    return wxT("Category");
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index