Code::Blocks  SVN r11506
Public Member Functions | Private Attributes | List of all members
IncrementalListCtrl Class Reference

Class that implements a virtual list control that uses an IncrementalSelectIterator to populate the list items. More...

#include <incremental_select_helper.h>

Inheritance diagram for IncrementalListCtrl:
Collaboration diagram for IncrementalListCtrl:

Public Member Functions

 IncrementalListCtrl (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxLC_ICON, const wxValidator &validator=wxDefaultValidator, const wxString &name=wxListCtrlNameStr)
 
wxString OnGetItemText (long item, long column) const override
 
void SetIterator (IncrementalSelectIterator *iterator)
 
- Public Member Functions inherited from wxListCtrl
 wxListCtrl ()
 
 wxListCtrl (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxLC_ICON, const wxValidator &validator=wxDefaultValidator, const wxString &name=wxListCtrlNameStr)
 
virtual ~wxListCtrl ()
 
long AppendColumn (const wxString &heading, wxListColumnFormat format=wxLIST_FORMAT_LEFT, int width=-1)
 
bool Arrange (int flag=wxLIST_ALIGN_DEFAULT)
 
void AssignImageList (wxImageList *imageList, int which)
 
void ClearAll ()
 
bool Create (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxLC_ICON, const wxValidator &validator=wxDefaultValidator, const wxString &name=wxListCtrlNameStr)
 
bool DeleteAllItems ()
 
bool DeleteColumn (int col)
 
bool DeleteItem (long item)
 
wxTextCtrlEditLabel (long item, wxClassInfo *textControlClass=wxCLASSINFO(wxTextCtrl))
 
void EnableAlternateRowColours (bool enable=true)
 
void EnableBellOnNoMatch (bool on=true)
 
bool EndEditLabel (bool cancel)
 
bool EnsureVisible (long item)
 
long FindItem (long start, const wxString &str, bool partial=false)
 
long FindItem (long start, wxUIntPtr data)
 
long FindItem (long start, const wxPoint &pt, int direction)
 
bool GetColumn (int col, wxListItem &item) const
 
int GetColumnCount () const
 
int GetColumnIndexFromOrder (int pos) const
 
int GetColumnOrder (int col) const
 
int GetColumnWidth (int col) const
 
wxArrayInt GetColumnsOrder () const
 
int GetCountPerPage () const
 
wxTextCtrlGetEditControl () const
 
wxImageListGetImageList (int which) const
 
bool GetItem (wxListItem &info) const
 
wxColour GetItemBackgroundColour (long item) const
 
int GetItemCount () const
 
wxUIntPtr GetItemData (long item) const
 
wxFont GetItemFont (long item) const
 
bool GetItemPosition (long item, wxPoint &pos) const
 
bool GetItemRect (long item, wxRect &rect, int code=wxLIST_RECT_BOUNDS) const
 
wxSize GetItemSpacing () const
 
int GetItemState (long item, long stateMask) const
 
wxString GetItemText (long item, int col=0) const
 
wxColour GetItemTextColour (long item) const
 
long GetNextItem (long item, int geometry=wxLIST_NEXT_ALL, int state=wxLIST_STATE_DONTCARE) const
 
int GetSelectedItemCount () const
 
bool GetSubItemRect (long item, long subItem, wxRect &rect, int code=wxLIST_RECT_BOUNDS) const
 
wxColour GetTextColour () const
 
long GetTopItem () const
 
wxRect GetViewRect () const
 
void SetAlternateRowColour (const wxColour &colour)
 
long HitTest (const wxPoint &point, int &flags, long *ptrSubItem=NULL) const
 
bool InReportView () const
 
long InsertColumn (long col, const wxListItem &info)
 
long InsertColumn (long col, const wxString &heading, int format=wxLIST_FORMAT_LEFT, int width=wxLIST_AUTOSIZE)
 
long InsertItem (wxListItem &info)
 
long InsertItem (long index, const wxString &label)
 
long InsertItem (long index, int imageIndex)
 
long InsertItem (long index, const wxString &label, int imageIndex)
 
bool IsVirtual () const
 
void RefreshItem (long item)
 
void RefreshItems (long itemFrom, long itemTo)
 
bool ScrollList (int dx, int dy)
 
virtual bool SetBackgroundColour (const wxColour &col)
 
bool SetColumn (int col, wxListItem &item)
 
bool SetColumnWidth (int col, int width)
 
bool SetColumnsOrder (const wxArrayInt &orders)
 
void SetImageList (wxImageList *imageList, int which)
 
bool SetItem (wxListItem &info)
 
long SetItem (long index, int column, const wxString &label, int imageId=-1)
 
void SetItemBackgroundColour (long item, const wxColour &col)
 
bool SetItemColumnImage (long item, long column, int image)
 
void SetItemCount (long count)
 
bool SetItemData (long item, long data)
 
void SetItemFont (long item, const wxFont &font)
 
bool SetItemImage (long item, int image, int selImage=-1)
 
bool SetItemPosition (long item, const wxPoint &pos)
 
bool SetItemPtrData (long item, wxUIntPtr data)
 
bool SetItemState (long item, long state, long stateMask)
 
void SetItemText (long item, const wxString &text)
 
void SetItemTextColour (long item, const wxColour &col)
 
void SetSingleStyle (long style, bool add=true)
 
void SetTextColour (const wxColour &col)
 
void SetWindowStyleFlag (long style)
 
bool SortItems (wxListCtrlCompare fnSortCallBack, wxIntPtr data)
 

Private Attributes

IncrementalSelectIteratorm_Iterator
 

Additional Inherited Members

- Protected Member Functions inherited from wxListCtrl
virtual wxListItemAttrOnGetItemAttr (long item) const
 
virtual wxListItemAttrOnGetItemColumnAttr (long item, long column) const
 
virtual int OnGetItemColumnImage (long item, long column) const
 
virtual int OnGetItemImage (long item) const
 

Detailed Description

Class that implements a virtual list control that uses an IncrementalSelectIterator to populate the list items.

Definition at line 82 of file incremental_select_helper.h.

Constructor & Destructor Documentation

◆ IncrementalListCtrl()

IncrementalListCtrl::IncrementalListCtrl ( wxWindow parent,
wxWindowID  winid = wxID_ANY,
const wxPoint pos = wxDefaultPosition,
const wxSize size = wxDefaultSize,
long  style = wxLC_ICON,
const wxValidator validator = wxDefaultValidator,
const wxString name = wxListCtrlNameStr 
)

Definition at line 292 of file incremental_select_helper.cpp.

Member Function Documentation

◆ OnGetItemText()

wxString IncrementalListCtrl::OnGetItemText ( long  item,
long  column 
) const
overridevirtual

Reimplemented from wxListCtrl.

Definition at line 298 of file incremental_select_helper.cpp.

References IncrementalSelectIterator::GetDisplayText(), and m_Iterator.

◆ SetIterator()

void IncrementalListCtrl::SetIterator ( IncrementalSelectIterator iterator)

Definition at line 303 of file incremental_select_helper.cpp.

References m_Iterator.

Referenced by GotoFile::BuildContent(), and GotoFunctionDlg::BuildContent().

Member Data Documentation

◆ m_Iterator

IncrementalSelectIterator* IncrementalListCtrl::m_Iterator
private

Definition at line 93 of file incremental_select_helper.h.

Referenced by OnGetItemText(), and SetIterator().


The documentation for this class was generated from the following files: