FileListCtrl Class Reference

list currently available torrents on tracker More...

#include <filelistctrl.h>

Inherits CustomVirtListCtrl< const PlasmaResourceInfo *,FileListCtrl >.

Collaboration diagram for FileListCtrl:
Collaboration graph
[legend]

Public Types

typedef std::vector< wxStringInternalNameVector
typedef DataImp DataType

Public Member Functions

 FileListCtrl (FileListDialog *fld)
 ~FileListCtrl ()
void OnListRightClick (wxListEvent &event)
void GetSelectedHashes (InternalNameVector &)
 GetSelectedHashes.
bool AddFile (DataType info)
wxString GetItemText (long item, long column) const
 GetItemText.
int GetItemColumnImage (long item, long column) const
 GetItemColumnImage.
wxListItemAttr * GetItemAttr (long item) const
 GetItemAttr.
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 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  { FILELIST_COL_CLICK = wxID_HIGHEST }
typedef CustomVirtListCtrl
< DataImp, ListCtrlImp > 
BaseType
typedef UserActions::ActionType ActionType
typedef std::vector< colInfocolInfoVec
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< DataImp > DataVector
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,
GlobalEvents::GlobalEventData,&OnQuitSink::OnQuit > 
EventReceiverFunction

Protected Member Functions

int CompareOneCrit (DataType u1, DataType u2, int col, int dir) const
 passed as callback to generic ItemComparator, returns -1,0,1 as per defined ordering
virtual void Sort ()
 required per base clase
int GetIndexFromData (const DataType &data) const
 GetIndexFromData.
int getColumnFromPosition (wxPoint pos)
 primarily used to get coulumn index in mousevents (from cur. mouse pos)
virtual void SetTipWindowText (const long item_hit, const wxPoint &position)
bool RemoveItem (const DataImp &item)
bool AddItem (const DataImp &item)
void OnPeriodicSort (wxTimerEvent &evt)
void OnSortEvent (wxCommandEvent &evt)
 this is the sink for a custom event that can be used for async sort

Static Protected Member Functions

static int CompareUserStatus (DataType u1, DataType u2)
 utils func for comparing user status, so the CompareOneCrit doesn't get too crowded

Protected Attributes

wxMenu * m_popup
FileListDialogm_parent_dialog
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 = 1000
 global Tooltip thingies (ms)
static const unsigned int m_tooltip_duration = 2000
static const unsigned int m_sort_block_time = 1500

Sort functionality



typedef ItemComparator
< DataImp >::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()
template<typename Type >
static int compareSimple (Type o1, Type o2)
 compare func usable for types with well-defined ordering (and implemented ops <,>)
static SortOrder m_sortorder = SortOrder( )

Detailed Description

list currently available torrents on tracker

Definition at line 15 of file filelistctrl.h.


Member Typedef Documentation

template<class DataImp, class ListCtrlImp>
typedef UserActions::ActionType CustomVirtListCtrl< DataImp, ListCtrlImp >::ActionType [protected, inherited]

Definition at line 55 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
typedef CustomVirtListCtrl< DataImp, ListCtrlImp > CustomVirtListCtrl< DataImp, ListCtrlImp >::BaseType [protected, inherited]

Reimplemented from OnQuitSink< CustomVirtListCtrl< DataImp, ListCtrlImp > >.

Definition at line 53 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
typedef std::vector<colInfo> CustomVirtListCtrl< DataImp, ListCtrlImp >::colInfoVec [protected, inherited]

Definition at line 90 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
typedef std::map<unsigned int,unsigned int> CustomVirtListCtrl< DataImp, ListCtrlImp >::ColumnMap [protected, inherited]

maps outward column index to internal

Definition at line 93 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
typedef ItemComparator<DataImp>::CmpFunc CustomVirtListCtrl< DataImp, ListCtrlImp >::CompareFunction [protected, inherited]

Definition at line 200 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
typedef DataVector::const_iterator CustomVirtListCtrl< DataImp, ListCtrlImp >::DataCIter [protected, inherited]

Reimplemented in PlaybackListCtrl< PlaybackImp >.

Definition at line 333 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
typedef DataVector::iterator CustomVirtListCtrl< DataImp, ListCtrlImp >::DataIter [protected, inherited]

Definition at line 331 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
typedef DataVector::const_reverse_iterator CustomVirtListCtrl< DataImp, ListCtrlImp >::DataRevCIter [protected, inherited]

Definition at line 337 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
typedef DataVector::reverse_iterator CustomVirtListCtrl< DataImp, ListCtrlImp >::DataRevIter [protected, inherited]

