added wxXmlResource::FindXRCIDById() (#10026)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1625,6 +1625,20 @@ int wxXmlResource::DoGetXRCID(const char *str_id, int value_if_not_found)
|
||||
return XRCID_Lookup(str_id, value_if_not_found);
|
||||
}
|
||||
|
||||
/* static */
|
||||
wxString wxXmlResource::FindXRCIDById(int numId)
|
||||
{
|
||||
for ( int i = 0; i < XRCID_TABLE_SIZE; i++ )
|
||||
{
|
||||
for ( XRCID_record *rec = XRCID_Records[i]; rec; rec = rec->next )
|
||||
{
|
||||
if ( rec->id == numId )
|
||||
return wxString(rec->key);
|
||||
}
|
||||
}
|
||||
|
||||
return wxString();
|
||||
}
|
||||
|
||||
static void CleanXRCID_Record(XRCID_record *rec)
|
||||
{
|
||||
|
Reference in New Issue
Block a user