sptk::CListViewRows Class Reference
[GUI Classes]
The list of
CPackedStrings * used inside
CListView as the list of rows.
More...
#include <CListViewRows.h>
List of all members.
|
Public Member Functions |
|
| CListViewRows () |
| | Default constructor.
|
|
| ~CListViewRows () |
| | Destructor.
|
|
void | clear () |
| | destroys all the rows and removes them from the list
|
| void | truncate (uint32_t count) |
| void | remove (uint32_t index) |
| uint32_t | add (CPackedStrings *row) |
| uint32_t | insert (uint32_t index, CPackedStrings *row) |
| uint32_t | update (uint32_t index, CPackedStrings *row) |
| CPackedStrings * | operator[] (uint32_t index) const |
| int32_t | indexOf (CPackedStrings *row) const |
|
uint32_t | size () const |
| | Returns the row count.
|
|
void | sort () |
| | Sorts rows.
|
|
int32_t | sortColumn () const |
| | Returns the sort column number.
|
| void | sortColumn (int column, CVariantType ctype, bool sortNow) |
|
bool | sortAscending () const |
| | Returns the sort direction - ascending/descending.
|
| void | sortAscending (bool ascending, bool sortNow) |
|
int32_t | fullHeight () const |
| | Returns summary height of all the rows.
|
Static Protected Member Functions |
|
static bool | compare_strings (const PPackedStrings &, const PPackedStrings &) |
| | The string data compare function.
|
|
static bool | compare_integers (const PPackedStrings &, const PPackedStrings &) |
| | The integer data compare function.
|
|
static bool | compare_floats (const PPackedStrings &, const PPackedStrings &) |
| | The float data compare function.
|
|
static bool | compare_dates (const PPackedStrings &, const PPackedStrings &) |
| | The date data compare function.
|
|
static bool | compare_datetimes (const PPackedStrings &, const PPackedStrings &) |
| | The date and time data compare function.
|
Protected Attributes |
|
uint32_t | m_fullHeight |
| | The summary height of the rows.
|
|
CPSVector | m_rows |
| | The list of the rows.
|
Static Protected Attributes |
|
static int | currentSortColumn |
| | The sort column number for the sort functions.
|
Friends |
|
class | CListView |
Detailed Description
The list of
CPackedStrings * used inside
CListView as the list of rows.
Member Function Documentation
Adds the new row.
- Parameters:
-
- Returns:
- row index
Finds the row
- Parameters:
-
- Returns:
- the row index, or -1 if not found
| uint32_t sptk::CListViewRows::insert |
( |
uint32_t |
index, |
|
|
CPackedStrings * |
row | |
|
) |
| | |
Inserts the new row.
- Parameters:
-
| index | uint32_t, insert position |
| row | CPackedStrings *, the new row pointer |
- Returns:
- row index
| CPackedStrings* sptk::CListViewRows::operator[] |
( |
uint32_t |
index |
) |
const [inline] |
Row access by row index
- Parameters:
-
| index | uint32_t, row index |
- Returns:
- row pointer, or 0L if index is out of range
| void sptk::CListViewRows::remove |
( |
uint32_t |
index |
) |
|
Removes a row
- Parameters:
-
| index | uint32_t, row index |
| void sptk::CListViewRows::sortAscending |
( |
bool |
ascending, |
|
|
bool |
sortNow | |
|
) |
| | |
Sets the sort direction - ascending/descending
- Parameters:
-
| ascending | bool, sort direction - ascending/descending |
| sortNow | bool, true if you want to sort immediatedly |
| void sptk::CListViewRows::sortColumn |
( |
int |
column, |
|
|
CVariantType |
ctype, |
|
|
bool |
sortNow | |
|
) |
| | |
Sets the sort column
- Parameters:
-
| column | int, sort column number (-1 means 'unsorted') |
| ctype | CVariantType, the sort column data type |
| sortNow | bool, true if you want to sort immediatedly |
| void sptk::CListViewRows::truncate |
( |
uint32_t |
count |
) |
|
Truncates a row list
- Parameters:
-
| count | uint32_t, the maximum list size |
| uint32_t sptk::CListViewRows::update |
( |
uint32_t |
index, |
|
|
CPackedStrings * |
row | |
|
) |
| | |
Updates the row by replacing it with a new one.
- Parameters:
-
- Returns:
- row index
The documentation for this class was generated from the following file: