#include <vdkcsortlist.h>
Inheritance diagram for VDKCustomSortedList:
VDKCustomSortedList::VDKCustomSortedList | ( | VDKForm * | owner, | |
int | keyPos, | |||
int | columns = 1 , |
|||
char ** | titles = NULL , |
|||
GtkSelectionMode | mode = GTK_SELECTION_SINGLE | |||
) |
Constructor
owner | ||
keyPos | represent key column pos | |
titles | string array of column titles | |
mode | selection mode |
VDKCustomSortedList::~VDKCustomSortedList | ( | ) | [inline] |
Destructor
bool VDKCustomSortedList::AddKey | ( | char ** | s, | |
char ** | pixdata = NULL , |
|||
int | col = 0 | |||
) |
Adds a row in ascending order respect to a key
s | a strin array | |
pixdata | a pixmap | |
col | pixmap column position |
void VDKCustomSortedList::UpdateKey | ( | const char * | key, | |
char ** | s, | |||
char ** | pixdata = NULL , |
|||
int | col = 0 | |||
) |
Updates row containg <key>
key | key value to be updated | |
s | string array | |
pixdata | a pixmap pixmap column |
void VDKCustomSortedList::UpdateCellKey | ( | const char * | key, | |
int | col, | |||
const char * | s, | |||
char ** | pixdata = NULL | |||
) |
Update a single cell at row containing <key>
key | key value to be updated | |
col | column position of the cell to be updated | |
pixdata | a pixmap |
void VDKCustomSortedList::RemoveKey | ( | const char * | key | ) |
Remove the row containing <key>
key | key to be removed |
int VDKCustomSortedList::FindKey | ( | const char * | key | ) |
Returns row containing <key>, -1 if not found
int VDKCustomSortedList::KeyPos | ( | ) | [inline] |
Return key column position
Setting Unique to true (false is the default) forces the list to do not insert duplicate keys.