Definition at line 335 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
typedef DataImp CustomVirtListCtrl< DataImp, ListCtrlImp >::DataType [inherited]

Reimplemented in PlaybackListCtrl< PlaybackImp >.

Definition at line 49 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
typedef std::vector< DataImp > CustomVirtListCtrl< DataImp, ListCtrlImp >::DataVector [protected, inherited]

Definition at line 329 of file customvirtlistctrl.h.

typedef EventReceiverFunc<OnQuitSink, GlobalEvents::GlobalEventData , &OnQuitSink::OnQuit> OnQuitSink< CustomVirtListCtrl< DataImp, ListCtrlImp > , GlobalEvents::GlobalEventData >::EventReceiverFunction [protected, inherited]

Definition at line 65 of file isink.h.

Definition at line 21 of file filelistctrl.h.

template<class DataImp, class ListCtrlImp>
typedef DataType CustomVirtListCtrl< DataImp, ListCtrlImp >::SelectedDataType [protected, inherited]

Definition at line 341 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
typedef std::vector< SelectedDataType > CustomVirtListCtrl< DataImp, ListCtrlImp >::SelectedDataVector [protected, inherited]

Definition at line 343 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
typedef std::map<int,int> CustomVirtListCtrl< DataImp, ListCtrlImp >::VisibilityMap [protected, inherited]

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

Definition at line 115 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
typedef VisibilityMap::iterator CustomVirtListCtrl< DataImp, ListCtrlImp >::VisibilityMapIter [protected, inherited]

Definition at line 116 of file customvirtlistctrl.h.


Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
FILELIST_COL_CLICK 

Definition at line 50 of file filelistctrl.h.


Constructor & Destructor Documentation

FileListCtrl::FileListCtrl ( FileListDialog fld  ) 

Definition at line 27 of file filelistctrl.cpp.

FileListCtrl::~FileListCtrl (  ) 

Definition at line 57 of file filelistctrl.cpp.


Member Function Documentation

template<class T , class L >
void CustomVirtListCtrl< T, L >::AddColumn ( long  i,
int  width,
const wxString label,
const wxString tip,
bool  modifiable = true 
) [inline, inherited]

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

Definition at line 115 of file customvirtlistctrl.cpp.

bool FileListCtrl::AddFile ( DataType  info  ) 

Definition at line 77 of file filelistctrl.cpp.

template<class T, class L >
bool CustomVirtListCtrl< T, L >::AddItem ( const T &  item  )  [inline, protected, inherited]

Definition at line 561 of file customvirtlistctrl.cpp.

template<class T , class L >
void CustomVirtListCtrl< T, L >::CancelTooltipTimer (  )  [inline, inherited]

stop timer (before displaying popup f.e.)

Definition at line 416 of file customvirtlistctrl.cpp.

template<class T , class L >
void CustomVirtListCtrl< T, L >::Clear (  )  [inline, virtual, inherited]

delete all data, selections, and whatnot

Definition at line 446 of file customvirtlistctrl.cpp.

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

passed as callback to generic ItemComparator, returns -1,0,1 as per defined ordering

CompareOneCrit.

Todo:
: document this function

Definition at line 120 of file filelistctrl.cpp.

template<class DataImp, class ListCtrlImp>
template<typename Type >
static int CustomVirtListCtrl< DataImp, ListCtrlImp >::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.

static int FileListCtrl::CompareUserStatus ( DataType  u1,
DataType  u2 
) [static, protected]

utils func for comparing user status, so the CompareOneCrit doesn't get too crowded

template<class T , class L >
bool CustomVirtListCtrl< T, L >::GetColumn ( int  col,
wxListItem &  item 
) const [inline, inherited]

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

Definition at line 540 of file customvirtlistctrl.cpp.

template<class T , class L >
int CustomVirtListCtrl< T, L >::getColumnFromPosition ( wxPoint  pos  )  [inline, protected, inherited]

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

Definition at line 330 of file customvirtlistctrl.cpp.

template<class T , class L >
const CustomVirtListCtrl< T, L >::DataType CustomVirtListCtrl< T, L >::GetDataFromIndex ( const long  index  )  const [inline, inherited]

Definition at line 461 of file customvirtlistctrl.cpp.

template<class T , class L >
CustomVirtListCtrl< T, L >::DataType CustomVirtListCtrl< T, L >::GetDataFromIndex ( const long  index  )  [inline, inherited]

Definition at line 455 of file customvirtlistctrl.cpp.

int FileListCtrl::GetIndexFromData ( const DataType data  )  const [protected, virtual]

GetIndexFromData.

we use a static seekpos here cause a lot of sequential index gettings expected

