#include <slstview.hpp>
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. |
This control is a wxListView control with two more attributes:
Definition at line 51 of file slstview.hpp.
|
Sort orders.
Definition at line 79 of file slstview.hpp. Referenced by GetSortOrder(). |
|
Default Constructor.
Definition at line 53 of file slstview.cpp. |
|
Constructor, creating and showing a list control.
Definition at line 62 of file slstview.cpp. References SetColumnToSort(), and SetSortOrder(). |
|
Gets 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(). |
|
Gets 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(). |
|
Sets the column to sort on this ListView control.
If the given column to sort is invalid, the column will be
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(). |
|
Sets the sort order for this ListView control. If the sort given order is invalid, the sort order is set to 'none'.
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(). |
|
The column to sort.
Definition at line 126 of file slstview.hpp. Referenced by GetColumnToSort(), and SetColumnToSort(). |
|
The sort order.
Definition at line 125 of file slstview.hpp. Referenced by GetSortOrder(), and SetSortOrder(). |