Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

hk_dsgridcolumn Class Reference

structure of a column in a grid More...

#include <hk_dsgridcolumn.h>

Inheritance diagram for hk_dsgridcolumn:

hk_dsdatavisible hk_dsvisible hk_visible hk_class List of all members.

Public Types

enum  enum_columntype { columnedit, columnbool, columncombo }

Public Member Functions

 hk_dsgridcolumn (void)
virtual ~hk_dsgridcolumn (void)
void set_displayname (hk_string, bool registerchange=true)
hk_string displayname (void)
void set_columntype (enum_columntype, bool registerchange=true)
enum_columntype columntype (void)
void set_columnwidth (int, bool registerchange=true)
int columnwidth (void)
virtual void savedata (ostream &s)
virtual void loaddata (const hk_string &definition)
void set_listdatasource (const hk_string &datasourcename, datasourcetype dt=dt_table, bool registerchange=true)
hk_datasourcelistdatasource (void)
hk_string listdatasourcename (void)
datasourcetype listdatasourcetype () const
void set_viewcolumnname (const hk_string &viewcolumn, bool registerchange=true)
hk_string viewcolumnname (void)
void set_listcolumnname (const hk_string &listcolumn, bool registerchange=true)
hk_string listcolumnname (void)
virtual bool set_listpresentationdatasource (long n, bool registerchange=true)
long listpresentationdatasource (void)
hk_string value_at (unsigned long)
virtual void set_datasource (hk_datasource *)
hk_dscombobox * combobox (void)
unsigned int find (unsigned int from, unsigned int to, const hk_string &searchtext, bool wholephrase=false, bool casesensitive=false, bool backwards=false)
bool is_findstring (unsigned int pos, const hk_string &searchtext, bool wholephrase=false, bool casesensitive=false)
virtual bool action_on_click (void)
virtual bool action_on_doubleclick (void)
virtual bool action_on_close (void)
virtual bool action_on_open (void)
virtual void action_before_store_changed_data (void)
virtual void action_after_store_changed_data (void)
virtual void action_before_row_change (void)
virtual void action_after_row_change (void)
virtual void action_before_delete (void)
virtual void action_after_delete (void)
virtual void action_before_insert (void)
virtual void action_after_insert (void)
virtual bool action_on_getfocus (void)
virtual bool action_on_loosefocus (void)
virtual bool action_on_key (void)
bool action_on_select (hk_dscombobox *)
hk_string on_select_action (void)
void set_on_select_action (const hk_string &, bool registerchange=true, bool force_setting=true)

Protected Member Functions

virtual bool presentationmode_changed (void)

Friends

class hk_dsgrid

Detailed Description

structure of a column in a grid

Version:
Revision
1.20
Author:
Horst Knorr (hk_classes@knoda.org)
structure of a column in a grid.


Member Enumeration Documentation

enum hk_dsgridcolumn::enum_columntype
 

Enumeration values:
columnedit 
columnbool 
columncombo 


Constructor & Destructor Documentation

hk_dsgridcolumn::hk_dsgridcolumn void   ) 
 

virtual hk_dsgridcolumn::~hk_dsgridcolumn void   )  [virtual]
 


Member Function Documentation

virtual void hk_dsgridcolumn::action_after_delete void   )  [virtual]
 

Reimplemented from hk_dsvisible.

virtual void hk_dsgridcolumn::action_after_insert void   )  [virtual]
 

Reimplemented from hk_dsvisible.

virtual void hk_dsgridcolumn::action_after_row_change void   )  [virtual]
 

Reimplemented from hk_dsvisible.

virtual void hk_dsgridcolumn::action_after_store_changed_data void   )  [virtual]
 

Reimplemented from hk_dsvisible.

virtual void hk_dsgridcolumn::action_before_delete void   )  [virtual]
 

Reimplemented from hk_dsvisible.

virtual void hk_dsgridcolumn::action_before_insert void   )  [virtual]
 

Reimplemented from hk_dsvisible.

virtual void hk_dsgridcolumn::action_before_row_change void   )  [virtual]
 

Reimplemented from hk_dsvisible.

virtual void hk_dsgridcolumn::action_before_store_changed_data void   )  [virtual]
 

Reimplemented from hk_dsvisible.

virtual bool hk_dsgridcolumn::action_on_click void   )  [virtual]
 

Reimplemented from hk_visible.

virtual bool hk_dsgridcolumn::action_on_close void   )  [virtual]
 

Reimplemented from hk_visible.

virtual bool hk_dsgridcolumn::action_on_doubleclick void   )  [virtual]
 

