TorrentListCtrl Class Reference

list all currently active (queued,lecching,seeding) torrents with their infos the list is newly populated every n-seconds from Ui::OnUpdate() More...

#include <torrentlistctrl.h>

Inherits CustomVirtListCtrl< TorrentInfos, TorrentListCtrl >.

Collaboration diagram for TorrentListCtrl:
Collaboration graph
[legend]

Public Types

typedef TorrentInfos DataType

Public Member Functions

 TorrentListCtrl (wxWindow *parent)
 ~TorrentListCtrl ()
void Sort ()
 must be implemented in derived classes, should call the actual sorting on data and refreshitems
void OnListRightClick (wxListEvent &event)
virtual void SetTipWindowText (const long item_hit, const wxPoint &position)
bool AddTorrentInfo (const DataType &info)
bool RemoveTorrentInfo (const DataType &info)
void UpdateTorrentInfo (const DataType &info)
virtual void HighlightItem (long item)
void OnCancel (wxCommandEvent &event)
void OnRetry (wxCommandEvent &event)
wxString GetItemText (long item, long column) const
int GetItemImage (long item) const
int GetItemColumnImage (long item, long column) const
wxListItemAttr * GetItemAttr (long) const
void OnSelected (wxListEvent &event)
void OnDeselected (wxListEvent &event)
void AddColumn (long i, int width, const wxString &label, const wxString &tip, bool=true)
virtual void OnTimer (wxTimerEvent &event)
 this event is triggered when delay timer (set in mousemotion) ended
void OnStartResizeCol (wxListEvent &event)
 prohibits resizin if so set in columnInfo
virtual void OnEndResizeCol (wxListEvent &event)
 we use this to automatically save column width after resizin
virtual void OnMouseMotion (wxMouseEvent &event)
 starts timer, sets tooltiptext
void CancelTooltipTimer ()
 stop timer (before displaying popup f.e.)
bool PopupMenu (wxMenu *menu, const wxPoint &pos=wxDefaultPosition)
 Override to have tooltip timer cancelled automatically.
void noOp (wxMouseEvent &event)
 does nothing
virtual bool SetColumnWidth (int col, int &width)
 automatically get saved column width if already saved, otherwise use parameter and save new width
void ResetColumnSizes ()
 reset columns with current set size (only effects columns with auto-size)
wxListItemAttr * HighlightItemUser (const wxString &name) const
 all that needs to be implemented in child class for UpdateHighlights to work
void SetHighLightAction (UserActions::ActionType action)
void RefreshVisibleItems ()
void SelectNone ()
void MarkDirtySort ()
 marks the items in the control to be sorted
virtual void Clear ()
void OnColClick (wxListEvent &event)
 handle sort order updates
void ReverseOrder ()
void OnQuit (GlobalEvents::GlobalEventData data)
void OnQuit (EventDataType data)
void StartTimer ()
void StopTimer ()
Single Selection methods

using these funcs in a multi selection list is meaningless at best, harmful in the worst case

Todo:
insert debug asserts to catch that
long GetSelectedIndex () const
void SetSelectedIndex (const long newindex)
DataType GetDataFromIndex (const long index)
const DataType GetDataFromIndex (const long index) const
DataType GetSelectedData ()
Multi Selection methods

using these funcs in a single selection list is meaingless at best, harmful in the worst case

Todo:
insert debug asserts to catch that
void SaveSelection ()
void ResetSelection ()
void RestoreSelection ()
 and this afterwards
void SelectAll ()
void SelectInverse ()
overloaded wxFunctions

these are used to display items in virtual lists

wxString OnGetItemText (long item, long column) const
int OnGetItemColumnImage (long item, long column) const
wxListItemAttr * OnGetItemAttr (long item) const
bool GetColumn (int col, wxListItem &item) const
 when using the dummy column, we provide diff impl that adjust for that
bool SetColumn (int col, wxListItem &item)

Protected Types

enum  { TLIST_CLICK, TLIST_CANCEL, TLIST_RETRY }
typedef CustomVirtListCtrl
< TorrentInfos,
TorrentListCtrl
BaseType
typedef UserActions::ActionType ActionType
typedef std::vector< colInfo > colInfoVec
typedef std::map< unsigned int,
unsigned int > 
ColumnMap
 maps outward column index to internal
