git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67214
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxListItem item;
item.m_itemId = 0;
item.m_col = 0;
wxListItem item;
item.m_itemId = 0;
item.m_col = 0;
- long id = Add( fd, item );
+ long itemid = Add( fd, item );
{
SortItems(m_sort_field, m_sort_forward);
{
SortItems(m_sort_field, m_sort_forward);
- id = FindItem( 0, wxPtrToUInt(fd) );
- EnsureVisible( id );
- EditLabel( id );
+ itemid = FindItem( 0, wxPtrToUInt(fd) );
+ EnsureVisible( itemid );
+ EditLabel( itemid );
class wxExtHelpMapEntry : public wxObject
{
public:
class wxExtHelpMapEntry : public wxObject
{
public:
wxString url;
wxString doc;
wxExtHelpMapEntry(int iid, wxString const &iurl, wxString const &idoc)
wxString url;
wxString doc;
wxExtHelpMapEntry(int iid, wxString const &iurl, wxString const &idoc)
- { id = iid; url = iurl; doc = idoc; }
+ { entryid = iid; url = iurl; doc = idoc; }
};
void wxExtHelpController::DeleteList()
};
void wxExtHelpController::DeleteList()
while (node)
{
entry = (wxExtHelpMapEntry *)node->GetData();
while (node)
{
entry = (wxExtHelpMapEntry *)node->GetData();
- if (entry->id == WXEXTHELP_CONTENTS_ID)
+ if (entry->entryid == WXEXTHELP_CONTENTS_ID)
{
contents = entry->url;
break;
{
contents = entry->url;
break;
while (node)
{
entry = (wxExtHelpMapEntry *)node->GetData();
while (node)
{
entry = (wxExtHelpMapEntry *)node->GetData();
- if (entry->id == sectionNo)
+ if (entry->entryid == sectionNo)
return DisplayHelp(entry->url);
node = node->GetNext();
}
return DisplayHelp(entry->url);
node = node->GetNext();
}
wxTreeItemId wxGenericTreeCtrl::GetFirstVisibleItem() const
{
wxTreeItemId wxGenericTreeCtrl::GetFirstVisibleItem() const
{
- wxTreeItemId id = GetRootItem();
- if (!id.IsOk())
- return id;
+ wxTreeItemId itemid = GetRootItem();
+ if (!itemid.IsOk())
+ return itemid;
- if (IsVisible(id))
- return id;
- id = GetNext(id);
- } while (id.IsOk());
+ if (IsVisible(itemid))
+ return itemid;
+ itemid = GetNext(itemid);
+ } while (itemid.IsOk());
// allows to switch between two items starting with the same letter just by
// pressing it) but we shouldn't jump to the next one if the user is
// continuing to type as otherwise he might easily skip the item he wanted
// allows to switch between two items starting with the same letter just by
// pressing it) but we shouldn't jump to the next one if the user is
// continuing to type as otherwise he might easily skip the item he wanted
- wxTreeItemId id = idParent;
+ wxTreeItemId itemid = idParent;
if ( prefix.length() == 1 )
{
if ( prefix.length() == 1 )
{
+ itemid = GetNext(itemid);
}
// look for the item starting with the given prefix after it
}
// look for the item starting with the given prefix after it
- while ( id.IsOk() && !GetItemText(id).Lower().StartsWith(prefix) )
+ while ( itemid.IsOk() && !GetItemText(itemid).Lower().StartsWith(prefix) )
+ itemid = GetNext(itemid);
}
// if we haven't found anything...
}
// if we haven't found anything...
{
// ... wrap to the beginning
{
// ... wrap to the beginning
+ itemid = GetRootItem();
if ( HasFlag(wxTR_HIDE_ROOT) )
{
// can't select virtual root
if ( HasFlag(wxTR_HIDE_ROOT) )
{
// can't select virtual root
+ itemid = GetNext(itemid);
}
// and try all the items (stop when we get to the one we started from)
}
// and try all the items (stop when we get to the one we started from)
- while ( id.IsOk() && id != idParent &&
- !GetItemText(id).Lower().StartsWith(prefix) )
+ while ( itemid.IsOk() && itemid != idParent &&
+ !GetItemText(itemid).Lower().StartsWith(prefix) )
+ itemid = GetNext(itemid);
}
// If we haven't found the item, id.IsOk() will be false, as per
// documentation
}
}
// If we haven't found the item, id.IsOk() will be false, as per
// documentation
}
}
// -----------------------------------------------------------------------------
}
// -----------------------------------------------------------------------------