• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/src/univ/

Lines Matching refs:item

49     // the item under mouse immediately, then specify true as the second
50 // parameter (this is the standard behaviour, under GTK the item is toggled
65 // return the item under mouse, 0 if the mouse is above the listbox or
70 // of the item and the second one adjusts it if necessary - that is if the
73 int FixItemIndex(const wxListBox *listbox, int item);
74 bool IsValidIndex(const wxListBox *listbox, int item);
79 int item);
120 // no items hence no current item
225 int wxListBox::DoAppendOnly(const wxString& item)
231 m_strings->Add(item);
233 index = m_strings->Index(item);
238 m_strings->Add(item);
244 int wxListBox::DoAppend(const wxString& item)
246 size_t index = DoAppendOnly( item );
256 GetTextExtent(item, &width, NULL);
272 // the position of the item being added to a sorted listbox can't be
389 // do it before removing the index as otherwise the last item will not be
402 // when the item disappears we must not keep using its index
411 //else: current item may stay
414 // the one being deleted must change and the item itselfm ust be removed
417 for ( unsigned int item = 0; item < count; item++ )
419 if ( m_selections[item] == (int)n )
422 index = item;
424 else if ( m_selections[item] > (int)n )
427 m_selections[item]--;
440 // finally, if the longest item was deleted the scrollbar may disappear
492 // selecting an item in a single selection listbox deselects
515 // sanity check: a single selection listbox can't have more than one item
522 // the newly selected item becomes the current one
602 // refresh this item only
612 // add this item to the others which we have to refresh
933 bool wxListBox::SendEvent(wxEventType type, int item)
938 // use the current item by default
939 if ( item == -1 )
941 item = m_current;
944 // client data and string parameters only make sense if we have an item
945 if ( item != -1 )
948 event.SetClientObject(GetClientObject(item));
950 event.SetClientData(GetClientData(item));
952 event.SetString(GetString(item));
955 event.SetInt(item);
988 // start either from the current item or from the next one if strictlyAfter
1011 for ( int item = first; item != (int)last; item < (int)(count - 1) ? item++ : item = 0 )
1013 if ( wxStrnicmp(this->GetString(item).c_str(), prefix, len) == 0 )
1015 SetCurrentItem(item);
1019 DeselectAll(item);
1020 SelectAndNotify(item);
1023 AnchorSelection(item);
1059 // we need to scroll upwards, so make the current item appear on top
1068 // scroll down: the current item appears at the bottom of the
1110 // anchor and the specified item and only them
1130 void wxListBox::DoSelect(int item, bool sel)
1132 if ( item != -1 )
1134 // go to this item first
1135 SetCurrentItem(item);
1138 // the current item is the one we want to change: either it was just
1139 // changed above to be the same as item or item == -1 in which we case we
1148 void wxListBox::SelectAndNotify(int item)
1150 DoSelect(item);
1155 void wxListBox::Activate(int item)
1157 if ( item != -1 )
1158 SetCurrentItem(item);
1160 item = m_current;
1164 DeselectAll(item);
1167 if ( item != -1 )
1169 DoSelect(item);
1180 The numArg here is the listbox item index while the strArg is used
1196 int item = (int)numArg;
1200 SetCurrentItem(item);
1204 Activate(item);
1208 if ( item == -1 )
1209 item = m_current;
1211 if ( IsSelected(item) )
1212 DoUnselect(item);
1214 SelectAndNotify(item);
1218 DeselectAll(item);
1221 SelectAndNotify(item);
1223 DoSelect(item);
1226 DoSelect(item);
1228 DoUnselect(item);
1242 DeselectAll(item);
1244 ExtendSelection(item);
1248 AnchorSelection(item == -1 ? m_current : item);
1283 int item = HitTestUnsafe(lbox, event);
1285 return FixItemIndex(lbox, item);
1299 int item)
1301 if ( item < 0 )
1303 // mouse is above the first item
1304 item = 0;
1306 else if ( (unsigned int)item >= lbox->GetCount() )
1308 // mouse is below the last item
1309 item = lbox->GetCount() - 1;
1312 return item;
1315 bool wxStdListboxInputHandler::IsValidIndex(const wxListBox *lbox, int item)
1317 return item >= 0 && (unsigned int)item < lbox->GetCount();
1323 int item)
1345 // toggle the item right now
1355 // selection and adds the clicked item to it then, ctrl-click
1356 // toggles an item to it and shift-click adds a range between
1357 // the old selection anchor and the clicked item
1360 lbox->PerformAction(wxACTION_LISTBOX_ANCHOR, item);
1370 lbox->PerformAction(wxACTION_LISTBOX_ANCHOR, item);
1461 // the current item is always the one selected
1470 // select the item and make it the new selection anchor
1489 int item = HitTest(lbox, event);
1493 // item under mouse (if the mouse leaves the window, we will still be
1497 // capture the mouse to track the selected item
1500 action = SetupCapture(lbox, event, item);
1522 lbox->PerformAction(action, item);
1547 int item = HitTest(lbox, event);
1553 SetupCapture(lbox, event, item);
1558 if ( IsValidIndex(lbox, item) )
1562 lbox->PerformAction(m_actionMouse, item, _T("no"));