Implements CustomVirtListCtrl< DataImp, ListCtrlImp >.

Definition at line 86 of file filelistctrl.cpp.

wxListItemAttr * FileListCtrl::GetItemAttr ( long  item  )  const

GetItemAttr.

Todo:
: document this function

Definition at line 142 of file filelistctrl.cpp.

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

GetItemColumnImage.

Todo:
: document this function

Definition at line 152 of file filelistctrl.cpp.

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

GetItemText.

Todo:
: document this function

Definition at line 162 of file filelistctrl.cpp.

template<class T , class L >
CustomVirtListCtrl< T, L >::DataType CustomVirtListCtrl< T, L >::GetSelectedData (  )  [inline, inherited]

Definition at line 467 of file customvirtlistctrl.cpp.

void FileListCtrl::GetSelectedHashes ( InternalNameVector names  ) 

GetSelectedHashes.

Todo:
: document this function

Definition at line 186 of file filelistctrl.cpp.

template<class T , class L >
long CustomVirtListCtrl< T, L >::GetSelectedIndex (  )  const [inline, inherited]

Definition at line 175 of file customvirtlistctrl.cpp.

template<class T , class L >
wxListItemAttr * CustomVirtListCtrl< T, L >::HighlightItemUser ( const wxString name  )  const [inline, inherited]

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

Definition at line 392 of file customvirtlistctrl.cpp.

template<class T , class L >
void CustomVirtListCtrl< T, L >::MarkDirtySort (  )  [inline, inherited]

marks the items in the control to be sorted

Definition at line 410 of file customvirtlistctrl.cpp.

template<class T , class L >
void CustomVirtListCtrl< T, L >::noOp ( wxMouseEvent &  event  )  [inline, inherited]

does nothing

Definition at line 379 of file customvirtlistctrl.cpp.

template<class T , class L >
void CustomVirtListCtrl< T, L >::OnColClick ( wxListEvent &  event  )  [inline, inherited]

handle sort order updates

Reimplemented in BattleroomListCtrl, and PlaybackListCtrl< PlaybackImp >.

Definition at line 483 of file customvirtlistctrl.cpp.

template<class T , class L >
void CustomVirtListCtrl< T, L >::OnDeselected ( wxListEvent &  event  )  [inline, inherited]

Definition at line 168 of file customvirtlistctrl.cpp.

template<class T , class L >
void CustomVirtListCtrl< T, L >::OnEndResizeCol ( wxListEvent &  event  )  [inline, virtual, inherited]

we use this to automatically save column width after resizin

Definition at line 350 of file customvirtlistctrl.cpp.

template<class T , class L >
wxListItemAttr * CustomVirtListCtrl< T, L >::OnGetItemAttr ( long  item  )  const [inline, inherited]

Definition at line 605 of file customvirtlistctrl.cpp.

template<class T , class L >
int CustomVirtListCtrl< T, L >::OnGetItemColumnImage ( long  item,
long  column 
) const [inline, inherited]

Definition at line 599 of file customvirtlistctrl.cpp.

template<class T , class L >
wxString CustomVirtListCtrl< T, L >::OnGetItemText ( long  item,
long  column 
) const [inline, inherited]

Definition at line 590 of file customvirtlistctrl.cpp.

void FileListCtrl::OnListRightClick ( wxListEvent &  event  ) 

Definition at line 62 of file filelistctrl.cpp.

template<class T , class L >
void CustomVirtListCtrl< T, L >::OnMouseMotion ( wxMouseEvent &  event  )  [inline, virtual, inherited]

starts timer, sets tooltiptext

Definition at line 260 of file customvirtlistctrl.cpp.

template<class T , class L >
void CustomVirtListCtrl< T, L >::OnPeriodicSort ( wxTimerEvent &  evt  )  [inline, protected, inherited]

Definition at line 611 of file customvirtlistctrl.cpp.

template<class T , class L >
void CustomVirtListCtrl< T, L >::OnQuit ( GlobalEvents::GlobalEventData  data  )  [inline, inherited]
template<class T , class L >
void CustomVirtListCtrl< T, L >::OnSelected ( wxListEvent &  event  )  [inline, inherited]

Definition at line 161 of file customvirtlistctrl.cpp.

template<class T , class L >
void CustomVirtListCtrl< T, L >::OnSortEvent ( wxCommandEvent &  evt  )  [inline, protected, inherited]

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

Definition at line 533 of file customvirtlistctrl.cpp.

template<class T , class L >
void CustomVirtListCtrl< T, L >::OnStartResizeCol ( wxListEvent &  event  )  [inline, inherited]

prohibits resizin if so set in columnInfo

Definition at line 343 of file customvirtlistctrl.cpp.

template<class T , class L >
void CustomVirtListCtrl< T, L >::OnTimer ( wxTimerEvent &  event  )  [inline, virtual, inherited]

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

Definition at line 230 of file customvirtlistctrl.cpp.

template<class T , class L >
bool CustomVirtListCtrl< T, L >::PopupMenu ( wxMenu *  menu,
const wxPoint pos = wxDefaultPosition 
) [inline, inherited]

Override to have tooltip timer cancelled automatically.

Definition at line 422 of file customvirtlistctrl.cpp.

template<class T , class L >
void CustomVirtListCtrl< T, L >::RefreshVisibleItems (  )  [inline, inherited]

Definition at line 215 of file customvirtlistctrl.cpp.

template<class T, class L >
bool CustomVirtListCtrl< T, L >::RemoveItem ( const T &  item  )  [inline, protected, inherited]

Definition at line 575 of file customvirtlistctrl.cpp.

template<class T , class L >
void CustomVirtListCtrl< T, L >::ResetColumnSizes (  )  [inline, inherited]

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

Definition at line 473 of file customvirtlistctrl.cpp.

template<class T , class L >
void CustomVirtListCtrl< T, L >::ResetSelection (  )  [inline, inherited]

Definition at line 155 of file customvirtlistctrl.cpp.

template<class T , class L >
void CustomVirtListCtrl< T, L >::RestoreSelection (  )  [inline, inherited]

and this afterwards

Definition at line 143 of file customvirtlistctrl.cpp.

template<class T , class L >
void CustomVirtListCtrl< T, L >::ReverseOrder (  )  [inline, inherited]

Definition at line 552 of file customvirtlistctrl.cpp.

template<class T , class L >
void CustomVirtListCtrl< T, L >::SaveSelection (  )  [inline, inherited]

Definition at line 127 of file customvirtlistctrl.cpp.

template<class T , class L >
void CustomVirtListCtrl< T, L >::SelectAll (  )  [inline, inherited]

Definition at line 181 of file customvirtlistctrl.cpp.

template<class T , class L >
void CustomVirtListCtrl< T, L >::SelectInverse (  )  [inline, inherited]

Definition at line 198 of file customvirtlistctrl.cpp.

template<class T , class L >
void CustomVirtListCtrl< T, L >::SelectNone (  )  [inline, inherited]

sets selected index to -1

Definition at line 190 of file customvirtlistctrl.cpp.

template<class T , class L >
bool CustomVirtListCtrl< T, L >::SetColumn ( int  col,
wxListItem &  item 
) [inline, inherited]

Definition at line 546 of file customvirtlistctrl.cpp.

template<class T , class L >
bool CustomVirtListCtrl< T, L >::SetColumnWidth ( int  col,
int &  width 
) [inline, virtual, inherited]

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

Definition at line 362 of file customvirtlistctrl.cpp.

template<class T , class L >
void CustomVirtListCtrl< T, L >::SetHighLightAction ( UserActions::ActionType  action  )  [inline, inherited]

Definition at line 404 of file customvirtlistctrl.cpp.

template<class T , class L >
void CustomVirtListCtrl< T, L >::SetSelectedIndex ( const long  newindex  )  [inline, inherited]

Definition at line 209 of file customvirtlistctrl.cpp.

template<class T , class L >
void CustomVirtListCtrl< T, L >::SetTipWindowText ( const long  item_hit,
const wxPoint position 
) [inline, protected, virtual, inherited]
void FileListCtrl::Sort (  )  [protected, virtual]

required per base clase

Implements CustomVirtListCtrl< DataImp, ListCtrlImp >.

Definition at line 67 of file filelistctrl.cpp.

template<class T , class L >
void CustomVirtListCtrl< T, L >::SortList ( bool  force = false  )  [inline, inherited]

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

Definition at line 429 of file customvirtlistctrl.cpp.

template<class T , class L >
void CustomVirtListCtrl< T, L >::StartTimer (  )  [inline, inherited]

Definition at line 90 of file customvirtlistctrl.cpp.

template<class T , class L >
void CustomVirtListCtrl< T, L >::StopTimer (  )  [inline, inherited]

Definition at line 101 of file customvirtlistctrl.cpp.


Field Documentation

template<class DataImp, class ListCtrlImp>
const wxColour CustomVirtListCtrl< DataImp, ListCtrlImp >::m_bg_color [protected, inherited]

Definition at line 137 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
colInfoVec CustomVirtListCtrl< DataImp, ListCtrlImp >::m_colinfovec [protected, inherited]

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