typedef std::map< int, int > VisibilityMap
 map: index in visible list <--> index in data vector
typedef VisibilityMap::iterator VisibilityMapIter
typedef std::vector< TorrentInfosDataVector
typedef DataVector::iterator DataIter
typedef DataVector::const_iterator DataCIter
typedef
DataVector::reverse_iterator 
DataRevIter
typedef
DataVector::const_reverse_iterator 
DataRevCIter
typedef DataType SelectedDataType
typedef std::vector
< SelectedDataType
SelectedDataVector
typedef EventReceiverFunc
< OnQuitSink, EventDataType,&OnQuitSink::OnQuit > 
EventReceiverFunction

Protected Member Functions

int CompareOneCrit (DataType u1, DataType u2, int col, int dir) const
int GetIndexFromData (const DataType &data) const
bool IsTorrentActive (const DataType &info) const
int getColumnFromPosition (wxPoint pos)
 primarily used to get coulumn index in mousevents (from cur. mouse pos)
bool RemoveItem (const TorrentInfos &item)
bool AddItem (const TorrentInfos &item)
void OnPeriodicSort (wxTimerEvent &evt)
void OnSortEvent (wxCommandEvent &evt)
 this is the sink for a custom event that can be used for async sort

Protected Attributes

wxMenu * m_popup
wxTimer m_tiptimer
 used to display tooltips for a certain amount of time
wxTimer m_sort_timer
 used to block sorting while mouse is moving
wxString m_tiptext
 always set to the currrently displayed tooltip text
unsigned int m_columnCount
long m_selected_index
 index of curently selected data
long m_prev_selected_index
 index of previously selected data
colInfoVec m_colinfovec
 stores info about the columns (wxString name,bool isResizable) - pairs
VisibilityMap m_visible_idxs
 list indexes of not-filtered items use like this: when adding items set identity mapping
