Logo Search packages:      
Sourcecode: xchm version File versions

void CHMListCtrl::AddPairItem ( const wxString &  title,
const wxString &  url 
)

Adds a title:url pair to the list. The title is the part that gets displayed, the url is tha page where the HTML window should go when the item is being clicked.

Parameters:
title The title to add.
url The title's associated url.

Definition at line 47 of file chmlistctrl.cpp.

Referenced by ContentTagHandler::HandleTag(), and CHMSearchPanel::PopulateList().

{
//    int size = GetItemCount();

      int i = 0;
      for(i = 0; i < GetItemCount(); ++i) {
            if(title.CmpNoCase(GetItemText(i)) <= 0)
                  break;
      }

      long item = InsertItem(i, title);
      size_t index = _urls.Add(url);
      SetItemData(item, index);
}


Generated by  Doxygen 1.6.0   Back to index