vdkxdb 2.4.0
Public Member Functions | List of all members
VDKXCustomList Class Reference

data-aware VDKCustomList widget. More...

#include <vdkxclist.h>

Inheritance diagram for VDKXCustomList:
VDKXControl

Public Member Functions

 VDKXCustomList (VDKForm *owner, int columns=1, char **titles=NULL, GtkSelectionMode mode=GTK_SELECTION_SINGLE)
 
virtual ~VDKXCustomList ()
 Destructor.
 
virtual xbShort Read ()
 
virtual bool AssignTableFieldToColumn (int column, VDKXTable *table, char *fname)
 
bool AssignTable (VDKXTable *t)
 
- Public Member Functions inherited from VDKXControl
 VDKXControl ()
 Constructor.
 
virtual ~VDKXControl ()
 Destructor.
 
virtual bool AssignTableField (VDKXTable *table, char *fieldname)
 
virtual bool AssignTableField (VDKXDatabase *xdb, char *tablename, char *fieldname)
 
virtual xbShort Write ()
 Writes from control to field.
 

Additional Inherited Members

- Protected Attributes inherited from VDKXControl
VDKXTabletable
 table that owns field
 
VDKString field_name
 field name
 
xbShort field_id
 field number
 
xbShort field_type
 

Detailed Description

data-aware VDKCustomList widget.

This control can be used to browse an entire VDKXTable.

Constructor & Destructor Documentation

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

Constructor

Parameters
ownerthe form that owns widget
columnsnumber of columns
titlescoulumn titles
modeselection mode, can be:
  • GTK_SELECTION_SINGLE
  • GTK_SELECTION_BROWSE
  • GTK_SELECTION_MULTIPLE
  • GTK_SELECTION_EXTENDED

Member Function Documentation

bool VDKXCustomList::AssignTable ( VDKXTable t)

Assign all the table to widget. List columns will be showed as in table record order

bool VDKXCustomList::AssignTableFieldToColumn ( int  column,
VDKXTable table,
char *  fname 
)
virtual

Assign a table field name to a list column

Parameters
columncolumn index
tabletable that owns the field
fnamefield name as in table VDKXRecordTemplate descriptor structure (see it into xdb/dbf.h) It can hold:
  • all field types
xbShort VDKXCustomList::Read ( )
virtual

Read fields to control

Reimplemented from VDKXControl.


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