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

Lines Matching refs:item

188     virtual void SetColumnInfo( unsigned int column, wxListItem* item );
215 // create a list item (can be a subclass of wxMacListBoxItem)
219 virtual void MacInsertItem( unsigned int n, wxListItem* item );
220 virtual void MacSetColumnInfo( unsigned int row, unsigned int column, wxListItem* item );
221 virtual void MacGetColumnInfo( unsigned int row, unsigned int column, wxListItem& item );
222 virtual void UpdateState(wxMacDataItem* dataItem, wxListItem* item);
245 DataBrowserItemID item,
260 DataBrowserItemID item,
272 virtual bool ConfirmEditText(DataBrowserItemID item,
453 // accepted, do rename the item
587 virtual wxListItemAttr * OnGetItemAttr(long item) const
589 return m_nativeListCtrl->OnGetItemAttr(item);
592 virtual int OnGetItemImage(long item) const
594 return m_nativeListCtrl->OnGetItemImage(item);
597 virtual int OnGetItemColumnImage(long item, long column) const
599 return m_nativeListCtrl->OnGetItemColumnImage(item, column);
602 virtual wxString OnGetItemText(long item, long column) const
604 return m_nativeListCtrl->OnGetItemText(item, column);
665 long item = HitTest(position, flags);
668 le.m_itemIndex = item;
669 le.m_item.m_itemId = item;
695 // item on native Mac ListCtrl, so we only handle up and down keys.
957 bool wxListCtrl::GetColumn(int col, wxListItem& item) const
960 return m_genericImpl->GetColumn(col, item);
972 item.SetText(column->GetText());
974 item.SetData(column->GetData());
976 item.SetImage(column->GetImage());
978 item.SetState(column->GetState());
980 item.SetAlign(column->GetAlign());
982 item.SetWidth(column->GetWidth());
989 bool wxListCtrl::SetColumn(int col, wxListItem& item)
992 return m_genericImpl->SetColumn(col, item);
996 long mask = item.GetMask();
999 wxListItem* listItem = new wxListItem(item);
1008 listItem.SetText(item.GetText());
1010 listItem.SetData(item.GetData());
1012 listItem.SetImage(item.GetImage());
1014 listItem.SetState(item.GetState());
1016 listItem.SetAlign(item.GetAlign());
1018 listItem.SetWidth(item.GetWidth());
1027 if (item.GetMask() & wxLIST_MASK_TEXT)
1035 cfTitle.Assign( item.GetText() , enc );
1042 if (item.GetMask() & wxLIST_MASK_IMAGE && item.GetImage() != -1 )
1048 wxBitmap bmp = imageList->GetBitmap( item.GetImage() );
1164 // Gets information about the item
1213 // Sets information about the item
1244 // Gets the item state
1245 int wxListCtrl::GetItemState(long item, long stateMask) const
1248 return m_genericImpl->GetItemState(item, stateMask);
1256 if (IsDataBrowserItemSelected( m_dbImpl->GetControlRef(), item+1 ))
1268 info.m_itemId = item;
1280 // Sets the item state
1281 bool wxListCtrl::SetItemState(long item, long state, long stateMask)
1284 return m_genericImpl->SetItemState(item, state, stateMask);
1292 if (item == -1)
1316 long itemID = item+1;
1329 info.m_itemId = item;
1340 // Sets the item image
1341 bool wxListCtrl::SetItemImage(long item, int image, int WXUNUSED(selImage))
1343 return SetItemColumnImage(item, 0, image);
1346 // Sets the item image
1347 bool wxListCtrl::SetItemColumnImage(long item, long column, int image)
1350 return m_genericImpl->SetItemColumnImage(item, column, image);
1356 info.m_itemId = item;
1362 // Gets the item text
1363 wxString wxListCtrl::GetItemText(long item) const
1366 return m_genericImpl->GetItemText(item);
1371 info.m_itemId = item;
1378 // Sets the item text
1379 void wxListCtrl::SetItemText(long item, const wxString& str)
1382 return m_genericImpl->SetItemText(item, str);
1387 info.m_itemId = item;
1393 // Gets the item data
1394 long wxListCtrl::GetItemData(long item) const
1397 return m_genericImpl->GetItemData(item);
1402 info.m_itemId = item;
1409 // Sets the item data
1410 bool wxListCtrl::SetItemPtrData(long item, wxUIntPtr data)
1413 return m_genericImpl->SetItemData(item, data);
1418 info.m_itemId = item;
1424 bool wxListCtrl::SetItemData(long item, long data)
1426 return SetItemPtrData(item, data);
1441 // Gets the item rectangle
1442 bool wxListCtrl::GetItemRect(long item, wxRect& rect, int code) const
1445 return m_genericImpl->GetItemRect(item, rect, code);
1461 wxMacDataItem* thisItem = m_dbImpl->GetItemFromLine(item);
1465 id = item+1;
1471 rect.width = bounds.right - bounds.left; //GetClientSize().x; // we need the width of the whole row, not just the item.
1478 // Gets the item position
1479 bool wxListCtrl::GetItemPosition(long item, wxPoint& pos) const
1482 return m_genericImpl->GetItemPosition(item, pos);
1489 GetItemRect(item, itemRect);
1497 // Sets the item position.
1498 bool wxListCtrl::SetItemPosition(long item, const wxPoint& pos)
1501 return m_genericImpl->SetItemPosition(item, pos);
1532 void wxListCtrl::SetItemTextColour( long item, const wxColour &col )
1536 m_genericImpl->SetItemTextColour(item, col);
1541 info.m_itemId = item;
1546 wxColour wxListCtrl::GetItemTextColour( long item ) const
1549 return m_genericImpl->GetItemTextColour(item);
1560 void wxListCtrl::SetItemBackgroundColour( long item, const wxColour &col )
1564 m_genericImpl->SetItemBackgroundColour(item, col);
1569 info.m_itemId = item;
1574 wxColour wxListCtrl::GetItemBackgroundColour( long item ) const
1577 return m_genericImpl->GetItemBackgroundColour(item);
1588 void wxListCtrl::SetItemFont( long item, const wxFont &f )
1592 m_genericImpl->SetItemFont(item, f);
1597 info.m_itemId = item;
1602 wxFont wxListCtrl::GetItemFont( long item ) const
1605 return m_genericImpl->GetItemFont(item);
1655 // Gets the index of the topmost visible item when in
1665 long item = HitTest( wxPoint(1, 1), flags);
1667 return item;
1673 // Searches for an item, starting from 'item'.
1678 // item can be -1 to find the first item that matches the
1680 // Returns the item or -1 if unsuccessful.
1681 long wxListCtrl::GetNextItem(long item, int geom, int state) const
1684 return m_genericImpl->GetNextItem(item, geom, state);
1692 for ( long line = item + 1 ; line < count; line++ )
1711 int item2 = item;
1814 // Deletes an item
1815 bool wxListCtrl::DeleteItem(long item)
1818 return m_genericImpl->DeleteItem(item);
1822 m_dbImpl->MacDelete(item);
1825 event.m_itemIndex = item;
1899 wxTextCtrl* wxListCtrl::EditLabel(long item, wxClassInfo* textControlClass)
1902 return m_genericImpl->EditLabel(item, textControlClass);
1906 wxCHECK_MSG( (item >= 0) && ((long)item < GetItemCount()), NULL,
1914 le.m_itemIndex = item;
1925 m_textctrlWrapper = new wxListCtrlTextCtrlWrapper(this, text, item);
1943 // Ensures this item is visible
1944 bool wxListCtrl::EnsureVisible(long item)
1947 return m_genericImpl->EnsureVisible(item);
1951 wxMacDataItem* dataItem = m_dbImpl->GetItemFromLine(item);
1958 // Find an item whose label matches this string, starting from the item after 'start'
1992 // Find an item whose data matches this data, starting from the item after 'start'
2014 // Find an item nearest this position in the specified direction, starting from
2015 // the item after 'start' or the beginning if 'start' is -1.
2025 // Determines which item (if any) is at the specified point,
2085 wxListItem* item = lcItem->GetColumnInfo(column);
2087 if (item->GetMask() & wxLIST_MASK_IMAGE)
2089 imgIndex = item->GetImage();
2168 // Inserts an item, returning the index of the new item if successful,
2207 // Inserts an image item
2220 // Inserts an image/string item
2235 long wxListCtrl::InsertColumn(long col, wxListItem& item)
2238 return m_genericImpl->InsertColumn(col, item);
2242 int width = item.GetWidth();
2243 if ( !(item.GetMask() & wxLIST_MASK_WIDTH) )
2256 if (item.GetMask() & wxLIST_MASK_FORMAT)
2258 if (item.GetAlign() == wxLIST_FORMAT_LEFT)
2260 else if (item.GetAlign() == wxLIST_FORMAT_CENTER)
2262 else if (item.GetAlign() == wxLIST_FORMAT_RIGHT)
2265 m_dbImpl->InsertColumn(col, type, item.GetText(), just, width);
2266 SetColumn(col, item);
2293 wxListItem item;
2294 item.m_mask = wxLIST_MASK_TEXT | wxLIST_MASK_FORMAT;
2295 item.m_text = heading;
2298 item.m_mask |= wxLIST_MASK_WIDTH;
2299 item.m_width = width;
2301 item.m_format = format;
2303 return InsertColumn(col, item);
2378 wxString wxListCtrl::OnGetItemText(long WXUNUSED(item), long WXUNUSED(col)) const
2387 int wxListCtrl::OnGetItemImage(long WXUNUSED(item)) const
2395 int wxListCtrl::OnGetItemColumnImage(long item, long column) const
2398 return OnGetItemImage(item);
2403 wxListItemAttr *wxListCtrl::OnGetItemAttr(long WXUNUSED_UNLESS_DEBUG(item)) const
2405 wxASSERT_MSG( item >= 0 && item < GetItemCount(),
2406 _T("invalid item index in OnGetItemAttr()") );
2424 // we need to temporarily disable the new item creation notification
2445 void wxListCtrl::RefreshItem(long item)
2449 m_genericImpl->RefreshItem(item);
2459 wxMacDataItem* thisItem = m_dbImpl->GetItemFromLine(item);
2463 id = item+1;
2578 // we don't issue events on adding, the item is not really stored in the list yet, so we
2821 wxListItem* item = lcItem->GetColumnInfo(listColumn);
2832 if (item->GetMask() & wxLIST_MASK_TEXT)
2833 text = item->GetText();
2834 if (item->GetMask() & wxLIST_MASK_IMAGE)
2835 imgIndex = item->GetImage();
2998 wxListItem item;
2999 list->GetColumn(listColumn, item);
3000 if (item.GetMask() & wxLIST_MASK_FORMAT)
3002 if (item.GetAlign() == wxLIST_FORMAT_LEFT)
3004 else if (item.GetAlign() == wxLIST_FORMAT_CENTER)
3006 else if (item.GetAlign() == wxLIST_FORMAT_RIGHT)
3053 wxListItem* item = lcItem->GetColumnInfo(listColumn);
3054 if (item->GetMask() & wxLIST_MASK_TEXT)
3055 text = item->GetText();
3056 if (item->GetMask() & wxLIST_MASK_IMAGE)
3057 imgIndex = item->GetImage();
3143 wxMacListCtrlItem *item = NULL;
3146 item = (wxMacListCtrlItem *) itemID;
3152 if ( item )
3153 item->Notification(this, message, itemData);
3158 // we don't issue events on adding, the item is not really stored in the list yet, so we
3160 if ( item )
3161 item->Notification(this, message, itemData);
3252 wxMacListCtrlItem* item = (wxMacListCtrlItem*)itemOneID;
3255 itemOrder = item->GetOrder();
3256 otherItemOrder = item->GetOrder();
3263 if (item && item->HasColumnInfo(0))
3264 item1 = item->GetColumnInfo(0)->GetData();
3279 // sort by item id.
3304 void wxMacDataBrowserListCtrlControl::MacSetColumnInfo( unsigned int row, unsigned int column, wxListItem* item )
3308 if (dataItem && item)
3312 listItem->SetColumnInfo( column, item );
3314 UpdateState(dataItem, item);
3319 // update the item prematurely (i.e. no text would be listed) and, on show,
3343 // TODO: Set column width if item width > than current column width
3346 void wxMacDataBrowserListCtrlControl::MacGetColumnInfo( unsigned int row, unsigned int column, wxListItem& item )
3350 // CS should this guard against dataItem = 0 ? , as item is not a pointer if (item) is not appropriate
3362 long mask = item.GetMask();
3368 item.SetText(oldItem->GetText());
3370 item.SetImage(oldItem->GetImage());
3372 item.SetData(oldItem->GetData());
3374 item.SetState(oldItem->GetState());
3376 item.SetWidth(oldItem->GetWidth());
3378 item.SetAlign(oldItem->GetAlign());
3380 item.SetTextColour(oldItem->GetTextColour());
3381 item.SetBackgroundColour(oldItem->GetBackgroundColour());
3382 item.SetFont(oldItem->GetFont());
3387 void wxMacDataBrowserListCtrlControl::MacInsertItem( unsigned int n, wxListItem* item )
3389 wxMacDataItemBrowserControl::MacInsert(n, item->GetText());
3390 MacSetColumnInfo(n, 0, item);
3463 void wxMacListCtrlItem::SetColumnInfo( unsigned int column, wxListItem* item )
3468 wxListItem* listItem = new wxListItem(*item);
3474 long mask = item->GetMask();
3476 listItem->SetText(item->GetText());
3478 listItem->SetData(item->GetData());
3480 listItem->SetImage(item->GetImage());
3482 listItem->SetState(item->GetState());
3484 listItem->SetAlign(item->GetAlign());
3486 listItem->SetWidth(item->GetWidth());
3488 if ( item->HasAttributes() )
3491 listItem->GetAttributes()->AssignFrom(*item->GetAttributes());
3494 listItem->SetTextColour(item->GetTextColour());
3495 listItem->SetBackgroundColour(item->GetBackgroundColour());
3496 listItem->SetFont(item->GetFont());