vdk 2.4.0
|
This class wraps gtkclist widget. More...
#include <vdkclist.h>
This class wraps gtkclist widget.
VDKTuple tuple = list->Tuples[j]; // access to j-th tuple VDKString s = list->Tuples[j][i]; // access to j-th,i-th string
VDKCustomList::VDKCustomList | ( | VDKForm * | owner, |
int | columns = 1 , |
||
char ** | titles = NULL , |
||
GtkSelectionMode | mode = GTK_SELECTION_SINGLE |
||
) |
Constructor.
columns | columns number |
titles | array of titles strings |
mode | selection mode |
VDKCustomList::~VDKCustomList | ( | ) | [virtual] |
Destructor
void VDKCustomList::AddRow | ( | char ** | texts, |
char ** | pixdata = NULL , |
||
int | col = 0 |
||
) |
Add a row to list.
texts | strings array to fill row cells |
pixdata | a cell can have a pixmap |
wich | column has the pixmap (if any) |
void VDKCustomList::Clear | ( | ) | [virtual] |
Clear widget
Reimplemented from VDKCustom.
void VDKCustomList::RemoveRow | ( | int | row | ) |
Removes a row
row,whic | row should be removed |
VDKPoint VDKCustomList::Selection | ( | ) | [inline] |
Returns selected cell coordinates
Returns an array filled with all selected row number. Valid only in multiple or extended selection mode, in other cases array will have size == 0
void VDKCustomList::SelectRow | ( | int | row, |
int | col | ||
) |
Selects a row
row,cell | coordinate |
col |
void VDKCustomList::SelectRow | ( | VDKPoint | p | ) | [inline] |
Selects a row
p,cell | coordinates |
VDKPoint VDKCustomList::Unselection | ( | ) | [inline] |
Returns unselected cell coordinates
void VDKCustomList::UnselectRow | ( | int | row, |
int | col | ||
) |
Unselects a row
row,cell | coordinate |
col |
void VDKCustomList::UnselectRow | ( | VDKPoint | p | ) | [inline] |
Selects a row
p,cell | coordinates |
void VDKCustomList::UpdateCell | ( | int | row, |
int | col, | ||
const char * | s, | ||
char ** | pixdata = NULL |
||
) |
Updates a cell
row | cell coordinates |
col | |
pixdata | a cell can have a pixmap |
wich | column has the pixmap (if any) |
void VDKCustomList::UpdateRow | ( | int | row, |
char ** | s, | ||
char ** | pixdata = NULL , |
||
int | col = 0 |
||
) |
Updates a row
row | wich row should be updated |
pixdata | a cell can have a pixmap |
wich | column has the pixmap (if any) |
void VDKCustomList::UpdateRow | ( | int | row, |
Tuple & | t, | ||
char ** | pixdata = NULL , |
||
int | col = 0 |
||
) |
Same as above
SelectionProp VDKCustomList::Selected |
Use this to know wich cell is selected or Selected.Row() or Selected.Col() <read-only>
A tuple is a VDKArray<VDKString>. use this property to access data on row/cell basis like this:
Tuple tuple = list->Tuples[0]; char * p = (char*) tuple[0]; // or more simply char *p = (char*) list->Tuples[0][0];
SelectionProp VDKCustomList::Unselected |
Use this to know wich cell is unselected or Unselected.Row() or Unselected.Col() <read-only>