Reimplemented from hk_visible.

virtual bool hk_dsgridcolumn::action_on_getfocus void   )  [virtual]
 

Reimplemented from hk_visible.

virtual bool hk_dsgridcolumn::action_on_key void   )  [virtual]
 

Reimplemented from hk_visible.

virtual bool hk_dsgridcolumn::action_on_loosefocus void   )  [virtual]
 

Reimplemented from hk_visible.

virtual bool hk_dsgridcolumn::action_on_open void   )  [virtual]
 

Reimplemented from hk_visible.

bool hk_dsgridcolumn::action_on_select hk_dscombobox *   ) 
 

enum_columntype hk_dsgridcolumn::columntype void   ) 
 

int hk_dsgridcolumn::columnwidth void   ) 
 

hk_dscombobox* hk_dsgridcolumn::combobox void   ) 
 

hk_string hk_dsgridcolumn::displayname void   ) 
 

unsigned int hk_dsgridcolumn::find unsigned int  from,
unsigned int  to,
const hk_string searchtext,
bool  wholephrase = false,
bool  casesensitive = false,
bool  backwards = false
 

Reimplemented from hk_dsdatavisible.

bool hk_dsgridcolumn::is_findstring unsigned int  pos,
const hk_string searchtext,
bool  wholephrase = false,
bool  casesensitive = false
 

hk_string hk_dsgridcolumn::listcolumnname void   ) 
 

hk_datasource* hk_dsgridcolumn::listdatasource void   ) 
 

hk_string hk_dsgridcolumn::listdatasourcename void   ) 
 

datasourcetype hk_dsgridcolumn::listdatasourcetype  )  const
 

long hk_dsgridcolumn::listpresentationdatasource void   ) 
 

virtual void hk_dsgridcolumn::loaddata const hk_string definition  )  [virtual]
 

loads the object's values out of the definition string. Especially used to load queries, forms and reports

Reimplemented from hk_dsdatavisible.

hk_string hk_dsgridcolumn::on_select_action void   ) 
 

virtual bool hk_dsgridcolumn::presentationmode_changed void   )  [protected, virtual]
 

Reimplemented from hk_dsdatavisible.

virtual void hk_dsgridcolumn::savedata ostream &  s  )  [virtual]
 

stores the object's values to stream s. Especially used to store queries, forms and reports

Reimplemented from hk_dsdatavisible.

void hk_dsgridcolumn::set_columntype enum_columntype  ,
bool  registerchange = true
 

if columntype is columnedit the celldata will be shown as a string if columntype is columnbool the celldata will be shown as a boolean field

void hk_dsgridcolumn::set_columnwidth int  ,
bool  registerchange = true
 

the (visible) width of the column

virtual void hk_dsgridcolumn::set_datasource hk_datasource  )  [virtual]
 

the datasource

Reimplemented from hk_dsdatavisible.

void hk_dsgridcolumn::set_displayname hk_string  ,
bool  registerchange = true
 

the text displayed in the column header. If not set the columnname will be displayed

void hk_dsgridcolumn::set_listcolumnname const hk_string listcolumn,
bool  registerchange = true
 

The column containing the equivalent key to the column set with set_column

void hk_dsgridcolumn::set_listdatasource const hk_string datasourcename,
datasourcetype  dt = dt_table,
bool  registerchange = true
 

comboboxes need 2 datasources. One (the normal) datasource is set with set_datasource and stores the values in a field. The second datasource contains a list of possible values for this field.

Parameters:
list the datasource which contains the values displayed in the combobox

virtual bool hk_dsgridcolumn::set_listpresentationdatasource long  n,
bool  registerchange = true
[virtual]
 

if this combobox is part of a hk_presentation object (i.e. a form) you can set the listdatasource by its unique presentation number

void hk_dsgridcolumn::set_on_select_action const hk_string ,
bool  registerchange = true,
bool  force_setting = true
 

void hk_dsgridcolumn::set_viewcolumnname const hk_string viewcolumn,
bool  registerchange = true
 

The column of the listdatasource which will be displayed in the combobox

hk_string hk_dsgridcolumn::value_at unsigned  long  )  [virtual]
 

returns the formatted value of the row 'row'

Reimplemented from hk_dsdatavisible.

hk_string hk_dsgridcolumn::viewcolumnname void   ) 
 


Friends And Related Function Documentation

friend class hk_dsgrid [friend]
 


The documentation for this class was generated from the following file:
Generated on Thu Mar 9 18:40:41 2006 for hk_classes by  doxygen 1.4.1