Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

wxSortableListView Class Reference

A sortable ListView control. More...

#include <slstview.hpp>

List of all members.

Public Types

enum  SortOrder { none = 0, ascending, descending }
 Sort orders. More...


Public Member Functions

int GetColumnToSort () const
 Gets the column to sort on this ListView control.

SortOrder GetSortOrder () const
 Gets the sort order of this ListView control.

void SetColumnToSort (const int sortColumn)
 Sets the column to sort on this ListView control.

void SetSortOrder (const SortOrder sortOrder)
 Sets the sort order for this ListView control.

 wxSortableListView (wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxLC_REPORT, const wxValidator &validator=wxDefaultValidator, const wxString &name=wxT("sortablelistview"))
 Constructor, creating and showing a list control.

 wxSortableListView ()
 Default Constructor.


Protected Attributes

int m_sortColumn
 The column to sort.

SortOrder m_sortOrder
 The sort order.


Detailed Description

A sortable ListView control.

This control is a wxListView control with two more attributes:

Definition at line 51 of file slstview.hpp.


Member Enumeration Documentation

enum wxSortableListView::SortOrder
 

Sort orders.

Definition at line 79 of file slstview.hpp.

Referenced by GetSortOrder().


Constructor & Destructor Documentation

wxSortableListView::wxSortableListView  ) 
 

Default Constructor.

Definition at line 53 of file slstview.cpp.

wxSortableListView::wxSortableListView wxWindow *  parent,
wxWindowID  id = -1,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxLC_REPORT,
const wxValidator &  validator = wxDefaultValidator,
const wxString &  name = wxT("sortablelistview")
 

Constructor, creating and showing a list control.

Parameters:
parent Parent window. Must not be NULL.
id Window identifier. A value of -1 indicates a default value.
pos Window position.
size Window size. If the default size (-1, -1) is specified then the window is sized appropriately.
style Window style. See wxListCtrl.
validator Window validator.
name Window name.

Definition at line 62 of file slstview.cpp.

References SetColumnToSort(), and SetSortOrder().


Member Function Documentation

int wxSortableListView::GetColumnToSort  )  const [inline]
 

Gets the column to sort on this ListView control.

Returns:
The column to sort on this ListView control.

Definition at line 110 of file slstview.hpp.

References m_sortColumn.

Referenced by dlgAddMatchFiles::btnAddClick(), dlgFilesSelector::btnOKClick(), dlgFilesSelector::createControls(), dlgAddMatchFiles::createControls(), filesListCmpFnct(), dlgFilesSelector::lvwFilesColumnClick(), dlgAddMatchFiles::lvwPatternsColumnClick(), and patternsListCmpFnct().

SortOrder wxSortableListView::GetSortOrder  )  const [inline]
 

Gets the sort order of this ListView control.

Returns:
The sort order of this ListView control.

Definition at line 91 of file slstview.hpp.

References m_sortOrder, and SortOrder.

Referenced by dlgAddMatchFiles::btnAddClick(), dlgFilesSelector::btnOKClick(), dlgFilesSelector::createControls(), dlgAddMatchFiles::createControls(), filesListCmpFnct(), dlgFilesSelector::lvwFilesColumnClick(), dlgAddMatchFiles::lvwPatternsColumnClick(), and patternsListCmpFnct().

void wxSortableListView::SetColumnToSort const int  sortColumn  ) 
 

Sets the column to sort on this ListView control.

If the given column to sort is invalid, the column will be 0.

Parameters:
sortColumn The new column to sort on this ListView control.

Definition at line 91 of file slstview.cpp.

References m_sortColumn, and SetColumnToSort().

Referenced by dlgFilesSelector::createControls(), dlgAddMatchFiles::createControls(), dlgFilesSelector::lvwFilesColumnClick(), dlgAddMatchFiles::lvwPatternsColumnClick(), dlgFilesSelector::rbxSortBySelect(), dlgAddMatchFiles::rbxSortBySelect(), SetColumnToSort(), and wxSortableListView().

void wxSortableListView::SetSortOrder const SortOrder  sortOrder  ) 
 

Sets the sort order for this ListView control.

If the sort given order is invalid, the sort order is set to 'none'.

Parameters:
sortOrder The new sort order for this ListView control.

Definition at line 75 of file slstview.cpp.

References m_sortOrder, and SetSortOrder().

Referenced by dlgFilesSelector::createControls(), dlgAddMatchFiles::createControls(), dlgFilesSelector::lvwFilesColumnClick(), dlgAddMatchFiles::lvwPatternsColumnClick(), dlgFilesSelector::rbxSortOrderSelect(), dlgAddMatchFiles::rbxSortOrderSelect(), SetSortOrder(), and wxSortableListView().


Member Data Documentation

int wxSortableListView::m_sortColumn [protected]
 

The column to sort.

Definition at line 126 of file slstview.hpp.

Referenced by GetColumnToSort(), and SetColumnToSort().

SortOrder wxSortableListView::m_sortOrder [protected]
 

The sort order.

Definition at line 125 of file slstview.hpp.

Referenced by GetSortOrder(), and SetSortOrder().


The documentation for this class was generated from the following files:
Generated on Sun May 30 13:38:06 2004 for wxChecksums by doxygen 1.3.7