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

Lines Matching refs:item

114     bool    bNeedsUpdate;   //  only set to true when an item whose
173 // the item image or -1
176 // user data associated with the item
179 // the item coordinates are not used in report mode; instead this pointer is
180 // NULL and the owner window is used to retrieve the item position and size
205 void SetItem( const wxListItem &item );
217 void GetItem( wxListItem &item );
251 // the list of subitems: only may have more than one item in report mode
257 // total item rect
283 // is this item selected? [NB: not used in virtual mode]
360 // prepare the DC for drawing with these item's attributes, return true if
567 // get the rect to be highlighted when the item has focus
577 // bring the selected item into view, scrolling to it if necessary
578 void MoveToItem(size_t item);
580 // bring the current item into view
583 // start editing the label of the given item
584 wxTextCtrl *EditLabel(long item,
608 // called to switch the selection from the current item to newCurrent,
636 void SetColumn( int col, wxListItem &item );
638 void GetColumn( int col, wxListItem &item ) const;
647 void SetItem( wxListItem &item );
648 void GetItem( wxListItem &item ) const;
649 void SetItemState( long item, long state, long stateMask );
651 int GetItemState( long item, long stateMask ) const;
654 bool GetItemPosition( long item, wxPoint& pos ) const;
657 wxString GetItemText(long item) const
661 info.m_itemId = item;
666 void SetItemText(long item, const wxString& value)
670 info.m_itemId = item;
681 long GetNextItem( long item, int geometry, int state ) const;
691 void InsertItem( wxListItem &item );
692 void InsertColumn( long col, wxListItem &item );
693 int GetItemWidthWithImage(wxListItem * item);
700 // change the current (== focused) item, send a notification event
735 // get the brush to use for the item highlighting
754 // currently focused item or -1
761 // redrawing happens (i.e. an item was added or deleted, or its appearance
834 // initialize the current item if needed
852 // the brushes to use for item highlighting when we do/don't have focus
860 // NULL if no item is being edited
1025 wxListHeaderData::wxListHeaderData( const wxListItem &item )
1029 SetItem( item );
1032 void wxListHeaderData::SetItem( const wxListItem &item )
1034 m_mask = item.m_mask;
1037 m_text = item.m_text;
1040 m_image = item.m_image;
1043 m_format = item.m_format;
1046 SetWidth(item.m_width);
1049 SetState(item.m_state);
1088 void wxListHeaderData::GetItem( wxListItem& item )
1090 item.m_mask = m_mask;
1091 item.m_text = m_text;
1092 item.m_image = m_image;
1093 item.m_format = m_format;
1094 item.m_width = m_width;
1095 item.m_state = m_state;
1156 wxListItemData *item = node->GetData();
1167 s = item->GetText();
1189 if (item->HasImage())
1192 m_owner->GetImageSize( item->GetImage(), w, h );
1202 if ( item->HasText() )
1215 s = item->GetTextForMeasuring();
1227 if (item->HasImage())
1230 m_owner->GetImageSize( item->GetImage(), w, h );
1258 wxListItemData *item = node->GetData();
1267 if ( item->HasImage() )
1274 if ( item->HasText() )
1299 if (item->HasImage())
1332 wxListItemData *item = node->GetData();
1333 item->SetItem( info );
1341 wxListItemData *item = node->GetData();
1342 item->GetItem( info );
1353 wxListItemData *item = node->GetData();
1354 s = item->GetText();
1365 wxListItemData *item = node->GetData();
1366 item->SetText( s );
1375 wxListItemData *item = node->GetData();
1376 item->SetImage(image);
1384 wxListItemData *item = node->GetData();
1385 return item->GetImage();
1393 wxListItemData *item = node->GetData();
1394 return item->GetAttr();
1402 wxListItemData *item = node->GetData();
1403 item->SetAttr(attr);
1510 wxListItemData *item = node->GetData();
1511 if (item->HasImage())
1517 m_owner->DrawImage(item->GetImage(), dc, rectIcon.x, rectIcon.y);
1520 if (item->HasText())
1525 dc->DrawText(item->GetText(), rectLabel.x, rectLabel.y);
1577 wxListItemData *item = node->GetData();
1583 if ( item->HasImage() )
1586 m_owner->GetImageSize( item->GetImage(), ix, iy );
1587 m_owner->DrawImage( item->GetImage(), dc, xOld, yMid - iy/2 );
1595 if ( item->HasText() )
1596 DrawTextFormatted(dc, item->GetText(), col, xOld, yMid, width - 8);
1623 wxListItem item;
1624 m_owner->GetColumn(col, item);
1625 switch ( item.GetAlign() )
1640 wxFAIL_MSG( _T("unknown list item format") );
1808 wxListItem item;
1811 m_owner->GetColumn( i, item );
1812 int wCol = item.m_width;
1826 if ( !m_owner->IsVirtual() && (item.m_mask & wxLIST_MASK_STATE) &&
1827 (item.m_state & wxLIST_STATE_SELECTED) )
1844 dc.GetTextExtent(item.GetText(), &wLabel, &hLabel);
1849 const int image = item.m_image;
1867 switch ( wLabel < cw ? item.GetAlign() : wxLIST_FORMAT_LEFT )
1870 wxFAIL_MSG( _T("unknown list item format") );
1903 dc.DrawText( item.GetText(),
2184 // accepted, do rename the item (unless nothing changed)
2464 wxListItemData *item = node->GetData();
2465 if ( item->HasImage() )
2468 GetImageSize( item->GetImage(), ix, iy );
2889 // we just have one item to turn off
2935 //else: there may be no more such item
2944 // as the current item changed, we shouldn't start editing it when the
2945 // "slow click" timer expires as the click happened on another item
2952 wxTextCtrl *wxListMainWindow::EditLabel(long item, wxClassInfo* textControlClass)
2954 wxCHECK_MSG( (item >= 0) && ((size_t)item < GetItemCount()), NULL,
2960 size_t itemEdit = (size_t)item;
2964 le.m_itemIndex = item;
2981 // Pending events dispatched by wxSafeYield might have changed the item
2983 if ( (size_t)item >= GetItemCount() )
2988 m_textctrlWrapper = new wxListTextCtrlWrapper(this, text, item);
3110 // get the item being dragged
3137 // outside of any item
3174 // The first click was on another item, so don't interpret this as
3223 // If the item is already selected, do not update the selection.
3224 // Multi-selections should not be cleared if a selected item is clicked.
3303 // forceClick is only set if the previous click was on another item
3308 void wxListMainWindow::MoveToItem(size_t item)
3310 if ( item == (size_t)-1 )
3313 wxRect rect = GetLineRect(item);
3361 _T("invalid item index in OnArrowChar()") );
3395 // in single selection mode we must always have a selected item
3461 // no item -> nothing to do
3720 void wxListMainWindow::SetColumn( int col, wxListItem &item )
3726 if ( item.m_width == wxLIST_AUTOSIZE_USEHEADER )
3727 item.m_width = GetTextLength( item.m_text );
3730 column->SetItem( item );
3804 wxListItem item;
3806 itemData->GetItem(item);
3807 int itemWidth = GetItemWidthWithImage(&item);
3843 void wxListMainWindow::GetColumn( int col, wxListItem &item ) const
3849 column->GetItem( item );
3862 // item state
3865 void wxListMainWindow::SetItem( wxListItem &item )
3867 long id = item.m_itemId;
3869 _T("invalid item index in SetItem") );
3874 line->SetItem( item.m_col, item );
3876 // Set item state if user wants
3877 if ( item.m_mask & wxLIST_MASK_STATE )
3878 SetItemState( item.m_itemId, item.m_state, item.m_state );
3883 int width = GetItemWidthWithImage(&item);
3885 if (width > m_aColWidths.Item(item.m_col)->nMaxWidth)
3886 m_aColWidths.Item(item.m_col)->nMaxWidth = width;
3890 // update the item on screen
3933 // unfocus all: only one item can be focussed, so clearing focus for
3934 // all items is simply clearing focus of the focussed item.
3949 _T("invalid list ctrl item index in SetItem") );
3952 size_t item = (size_t)litem; // safe because of the check above
3959 // don't do anything if this item is already focused
3960 if ( item != m_current )
3962 ChangeCurrent(item);
3979 // don't do anything if this item is not focused
3980 if ( item == m_current )
3986 // we must unselect the old current item as well or we
3987 // might end up with more than one selected item in a
4006 // selecting the item also makes it the focused one in the
4008 if ( m_current != item )
4010 ChangeCurrent(item);
4021 // only the current item may be selected anyhow
4022 if ( item != m_current )
4027 if ( HighlightLine(item, on) )
4029 RefreshLine(item);
4034 int wxListMainWindow::GetItemState( long item, long stateMask ) const
4036 wxCHECK_MSG( item >= 0 && (size_t)item < GetItemCount(), 0,
4037 _T("invalid list ctrl item index in GetItemState()") );
4043 if ( (size_t)item == m_current )
4049 if ( IsHighlighted(item) )
4056 void wxListMainWindow::GetItem( wxListItem &item ) const
4058 wxCHECK_RET( item.m_itemId >= 0 && (size_t)item.m_itemId < GetItemCount(),
4059 _T("invalid item index in GetItem") );
4061 wxListLineData *line = GetLine((size_t)item.m_itemId);
4062 line->GetItem( item.m_col, item );
4064 // Get item state if user wants it
4065 if ( item.m_mask & wxLIST_MASK_STATE )
4066 item.m_state = GetItemState( item.m_itemId, wxLIST_STATE_SELECTED |
4071 // item count
4114 // item position/size
4174 bool wxListMainWindow::GetItemPosition(long item, wxPoint& pos) const
4177 GetItemRect(item, rect);
4351 // We have reached the last item.
4410 long wxListMainWindow::GetNextItem( long item,
4414 long ret = item,
4419 // notice that we start with the next item (or the first one if item == -1)
4425 // just no such item
4454 _T("invalid item index in DeleteItem") );
4461 // if the current item is being deleted, we want the next one to
4475 wxListItem item;
4482 itemData->GetItem(item);
4484 itemWidth = GetItemWidthWithImage(&item);
4552 // notifications for each item deletion in this case but only one event
4594 // scanning for an item
4650 wxListItem item;
4651 line->GetItem( 0, item );
4652 if (item.m_data == data)
4711 void wxListMainWindow::InsertItem( wxListItem &item )
4716 wxCHECK_RET( item.m_itemId >= 0, _T("invalid item index") );
4718 if (item.m_itemId > count)
4719 item.m_itemId = count;
4721 size_t id = item.m_itemId;
4729 // calculate the width of the item and adjust the max column width
4730 wxColWidthInfo *pWidthInfo = m_aColWidths.Item(item.GetColumn());
4731 int width = GetItemWidthWithImage(&item);
4732 item.SetWidth(width);
4739 line->SetItem( item.m_col, item );
4745 // If an item is selected at or below the point of insertion, we need to
4756 void wxListMainWindow::InsertColumn( long col, wxListItem &item )
4761 if (item.m_width == wxLIST_AUTOSIZE_USEHEADER)
4762 item.m_width = GetTextLength( item.m_text );
4764 wxListHeaderData *column = new wxListHeaderData( item );
4800 int wxListMainWindow::GetItemWidthWithImage(wxListItem * item)
4807 if (item->GetImage() != -1)
4810 GetImageSize( item->GetImage(), ix, iy );
4814 if (!item->GetText().empty())
4817 dc.GetTextExtent( item->GetText(), &w, NULL );
4835 wxListItem item;
4836 line1->GetItem( 0, item );
4837 wxUIntPtr data1 = item.m_data;
4838 line2->GetItem( 0, item );
4839 wxUIntPtr data2 = item.m_data;
5156 bool wxGenericListCtrl::GetColumn(int col, wxListItem &item) const
5158 m_mainWin->GetColumn( col, item );
5162 bool wxGenericListCtrl::SetColumn( int col, wxListItem& item )
5164 m_mainWin->SetColumn( col, item );
5213 int wxGenericListCtrl::GetItemState( long item, long stateMask ) const
5215 return m_mainWin->GetItemState( item, stateMask );
5218 bool wxGenericListCtrl::SetItemState( long item, long state, long stateMask )
5220 m_mainWin->SetItemState( item, state, stateMask );
5225 wxGenericListCtrl::SetItemImage( long item, int image, int WXUNUSED(selImage) )
5227 return SetItemColumnImage(item, 0, image);
5231 wxGenericListCtrl::SetItemColumnImage( long item, long column, int image )
5236 info.m_itemId = item;
5242 wxString wxGenericListCtrl::GetItemText( long item ) const
5244 return m_mainWin->GetItemText(item);
5247 void wxGenericListCtrl::SetItemText( long item, const wxString& str )
5249 m_mainWin->SetItemText(item, str);
5252 wxUIntPtr wxGenericListCtrl::GetItemData( long item ) const
5256 info.m_itemId = item;
5261 bool wxGenericListCtrl::SetItemPtrData( long item, wxUIntPtr data )
5265 info.m_itemId = item;
5272 bool wxGenericListCtrl::SetItemData(long item, long data)
5274 return SetItemPtrData(item, data);
5283 bool wxGenericListCtrl::GetItemRect( long item, wxRect &rect, int WXUNUSED(code) ) const
5285 m_mainWin->GetItemRect( item, rect );
5291 bool wxGenericListCtrl::GetItemPosition( long item, wxPoint& pos ) const
5293 m_mainWin->GetItemPosition( item, pos );
5297 bool wxGenericListCtrl::SetItemPosition( long WXUNUSED(item), const wxPoint& WXUNUSED(pos) )
5331 void wxGenericListCtrl::OnDrawItem(int WXUNUSED(item), wxDC* WXUNUSED(dc), const wxRect& WXUNUSED(rect), const wxRect& WXUNUSED(rectHL), bool WXUNUSED(highlighted))
5336 void wxGenericListCtrl::SetItemTextColour( long item, const wxColour &col )
5339 info.m_itemId = item;
5344 wxColour wxGenericListCtrl::GetItemTextColour( long item ) const
5347 info.m_itemId = item;
5352 void wxGenericListCtrl::SetItemBackgroundColour( long item, const wxColour &col )
5355 info.m_itemId = item;
5360 wxColour wxGenericListCtrl::GetItemBackgroundColour( long item ) const
5363 info.m_itemId = item;
5378 void wxGenericListCtrl::SetItemFont( long item, const wxFont &f )
5381 info.m_itemId = item;
5386 wxFont wxGenericListCtrl::GetItemFont( long item ) const
5389 info.m_itemId = item;
5426 long wxGenericListCtrl::GetNextItem( long item, int geom, int state ) const
5428 return m_mainWin->GetNextItem( item, geom, state );
5486 bool wxGenericListCtrl::DeleteItem( long item )
5488 m_mainWin->DeleteItem( item );
5521 wxTextCtrl *wxGenericListCtrl::EditLabel(long item,
5524 return m_mainWin->EditLabel( item, textControlClass );
5532 bool wxGenericListCtrl::EnsureVisible( long item )
5534 m_mainWin->EnsureVisible( item );
5554 // TODO: sub item hit testing
5594 long wxGenericListCtrl::InsertColumn( long col, wxListItem &item )
5598 m_mainWin->InsertColumn( col, item );
5613 wxListItem item;
5614 item.m_mask = wxLIST_MASK_TEXT | wxLIST_MASK_FORMAT;
5615 item.m_text = heading;
5618 item.m_mask |= wxLIST_MASK_WIDTH;
5619 item.m_width = width;
5622 item.m_format = format;
5624 return InsertColumn( col, item );
5634 // item1 is the long data associated with a first item (NOT the index).
5635 // item2 is the long data associated with a second item (NOT the index).
5637 // The return value is a negative number if the first item should precede the second
5638 // item, a positive number of the second item should precede the first,
5836 wxString wxGenericListCtrl::OnGetItemText(long WXUNUSED(item), long WXUNUSED(col)) const
5845 int wxGenericListCtrl::OnGetItemImage(long WXUNUSED(item)) const
5853 int wxGenericListCtrl::OnGetItemColumnImage(long item, long column) const
5856 return OnGetItemImage(item);
5862 wxGenericListCtrl::OnGetItemAttr(long WXUNUSED_UNLESS_DEBUG(item)) const
5864 wxASSERT_MSG( item >= 0 && item < GetItemCount(),
5865 _T("invalid item index in OnGetItemAttr()") );
5878 void wxGenericListCtrl::RefreshItem(long item)
5880 m_mainWin->RefreshLine(item);