m_visible_idxs[m_data.size() -1] = ( m_data.size() -1 );
when filtering clear the map, iterate thru data and only set mapping for matching items in data
when acessing data (getColoumText etc.
wxPoint m_last_mouse_pos
wxString m_name
 used as label for saving column widths
bool m_highlight
 controls if highlighting should be considered
ActionType m_highlightAction
 which action should be considered?
const wxColour m_bg_color
bool m_dirty_sort
 list should be sorted
ColumnMap m_column_map
DataVector m_data
SelectedDataVector m_selected_data
ItemComparator< DataTypem_comparator
 the Comparator object passed to the SLInsertionSort function
long m_periodic_sort_timer_id
wxTimer m_periodic_sort_timer
bool m_periodic_sort
unsigned int m_periodic_sort_interval
EventReceiverFunction m_OnQuitSink

Static Protected Attributes

static const unsigned int m_tooltip_delay
 global Tooltip thingies (ms)
static const unsigned int m_tooltip_duration
static const unsigned int m_sort_block_time

Sort functionality



typedef ItemComparator
< TorrentInfos >::CmpFunc 
CompareFunction
unsigned int m_sort_criteria_count
void SortList (bool force=false)
 only sorts if data is marked dirty, or force is true calls Freeze(), Sort(), Thaw()
static SortOrder m_sortorder
static int compareSimple (Type o1, Type o2)
 compare func usable for types with well-defined ordering (and implemented ops <,>)

Detailed Description

list all currently active (queued,lecching,seeding) torrents with their infos the list is newly populated every n-seconds from Ui::OnUpdate()

Definition at line 21 of file torrentlistctrl.h.


Member Typedef Documentation

Definition at line 55 of file customvirtlistctrl.h.

Reimplemented from OnQuitSink< Derived, EventDataType >.

Definition at line 53 of file customvirtlistctrl.h.

typedef std::vector<colInfo> CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::colInfoVec [protected, inherited]

Definition at line 90 of file customvirtlistctrl.h.

typedef std::map<unsigned int,unsigned int> CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::ColumnMap [protected, inherited]

maps outward column index to internal

Definition at line 93 of file customvirtlistctrl.h.

typedef ItemComparator<TorrentInfos >::CmpFunc CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::CompareFunction [protected, inherited]

Definition at line 200 of file customvirtlistctrl.h.

typedef DataVector::const_iterator CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::DataCIter [protected, inherited]

Definition at line 333 of file customvirtlistctrl.h.

typedef DataVector::iterator CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::DataIter [protected, inherited]

Definition at line 331 of file customvirtlistctrl.h.

typedef DataVector::const_reverse_iterator CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::DataRevCIter [protected, inherited]

Definition at line 337 of file customvirtlistctrl.h.

typedef DataVector::reverse_iterator CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::DataRevIter [protected, inherited]

Definition at line 335 of file customvirtlistctrl.h.

Definition at line 49 of file customvirtlistctrl.h.

typedef std::vector< TorrentInfos > CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::DataVector [protected, inherited]

Definition at line 329 of file customvirtlistctrl.h.

template<class Derived, class EventDataType = GlobalEvents::GlobalEventData>
typedef EventReceiverFunc<OnQuitSink, EventDataType, &OnQuitSink::OnQuit> OnQuitSink< Derived, EventDataType >::EventReceiverFunction [protected, inherited]

Definition at line 65 of file isink.h.

Definition at line 341 of file customvirtlistctrl.h.

typedef std::vector< SelectedDataType > CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::SelectedDataVector [protected, inherited]

Definition at line 343 of file customvirtlistctrl.h.

typedef std::map<int,int> CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::VisibilityMap [protected, inherited]

map: index in visible list <--> index in data vector

Definition at line 115 of file customvirtlistctrl.h.

typedef VisibilityMap::iterator CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::VisibilityMapIter [protected, inherited]

Definition at line 116 of file customvirtlistctrl.h.


Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
TLIST_CLICK 
TLIST_CANCEL 
TLIST_RETRY 

Definition at line 55 of file torrentlistctrl.h.


Constructor & Destructor Documentation

TorrentListCtrl::TorrentListCtrl ( wxWindow *  parent  ) 

Definition at line 40 of file torrentlistctrl.cpp.

TorrentListCtrl::~TorrentListCtrl (  ) 

Definition at line 79 of file torrentlistctrl.cpp.


Member Function Documentation

void CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::AddColumn ( long  i,
int  width,
const wxString label,
const wxString tip,
bool  = true 
) [inherited]

intermediate function to add info to m_colinfovec after calling base class function

bool CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::AddItem ( const TorrentInfos item  )  [protected, inherited]
bool TorrentListCtrl::AddTorrentInfo ( const DataType info  ) 

Definition at line 86 of file torrentlistctrl.cpp.

void CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::CancelTooltipTimer (  )  [inherited]

stop timer (before displaying popup f.e.)

virtual void CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::Clear (  )  [virtual, inherited]

delete all data, selections, and whatnot

int TorrentListCtrl::CompareOneCrit ( DataType  u1,
DataType  u2,
int  col,
int  dir 
) const [protected]

Definition at line 182 of file torrentlistctrl.cpp.

static int CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::compareSimple ( Type  o1,
Type  o2 
) [inline, static, protected, inherited]

compare func usable for types with well-defined ordering (and implemented ops <,>)

Definition at line 204 of file customvirtlistctrl.h.

bool CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::GetColumn ( int  col,
wxListItem &  item 
) const [inherited]

when using the dummy column, we provide diff impl that adjust for that

int CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::getColumnFromPosition ( wxPoint  pos  )  [protected, inherited]

primarily used to get coulumn index in mousevents (from cur. mouse pos)

const DataType CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::GetDataFromIndex ( const long  index  )  const [inherited]
DataType CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::GetDataFromIndex ( const long  index  )  [inherited]
int TorrentListCtrl::GetIndexFromData ( const DataType data  )  const [protected, virtual]
wxListItemAttr* TorrentListCtrl::GetItemAttr ( long   )  const [inline]

Definition at line 45 of file torrentlistctrl.h.

int TorrentListCtrl::GetItemColumnImage ( long  item,
long  column 
) const

Definition at line 196 of file torrentlistctrl.cpp.

int TorrentListCtrl::GetItemImage ( long  item  )  const

Definition at line 201 of file torrentlistctrl.cpp.

wxString TorrentListCtrl::GetItemText ( long  item,
long  column 
) const

Definition at line 207 of file torrentlistctrl.cpp.

DataType CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::GetSelectedData (  )  [inherited]
long CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::GetSelectedIndex (  )  const [inherited]
void TorrentListCtrl::HighlightItem ( long  item  )  [virtual]

Definition at line 177 of file torrentlistctrl.cpp.

wxListItemAttr* CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::HighlightItemUser ( const wxString name  )  const [inherited]

all that needs to be implemented in child class for UpdateHighlights to work

bool TorrentListCtrl::IsTorrentActive ( const DataType info  )  const [protected]

Definition at line 245 of file torrentlistctrl.cpp.

void CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::MarkDirtySort (  )  [inherited]

marks the items in the control to be sorted

void CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::noOp ( wxMouseEvent &  event  )  [inherited]

does nothing

void TorrentListCtrl::OnCancel ( wxCommandEvent &  event  ) 

Definition at line 145 of file torrentlistctrl.cpp.

void CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::OnColClick ( wxListEvent &  event  )  [inherited]

handle sort order updates

void CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::OnDeselected ( wxListEvent &  event  )  [inherited]
virtual void CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::OnEndResizeCol ( wxListEvent &  event  )  [virtual, inherited]

we use this to automatically save column width after resizin

wxListItemAttr* CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::OnGetItemAttr ( long  item  )  const [inherited]
int CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::OnGetItemColumnImage ( long  item,
long  column 
) const [inherited]
wxString CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::OnGetItemText ( long  item,
long  column 
) const [inherited]
void TorrentListCtrl::OnListRightClick ( wxListEvent &  event  ) 

Definition at line 123 of file torrentlistctrl.cpp.

virtual void CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::OnMouseMotion ( wxMouseEvent &  event  )  [virtual, inherited]

starts timer, sets tooltiptext

void CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::OnPeriodicSort ( wxTimerEvent &  evt  )  [protected, inherited]
template<class Derived, class EventDataType = GlobalEvents::GlobalEventData>
void OnQuitSink< Derived, EventDataType >::OnQuit ( EventDataType  data  )  [inline, inherited]

Reimplemented in CustomVirtListCtrl< DataImp, ListCtrlImp >, NotificationManager, and SpringLobbyApp.

Definition at line 61 of file isink.h.

void CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::OnQuit ( GlobalEvents::GlobalEventData  data  )  [inherited]
void TorrentListCtrl::OnRetry ( wxCommandEvent &  event  ) 

Definition at line 152 of file torrentlistctrl.cpp.

void CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::OnSelected ( wxListEvent &  event  )  [inherited]
void CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::OnSortEvent ( wxCommandEvent &  evt  )  [protected, inherited]

this is the sink for a custom event that can be used for async sort

void CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::OnStartResizeCol ( wxListEvent &  event  )  [inherited]

prohibits resizin if so set in columnInfo

virtual void CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::OnTimer ( wxTimerEvent &  event  )  [virtual, inherited]

this event is triggered when delay timer (set in mousemotion) ended

bool CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::PopupMenu ( wxMenu *  menu,
const wxPoint pos = wxDefaultPosition 
) [inherited]

Override to have tooltip timer cancelled automatically.

void CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::RefreshVisibleItems (  )  [inherited]
bool CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::RemoveItem ( const TorrentInfos item  )  [protected, inherited]
bool TorrentListCtrl::RemoveTorrentInfo ( const DataType info  ) 

Definition at line 94 of file torrentlistctrl.cpp.

void CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::ResetColumnSizes (  )  [inherited]

reset columns with current set size (only effects columns with auto-size)

void CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::ResetSelection (  )  [inherited]
void CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::RestoreSelection (  )  [inherited]

and this afterwards

void CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::ReverseOrder (  )  [inherited]
void CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::SaveSelection (  )  [inherited]
void CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::SelectAll (  )  [inherited]
void CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::SelectInverse (  )  [inherited]
void CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::SelectNone (  )  [inherited]

sets selected index to -1

bool CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::SetColumn ( int  col,
wxListItem &  item 
) [inherited]
virtual bool CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::SetColumnWidth ( int  col,
int &  width 
) [virtual, inherited]

automatically get saved column width if already saved, otherwise use parameter and save new width

void CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::SetHighLightAction ( UserActions::ActionType  action  )  [inherited]
void CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::SetSelectedIndex ( const long  newindex  )  [inherited]
void TorrentListCtrl::SetTipWindowText ( const long  item_hit,
const wxPoint position 
) [virtual]

Reimplemented from CustomVirtListCtrl< TorrentInfos, TorrentListCtrl >.

Definition at line 172 of file torrentlistctrl.cpp.

void TorrentListCtrl::Sort (  )  [virtual]

must be implemented in derived classes, should call the actual sorting on data and refreshitems

Implements CustomVirtListCtrl< TorrentInfos, TorrentListCtrl >.

Definition at line 161 of file torrentlistctrl.cpp.

void CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::SortList ( bool  force = false  )  [inherited]

only sorts if data is marked dirty, or force is true calls Freeze(), Sort(), Thaw()

void CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::StartTimer (  )  [inherited]
void CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::StopTimer (  )  [inherited]
void TorrentListCtrl::UpdateTorrentInfo ( const DataType info  ) 

Definition at line 106 of file torrentlistctrl.cpp.


Field Documentation

const wxColour CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::m_bg_color [protected, inherited]

Definition at line 137 of file customvirtlistctrl.h.

stores info about the columns (wxString name,bool isResizable) - pairs

Definition at line 110 of file customvirtlistctrl.h.

Definition at line 144 of file customvirtlistctrl.h.

unsigned int CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::m_columnCount [protected, inherited]

Definition at line 67 of file customvirtlistctrl.h.

ItemComparator<DataType> CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::m_comparator [protected, inherited]

the Comparator object passed to the SLInsertionSort function

Definition at line 347 of file customvirtlistctrl.h.

Definition at line 338 of file customvirtlistctrl.h.

bool CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::m_dirty_sort [protected, inherited]

list should be sorted

Definition at line 140 of file customvirtlistctrl.h.

bool CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::m_highlight [protected, inherited]

controls if highlighting should be considered

Definition at line 132 of file customvirtlistctrl.h.

which action should be considered?

Definition at line 135 of file customvirtlistctrl.h.

Definition at line 126 of file customvirtlistctrl.h.

used as label for saving column widths

Definition at line 129 of file customvirtlistctrl.h.

template<class Derived, class EventDataType = GlobalEvents::GlobalEventData>
EventReceiverFunction OnQuitSink< Derived, EventDataType >::m_OnQuitSink [protected, inherited]

Definition at line 66 of file isink.h.

Definition at line 354 of file customvirtlistctrl.h.

unsigned int CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::m_periodic_sort_interval [protected, inherited]

Definition at line 355 of file customvirtlistctrl.h.

Definition at line 353 of file customvirtlistctrl.h.

Definition at line 352 of file customvirtlistctrl.h.

wxMenu* TorrentListCtrl::m_popup [protected]

Definition at line 53 of file torrentlistctrl.h.

index of previously selected data

Definition at line 106 of file customvirtlistctrl.h.

Definition at line 344 of file customvirtlistctrl.h.

index of curently selected data

Definition at line 103 of file customvirtlistctrl.h.

const unsigned int CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::m_sort_block_time [static, protected, inherited]

Definition at line 99 of file customvirtlistctrl.h.

unsigned int CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::m_sort_criteria_count [protected, inherited]

Definition at line 152 of file customvirtlistctrl.h.

wxTimer CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::m_sort_timer [protected, inherited]

used to block sorting while mouse is moving

Definition at line 59 of file customvirtlistctrl.h.

Definition at line 151 of file customvirtlistctrl.h.

always set to the currrently displayed tooltip text

Definition at line 61 of file customvirtlistctrl.h.

wxTimer CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::m_tiptimer [protected, inherited]

used to display tooltips for a certain amount of time

Definition at line 57 of file customvirtlistctrl.h.

const unsigned int CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::m_tooltip_delay [static, protected, inherited]

global Tooltip thingies (ms)

Definition at line 97 of file customvirtlistctrl.h.

const unsigned int CustomVirtListCtrl< TorrentInfos , TorrentListCtrl >::m_tooltip_duration [static, protected, inherited]

Definition at line 98 of file customvirtlistctrl.h.

list indexes of not-filtered items use like this: when adding items set identity mapping
m_visible_idxs[m_data.size() -1] = ( m_data.size() -1 );
when filtering clear the map, iterate thru data and only set mapping for matching items in data
when acessing data (getColoumText etc.

) always access data's index thru this map

Definition at line 123 of file customvirtlistctrl.h.


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

Generated on Thu Dec 29 00:11:49 2011 for SpringLobby by doxygen 1.6.3