Definition at line 110 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
ColumnMap CustomVirtListCtrl< DataImp, ListCtrlImp >::m_column_map [protected, inherited]

Definition at line 144 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
unsigned int CustomVirtListCtrl< DataImp, ListCtrlImp >::m_columnCount [protected, inherited]

Definition at line 67 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
ItemComparator<DataType> CustomVirtListCtrl< DataImp, ListCtrlImp >::m_comparator [protected, inherited]

the Comparator object passed to the SLInsertionSort function

Definition at line 347 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
DataVector CustomVirtListCtrl< DataImp, ListCtrlImp >::m_data [protected, inherited]

Definition at line 338 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
bool CustomVirtListCtrl< DataImp, ListCtrlImp >::m_dirty_sort [protected, inherited]

list should be sorted

Definition at line 140 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
bool CustomVirtListCtrl< DataImp, ListCtrlImp >::m_highlight [protected, inherited]

controls if highlighting should be considered

Definition at line 132 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
ActionType CustomVirtListCtrl< DataImp, ListCtrlImp >::m_highlightAction [protected, inherited]

which action should be considered?

Definition at line 135 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
wxPoint CustomVirtListCtrl< DataImp, ListCtrlImp >::m_last_mouse_pos [protected, inherited]

Definition at line 126 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
wxString CustomVirtListCtrl< DataImp, ListCtrlImp >::m_name [protected, inherited]

used as label for saving column widths

Definition at line 129 of file customvirtlistctrl.h.

Definition at line 66 of file isink.h.

Definition at line 48 of file filelistctrl.h.

template<class DataImp, class ListCtrlImp>
bool CustomVirtListCtrl< DataImp, ListCtrlImp >::m_periodic_sort [protected, inherited]

Definition at line 354 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
unsigned int CustomVirtListCtrl< DataImp, ListCtrlImp >::m_periodic_sort_interval [protected, inherited]

Definition at line 355 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
wxTimer CustomVirtListCtrl< DataImp, ListCtrlImp >::m_periodic_sort_timer [protected, inherited]

Definition at line 353 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
long CustomVirtListCtrl< DataImp, ListCtrlImp >::m_periodic_sort_timer_id [protected, inherited]

Definition at line 352 of file customvirtlistctrl.h.

wxMenu* FileListCtrl::m_popup [protected]

Definition at line 46 of file filelistctrl.h.

template<class DataImp, class ListCtrlImp>
long CustomVirtListCtrl< DataImp, ListCtrlImp >::m_prev_selected_index [protected, inherited]

index of previously selected data

Definition at line 106 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
SelectedDataVector CustomVirtListCtrl< DataImp, ListCtrlImp >::m_selected_data [protected, inherited]

Definition at line 344 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
long CustomVirtListCtrl< DataImp, ListCtrlImp >::m_selected_index [protected, inherited]

index of curently selected data

Definition at line 103 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
const unsigned int CustomVirtListCtrl< DataImp, ListCtrlImp >::m_sort_block_time = 1500 [static, protected, inherited]

Definition at line 99 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
unsigned int CustomVirtListCtrl< DataImp, ListCtrlImp >::m_sort_criteria_count [protected, inherited]

Definition at line 152 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
wxTimer CustomVirtListCtrl< DataImp, ListCtrlImp >::m_sort_timer [protected, inherited]

used to block sorting while mouse is moving

Definition at line 59 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
SortOrder CustomVirtListCtrl< T, L >::m_sortorder = SortOrder( ) [inline, static, protected, inherited]

Definition at line 151 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
wxString CustomVirtListCtrl< DataImp, ListCtrlImp >::m_tiptext [protected, inherited]

always set to the currrently displayed tooltip text

Definition at line 61 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
wxTimer CustomVirtListCtrl< DataImp, ListCtrlImp >::m_tiptimer [protected, inherited]

used to display tooltips for a certain amount of time

Definition at line 57 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
const unsigned int CustomVirtListCtrl< DataImp, ListCtrlImp >::m_tooltip_delay = 1000 [static, protected, inherited]

global Tooltip thingies (ms)

Definition at line 97 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
const unsigned int CustomVirtListCtrl< DataImp, ListCtrlImp >::m_tooltip_duration = 2000 [static, protected, inherited]

Definition at line 98 of file customvirtlistctrl.h.

template<class DataImp, class ListCtrlImp>
VisibilityMap CustomVirtListCtrl< DataImp, ListCtrlImp >::m_visible_idxs [protected, inherited]

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:44 2011 for SpringLobby by doxygen 1.6.3