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

Lines Matching refs:item

65 int wxRadioBoxBase::GetNextItem(int item, wxDirection dir, long style) const
67 const int itemStart = item;
82 item -= numCols;
86 if ( !item-- )
87 item = count - 1;
94 if ( !item-- )
95 item = count - 1;
99 item -= numRows;
106 item += numCols;
110 if ( ++item == count )
111 item = 0;
118 if ( ++item == count )
119 item = 0;
123 item += numRows;
132 // ensure that the item is in range [0..count)
133 if ( item < 0 )
135 // first map the item to the one in the same column but in the last
137 item += count;
139 // now there are 2 cases: either it is the first item of the last
140 // row in which case we need to wrap again and get to the last item
141 // or we can just go to the previous item
142 if ( item % (horz ? numCols : numRows) )
143 item--;
145 item = count - 1;
147 else if ( item >= count )
150 item -= count;
152 // ... except that we need to check if this is not the last item,
154 if ( (item + 1) % (horz ? numCols : numRows) )
155 item++;
157 item = 0;
160 wxASSERT_MSG( item < count && item >= 0,
164 // visible and shown one unless we came back to the item we started from in
166 while ( !(IsItemShown(item) && IsItemEnabled(item)) && item != itemStart );
168 return item;
173 void wxRadioBoxBase::SetItemToolTip(unsigned int item, const wxString& text)
175 wxASSERT_MSG( item < GetCount(), _T("Invalid item index") );
184 wxToolTip *tooltip = (*m_itemsTooltips)[item];
217 (*m_itemsTooltips)[item] = tooltip;
218 DoSetItemToolTip(item, tooltip);
223 wxRadioBoxBase::DoSetItemToolTip(unsigned int WXUNUSED(item),
226 // per-item tooltips not implemented by default
247 // set helptext for a particular item
250 wxCHECK_RET( n < GetCount(), _T("Invalid item index") );
261 // retrieve helptext for a particular item
264 wxCHECK_MSG( n < GetCount(), wxEmptyString, _T("Invalid item index") );
269 // return help text for the item for which wxEVT_HELP was generated.
274 const int item = origin == wxHelpEvent::Origin_HelpButton
278 if ( item != wxNOT_FOUND )
280 wxString text = GetItemHelpText(wx_static_cast(unsigned int, item));