vdk 2.4.0
Public Member Functions | Public Attributes
VDKCustomSortedList Class Reference

#include <vdkcsortlist.h>

Inheritance diagram for VDKCustomSortedList:
VDKCustomList VDKCustom VDKObject VDKNotCopyAble

List of all members.

Public Member Functions

Public Attributes


Detailed Description

This class provides a sorted custom list

Programming tips
All methods act like in VDKCustomList but inserting rows in ascending order using a column as key. Currently only char* keys are supported.
EXAMPLES
./testvdk/sortlistwin.cc

Constructor & Destructor Documentation

VDKCustomSortedList::VDKCustomSortedList ( VDKForm owner,
int  keyPos,
int  columns = 1,
char **  titles = NULL,
GtkSelectionMode  mode = GTK_SELECTION_SINGLE 
)

Constructor

Parameters:
owner
keyPosrepresent key column pos
titlesstring array of column titles
modeselection mode
VDKCustomSortedList::~VDKCustomSortedList ( ) [inline]

Destructor


Member Function Documentation

bool VDKCustomSortedList::AddKey ( char **  s,
char **  pixdata = NULL,
int  col = 0 
)

Adds a row in ascending order respect to a key

Parameters:
sa strin array
pixdataa pixmap
colpixmap column position
int VDKCustomSortedList::FindKey ( const char *  key)

Returns row containing <key>, -1 if not found

int VDKCustomSortedList::KeyPos ( ) [inline]

Return key column position

void VDKCustomSortedList::RemoveKey ( const char *  key)

Remove the row containing <key>

Parameters:
keykey to be removed
void VDKCustomSortedList::UpdateCellKey ( const char *  key,
int  col,
const char *  s,
char **  pixdata = NULL 
)

Update a single cell at row containing <key>

Parameters:
keykey value to be updated
colcolumn position of the cell to be updated
pixdataa pixmap
void VDKCustomSortedList::UpdateKey ( const char *  key,
char **  s,
char **  pixdata = NULL,
int  col = 0 
)

Updates row containg <key>

Parameters:
keykey value to be updated
sstring array
pixdataa pixmap pixmap column

Member Data Documentation

Setting Unique to true (false is the default) forces the list to do not insert duplicate keys.


The documentation for this class was generated from the following files: